Programming Flashcards
Variable
A named location in memory, the contents of which can change as the program executes
Constant
A named location in memory, the contents of which do not change during the program’s execution
Input
The process of passing data into the program usually (though not exclusively) by the system user
Output
The process of passing data out a program through output devices like a monitor and speaker
Assignment
The process of storing an item of data as a variable or a constant. The = sign is employed.
Ex) name = input()
Control Flow
The way a program moves from instruction to instruction. There are three types:
- Sequence
- Selection
- Iteration
Sequence
A set of instructions that go from one instruction to the next
Selection
A decision that affects the flow of the program based on the results of an event
Iteration
Repetition of parts or all of a program forever or until a certain condition has been met