iteration Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

what is iteration?

A

Iteration is the process of repeating code.

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

what are the 2 types of iterations?

A

count control
condition control

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

What do count control loops do ?

A

they reapeat the same steps a specific number of times regardless of the outcome.

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

What do condition control loops do?

A

it will keep repeating the loops over and over until it gets its specific result.

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

key fact

A

Iteration is the process of repeating steps.

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

in programming, what is iteration?

A

it is the repetation of steps within a program.selection is a decision point in a program.

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

What are the three building blocks to use when designing algorithms?

A

Sequencing, selection and iteration are the three basic building blocks to use when designing algorithms.

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

What is iteration?

A

Iteration is repeating steps in an algorithm. A decision is known as selection.

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

Why is iteration important?

A

Iteration is important as it allows us to simplify an algorithm by removing unnecessary steps.

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

What is another name for iteration?

A

Another name for iteration is a loop.

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

What is a condition?

A

A condition is a situation that is checked every time iteration occurs.

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

What is meant by testing a condition?

A

Testing a condition is checking to see if a condition has been met.

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

How is iteration represented in pseudocode?

A

Iteration is represented with REPEAT-UNTIL in pseudocode.

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

How is iteration represented in a flowchart?

A

Iteration is represented as a decision in a flowchart.

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

What is a counter used for in iteration?

A

A counter is used to keep track of how many times the solution has iterated.

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