Iteration

5.0(9)
studied byStudied by 400 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/14

Last updated 2:25 AM on 10/25/23
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

15 Terms

1
New cards

Loop

A programming construct that allows a set of statements to be repeated multiple times as long as a certain condition is true.

2
New cards

While Loop

A type of loop that continues to cycle through as long as a specified condition is true.

3
New cards

Infinite Loop

A loop that continues indefinitely because the condition to exit the loop is never met.

4
New cards

For Loop

A type of loop that allows for more structured looping by specifying an initialization, condition, and incrementation of a variable.

5
New cards

Initializer

The first step in a for loop where a variable is initialized to a certain value.

6
New cards

Condition

The second step in a for loop where a condition is checked to determine if the loop should continue executing.

7
New cards

Statements

The third step in a for loop where a set of statements is executed as long as the condition is true.

8
New cards

Incrementer

The fourth step in a for loop where the value of the variable is incremented or changed.

9
New cards

Code for a for loop

for(/*initializer*/; /*condition*/; /*incrementor*/)
{
	/*statements*/
}

//Note that all comments above would be filled with code acting as the specified task. 
10
New cards

Code for a while loop

while(/*condition*/)
{
	/*statements*/
}

//Note that all comments above would be filled with code acting as the specified task. 
11
New cards

Where in a for-loop would code such as "i++” go?

Incrementor

12
New cards

Where in a for-loop would code such as "int i = 0” go?

Initializer

13
New cards

Where in a for-loop would code such as "i < 10” go?

Condition

14
New cards

Where in a while-loop would code such as "i < 10” go?

Condition

15
New cards

Where in a while-loop would code such as "i++” go?

Statements

Explore top notes

note
Morphology of Flowering Plants
Updated 1206d ago
0.0(0)
note
Motivation
Updated 912d ago
0.0(0)
note
Key Moments in the Outsiders
Updated 1196d ago
0.0(0)
note
Civil War and Reconstruction
Updated 1358d ago
0.0(0)
note
Nuclear Equations
Updated 1235d ago
0.0(0)
note
2.6 Industrial/employee relations
Updated 1306d ago
0.0(0)
note
100 High-Frequency SAT Words
Updated 325d ago
0.0(0)
note
Morphology of Flowering Plants
Updated 1206d ago
0.0(0)
note
Motivation
Updated 912d ago
0.0(0)
note
Key Moments in the Outsiders
Updated 1196d ago
0.0(0)
note
Civil War and Reconstruction
Updated 1358d ago
0.0(0)
note
Nuclear Equations
Updated 1235d ago
0.0(0)
note
2.6 Industrial/employee relations
Updated 1306d ago
0.0(0)
note
100 High-Frequency SAT Words
Updated 325d ago
0.0(0)

Explore top flashcards

flashcards
F3 U1: Les Vacances Partie 1
33
Updated 186d ago
0.0(0)
flashcards
GRE GregMat Vocab Group 1
30
Updated 607d ago
0.0(0)
flashcards
Ecosystems
22
Updated 65d ago
0.0(0)
flashcards
ABPSY COMPRE REVIEW
217
Updated 604d ago
0.0(0)
flashcards
Unit 2 Study Guide
31
Updated 473d ago
0.0(0)
flashcards
Chemical Bonding Unit Test
56
Updated 726d ago
0.0(0)
flashcards
F3 U1: Les Vacances Partie 1
33
Updated 186d ago
0.0(0)
flashcards
GRE GregMat Vocab Group 1
30
Updated 607d ago
0.0(0)
flashcards
Ecosystems
22
Updated 65d ago
0.0(0)
flashcards
ABPSY COMPRE REVIEW
217
Updated 604d ago
0.0(0)
flashcards
Unit 2 Study Guide
31
Updated 473d ago
0.0(0)
flashcards
Chemical Bonding Unit Test
56
Updated 726d ago
0.0(0)