Chapter 5 - Control Structures II (Repetition)

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/10

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.

11 Terms

1
New cards

infinite loop

a loop that continues to execute endlessly

2
New cards

loop control variable (LCV)

a variable that controls the end of the loop

3
New cards

counter-controlled while loop

a while loop that is used when you know how many items of data are to be read; the loop will continue until the condition designated by the counter is met or evaluates to false

4
New cards

flag-controlled while loop

uses a Boolean variable to control the execution of the loop

5
New cards

flag variable

a Boolean variable used to control the execution of a while loop

6
New cards

end-of-file (EOF)-controlled while loop

a while loop that stops when it reaches the end of the input file

7
New cards

Fibonacci number

a number in the Fibonacci sequence

8
New cards

Fibonacci sequence

a n = a n-1 + a n-2

9
New cards

for loop control

a loop control variable in a for loop; also called an indexed variable

10
New cards

nesting

a process that involves putting one control structure inside another

11
New cards

divisor

suppose that m and n are integers and m is nonzero. Then m is called a divisor of n if n = mt for some integer t; that is, when m divides n, the remainder is 0