10
AssignmentMultiple Choice

Project: Grading on a Loop

Question 10 • ASC Programming, Games, Apps and Society

When would the associated code block be executed for the statement: do {code block} while (condition)?

Answer
A
Once at the beginning of the loop, and then if the condition is false
B
Once if the condition is true, and then once after the loop is done
C
Once if the condition is false, and twice if the condition is true
D
Once at the beginning of the loop, and then if the condition is true
Previous
Next
When would the associated code block be executed…