Which Do...Loop statement should be used to process test scores where a test score over 100 is a signal to stop the processing?
-
Do While Score > 100
-
Do Until Score > 100
-
Loop While Score > 100
-
Loop Until Score > 100
-
All of the above are valid for this situation.
Do Until loops continue executing UNTIL the condition becomes true, then stop. Since a score over 100 signals stopping, Do Until Score > 100 will process scores while Score <= 100 and exit when Score exceeds 100. Do While has the opposite logic, continuing while the condition is true, so it would only process invalid scores.
Do Until Score > 100 checks the condition before each pass and keeps looping only while the condition is false — i.e., it keeps processing scores until it encounters one over 100, at which point it stops, matching the requirement exactly. Do While Score > 100 would do the opposite (loop only while scores stay above 100). The Loop While/Loop Until variants place the test at the bottom, meaning they'd always process at least one score before checking, and semantically Loop Until would still exit on the wrong condition placement for a top-tested "until" reading; the given phrasing calls for a pre-test loop keyed on "until score exceeds 100." "All of the above" is wrong since the loops behave differently.