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.
2
Q
What is meant by sequence?
A
Statements being executed 1 by 1 in the order they were written.
3
Q
What is meant by selection?
A
Executing code depending on whether or not a condition is met.
4
Q
What is meant by iteration?
A
Repetition of a section of code.