Multiple Choice
What is wrong with the following while loop?
While sum <= 1000 )
Sum = sum - 30;
A) The parentheses should be braces.
B) Braces are required around sum = sum - 30;.
C) There should be a semicolon after while sum <= 1000 ) .
D) sum = sum - 30 should be sum = sum + 30 or else the loop may never end.
Correct Answer:

Verified
Correct Answer:
Verified
Q2: The conditional operator (?:):<br>A) Is the only
Q7: Which of the following is a double-selection
Q8: Assuming that x and y are equal
Q9: Which of the following operations has the
Q12: Which of the following encompasses the other
Q17: An uninitialized local variable contains:<br>A) The value
Q20: What is the final value of x
Q20: Which of the following will not increment
Q21: How many times will the following loop
Q24: A block:<br>A) Must contain exactly three statements.<br>B)