loops programming review

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

1/8

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.

9 Terms

1
New cards

What are the three types of loops in programming?

for, while, do while

2
New cards

What is a loop?

A repeated section of code

3
New cards

What is an iteration in the context of loops?

The amount of time a loop runs

4
New cards

What is a breakout condition?

An expression that ends a loop

5
New cards

What are the parts of a while loop?

The 'while' command, a condition, and a body (the block of code that repeats)

6
New cards

When do you use a while loop?

when condition is true.

7
New cards

When do you use a do while loop?

To execute your body before checking your condition.

8
New cards

When do you use a for loop?

When the iteration is known.

9
New cards

What makes a while loop useful?

repeats tasks automatically without needing to rerun the code each time.