2.2.1 - Programming Techniques Flashcards

1
Q

What is a sequence?

A

Program instructions are executed in order.

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

What is selection?

A

Running different lines of code, depending on a condition.

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

What is another word for selection?

A

Branching

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

What is iteration?

A

Repeating lines of code until a condition is met. (Loops)

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

What is a fixed loop?

A

A fixed loop runs a pre-defined number of times.

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

What are the two types of conditional loops?

A

While Loops

Do, Until Loops

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

How long does a conditional loop run for?

A

Until the condition is met.

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

How do do until loops work?

A

—- —-> lines of code to be repeated

until —-> exit condition.

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

How do while loops work?

A

—- —> lines of code to be repeated

endwhile. —-> end of loop

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

What happens when you go from a do until to a while loop?

A

Condition is inverted.

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