Iteration Flashcards

1
Q

What does iteration mean

A

Doing something repeatedly, in your program, you can use a loop statement to repeat a set of instructions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the 2 type of loops

A

Condition-Controlled Iteration

Count-Controlled Iteration

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is condition-controlled iteration

A

When a set of instructions is repeated whether a condition is met

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is count-controlled iteration

A

When a set of instructions is repeated a specific number of times

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a for loop

A

For loops are count-controlled meaning you choose how many times the instructions should be repeated

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What types of sequence can for loops be used for

A

Letters in a word
Items in a list
Numbers in a range

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is pseudocode

A

Pseudocode is informal steps for an algorithm using structured English. Pseudocode has no specific syntax and should just be human readable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the purpose of Pseudocode

A

To design programs like u can do flowcharts.

It is intended for humans to interpret and not computers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is a While loop

A

The instructions repeat itself until a condition is met

How well did you know this?
1
Not at all
2
3
4
5
Perfectly