stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Duplicate of Programming and Logic II Review Flashcards | StudBud
Explore
/
Duplicate of Programming and Logic II Review
Duplicate of Programming and Logic II Review
18 terms
·
StudBud Administration
·
53 plays
Programming and Logic II Review
Flashcards
18 cards
F
Practice quiz
P
Host live
L
Questions
18
Answers
1
Another term for programs is
peopleware
firmware
hardware
software
2
Class objects have __________ that perform useful operations on their data.
methods
instances
fields
relationships
3
What will be the value of x after the following code is executed?
135
60
75
15
4
Character literals are enclosed in ___________; string literals are enclosed in ________.
single quotes; double quotes
single quotes; single quotes
double quotes; double quotes
double quotes; single quotes
5
What does the keyword new do?
creates a new variable in memory
creates an object in memory
creates a new Java byte code file
creates a new class
6
Think of a _______ as a cookie cutter and ________ as the cookies.
class; fields
field; methods
object; classes
class; objects
7
Which mathematical operator is used to raise five tot he second power?
~
MOD
/
^
8
What is the result of the following statement?
5.25
3
19
7
9
The two primary methods of programming in used today are ___________ and ____________
Lua
Alice
Object oriented
Procedural
10
One or more objects may be created from:
a method
a class
a field
an instance
11
Define syntax:
punctuation for code
rules for writing code
key words
symbols
12
The ___________ statement is used to make simple decision in Java
switch
do-while
for
if
13
What is the result of the following expression?
-50
5
-5
25
14
A Java program must have at least one
comment
class definition
variable
print
15
Which of the following expressions will determine whether x is less than or equal to y?
x > y
x <= Y
x >= y
x =< y
16
What is a special language used to write computer applications
pseudocode
operating system
application
programming language
17
Which one is not involved in defining what the program is to do ?
output
input
compile code
processing
18
A object contains _________ and _______________
procedures
students
grades
data