A) Adds 10 to the value of x, and stores the result in x.
B) Divides x by 10 and stores the remainder in x.
C) Divides x by 10 and stores the integer result in x.
D) None of the above.
Correct Answer
verified
Multiple Choice
A) 8
B) 16
C) 32
D) 64
Correct Answer
verified
Multiple Choice
A) signal value.
B) maximum value.
C) dummy value.
D) flag value.
Correct Answer
verified
Multiple Choice
A) The conditional operator is a ternary operator, meaning that it takes three operands.
B) The first operand is a boolean expression.
C) The second operand is the result value if the condition evaluates to false.
D) The second operand is the result value if the condition evaluates to true.
Correct Answer
verified
Multiple Choice
A) Diamond.
B) Circle.
C) Rectangle with left and right sides replaced with arcs curving outward.
D) Rounded rectangle.
Correct Answer
verified
Multiple Choice
A) do
B) next
C) while
D) for
Correct Answer
verified
Multiple Choice
A) 0.
B) 1.
C) 3.
D) None of the above.
Correct Answer
verified
Multiple Choice
A) extends
B) inherits
C) super
D) parent
Correct Answer
verified
Multiple Choice
A) The primitive types in Java are portable across all computer platforms that support Java.
B) Java requires all variables to have a type before they can be used in a program.
C) Instance variables of the primitive types are automatically assigned a default value.
D) All of the above.
Correct Answer
verified
Multiple Choice
A) pixlets.
B) pixels.
C) points.
D) pikels.
Correct Answer
verified
Multiple Choice
A) do…while
B) for
C) if…else
D) if
Correct Answer
verified
Multiple Choice
A) (=)
B) (?:)
C) (%=)
D) (/)
Correct Answer
verified
Multiple Choice
A) initialized when they're declared.
B) initialized before their values are used in an expression.
C) declared and initialized in two steps.
D) declared at the top of the method's body.
Correct Answer
verified
Multiple Choice
A) This porridge is too cold! This porridge is just right!
B) This porridge is too hot! This porridge is just right!
C) This porridge is just right!
D) None of the above.
Correct Answer
verified
Multiple Choice
A) Definite repetition
B) Indefinite repetition
C) Multiple-repetition structure
D) Double-repetition structure
Correct Answer
verified
Multiple Choice
A) 19.
B) 20.
C) 21.
D) 0.
Correct Answer
verified
Multiple Choice
A) To ensure that the operands in a mixed-type expression are of the same type, Java performs implicit conversion on selected operands.
B) Cast operators are unary operators.
C) Cast operators associate from right to left and are one level lower in precedence than the multiplicative operators.
D) Cast operators are formed by placing parentheses around the name of a type.
Correct Answer
verified
Multiple Choice
A) Diamond.
B) Rectangle.
C) Circle.
D) Triangle.
Correct Answer
verified
Multiple Choice
A) Easier to debug and modify
B) Shorter
C) Clearer
D) More likely to be bug free
Correct Answer
verified
Showing 21 - 39 of 39
Related Exams