1/17
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
Often the number of times a loop is executed is __________.
not predetermined
an input value to signify the end of the loop
sentinel value
Press ____ to stop an infinite loop
crtl + c
programming mistakes where loops are improperly incremented or decremented by one, resulting in unintended behavior
off by one error
The do - while loop is the same as the while loop except that it executes the…
loop body first and then checks the continuation condition
accumulators must be…
initialized
The loop body in the do - while loop executes _____________
at least once
adding a semicolon at the end of a for/while clause before the body loop causes a…
null statement
for a do-while loop, the ______ is needed to end the loop
semicolon
use if the number of repetitions is known
for loop
use if the number of repetitions is not known
while loop
use to replace a while loop if the body loop has to be executed before testing the continuation condition
do while loop
count controlled
for loop
event controlled
while loop
keyword that breaks out of a loop entirely
break
keyword breaks out of an iteration
continue
one time execution of the loop body
iteration
understanding nested loops
12, 4