5. repetition Flashcards

1
Q

What is the definition of repeat?

A

To repeat is to do something again and again.

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

What is repetition used for in code?

A

Repetition is used to repeat the code.

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

What are repetition statements called?

A

Repetition statements are called loops.

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

How does using a loop help?

A

Using a loop is easier to manage and edit the program.

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

Name 3 types of loops.

A

● Forever loop
● Counter loop
● Conditional loop

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

What does a forever loop do?

A

Forever loop makes the code always repeats the command unless you stop the program.

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

What does a counter loop do?

A

A counter loop repeats the code a set number of times.

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

What is a conditional loop? Give an example from scratch.

A

A conditional loop is a loop controlled by a logical test.
For example in Scratch, repeat until block repeats the code until the logical test is true.

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