Iterations Flashcards

1
Q

What three building blocks create a proper program?

A
  1. Sequence
  2. Selection
  3. Iteration
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What does iteration mean?

A

To loop or repeat an action within a program

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

What does a flowchart show?

A

A flowchart shows the flow of data through the algorithm

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

What do FOR Loops do?

A

FOR Loops will repeat the code inside them a
fixed number of times.

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

What is an Indefinite Loop or ** Condition-Controlled Loop**?

A

An Indefinite Loop, or Condition-Controlled Loop, continues until a specific condition is met or broken.

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

What is the only choice of an Indefinite Loop in Python?

A

A While Loop

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

What can While Loops be used for?

A

To Count Up or Down

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

What is a Nested Loop?

A

Nested Loops or Iterations are statements that typically have a Loop Within a Loop

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

How does a Nested For Loop work?

A

In a Nested For Loop each Iteration of the outer loop causes the inner loop to run until complete.

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

How can Nested For Loop help save time?

A

It can save time by preventing you from having to rewrite the code multiple times

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

How do Loops make your code more Robust?

A

Less code means, that there are less Coding Errors
AND
If you want to make a change you don’t have to do changes over multiple lines

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