ACTUAL QUESTIONS AND CORRECT
ANSWERS
Keywords can be used as variable identifiers/names.
True
False - CORRECT ANSWER False
Whitespace has an important role in the functionality of a program in C++, Java, C# and Pseudocode.
True
False - CORRECT ANSWER False
Evaluate 10 - (40 + (20 / (10 - 5) * 2 )/4) + 50
A. 20
B. 4
C. 18
D. 22 - CORRECT ANSWER 18
Evaluate ((18 % 5) * 3) - (6 - 4) + 1
Assume all values are integers.
A. 5
B. 8
C. 3
D. 0 - CORRECT ANSWER 8
Evaluate as an integer: 5 % 7 + 3 * 2 + 4
, A. 7
B. 12
C. 15
D. 32 - CORRECT ANSWER 15
Logical operators are evaluated before comparison/relational operators.
True
False - CORRECT ANSWER False
In the equation 2 + * 2, the addition operation + is evaluated first.
True
False - CORRECT ANSWER False
What is the value of the variable divisor in the follow equation?
Double divisor = 3.0/6.0;
A. 2
B. 0.5
C. 1
D. 0 - CORRECT ANSWER 0.5
Which of the following variables could hold the literal numeric value 3.141 without losing any
information?
A. Float x
B. Int y
C. Char z