Multiple Choice
What is wrong with the following while loop? while (sum <= 1000) {
Sum = sum - 30;
}
A) The parentheses should be braces.
B) There should be a semicolon after while (sum <= 1000) .
C) sum = sum - 30 should be sum = sum + 30 or else the loop may never end.
D) None of the above.
Correct Answer:

Verified
Correct Answer:
Verified
Q1: In an activity diagram for an algorithm,
Q2: The conditional operator (?:):<br>A) Is the only
Q3: Having a loop within a loop is
Q4: What is the final value of x
Q5: Which of the following statements about nested
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
Q10: Which of the following statements is false?<br>A)
Q11: Pseudocode normally does not include:<br>A) Declarations.<br>B) Input/output.<br>C)