chap 4 loops

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/17

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

18 Terms

1
New cards

Often the number of times a loop is executed is __________.

not predetermined

2
New cards

an input value to signify the end of the loop

sentinel value

3
New cards

Press ____ to stop an infinite loop

crtl + c

4
New cards

programming mistakes where loops are improperly incremented or decremented by one, resulting in unintended behavior

off by one error

5
New cards

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

6
New cards

accumulators must be…

initialized

7
New cards

The loop body in the do - while loop executes _____________

at least once

8
New cards

adding a semicolon at the end of a for/while clause before the body loop causes a…

null statement 

9
New cards

for a do-while loop, the ______ is needed to end the loop

semicolon

10
New cards

use if the number of repetitions is known

for loop

11
New cards

use if the number of repetitions is not known

while loop

12
New cards

use to replace a while loop if the body loop has to be executed before testing the continuation condition

do while loop

13
New cards

count controlled

for loop

14
New cards

event controlled

while loop

15
New cards

keyword that breaks out of a loop entirely

break

16
New cards

keyword breaks out of an iteration

continue

17
New cards

one time execution of the loop body

iteration

18
New cards
<p>understanding nested loops</p>

understanding nested loops

12, 4