2.2 - Programming Fundamentals Flashcards

1
Q

Why should comments be used in a program?

A

To explain what the code does, what the purpose of the code is. Comments are ignored when the program is translated to machine code and executed.

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

What is meant by sequence?

A

Statements being executed 1 by 1 in the order they were written.

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

What is meant by selection?

A

Executing code depending on whether or not a condition is met.

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

What is meant by iteration?

A

Repetition of a section of code.

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