A) Evaluates correctly and could be replaced by 4 > y && y > 1 ) .
B) Does not evaluate correctly and should be replaced by 4 > y && y > 1 ) .
C) Evaluates correctly and could not be replaced by 4 > y && y > 1 ) .
D) Does not evaluate correctly and should not be replaced by 4 > y && y > 1 ) .
Correct Answer
verified
Multiple Choice
A) An initial value.
B) A condition that tests for the final value.
C) An increment or decrement by which the control variable is modified each time through the loop.
D) All of the above.
Correct Answer
verified
Multiple Choice
A) 6
B) 12
C) Nothing.
D) A syntax error is produced.
Correct Answer
verified
Multiple Choice
A) setw
B) right
C) left
D) fixed
Correct Answer
verified
Multiple Choice
A) char
B) long
C) short
D) All of the above.
Correct Answer
verified
Multiple Choice
A) As a single-selection structure.
B) As a double-selection structure.
C) As a multiple-selection structure.
D) To replace all if…else statements.
Correct Answer
verified
Multiple Choice
A) The < relational operator.
B) The = assignment operator.
C) The % arithmetic operator.
D) The ! logical operator.
Correct Answer
verified
Multiple Choice
A) for int i = 0; i < 10; i++ )
B) int i = 0; for ; i < 10; i++ )
C) for int i = 0; int j = 5; ; i++ )
D) All of the above.
Correct Answer
verified
Showing 21 - 28 of 28
Related Exams