2.2 Programming Fundamentals Flashcards
Variable -
A named container that stores a value in RAM that CAN change.
Constant -
A value that CANNOT change
Data types -
Type of data stored in a variable
String -
Alphanumeric characters
Integer -
Whole numbers
Real/float
Decimal numbers
Boolean -
TRUE or FALSE
Binary shifts
1 shift left = x2.
1 shift right = x1/2
Sequence -
Each step is executed in the order that it is written. All algorithms are made up of at least a basic sequence of instructions.
Selection -
Controls the flow of an algorithm by checking whether a condition is met or not before determining which steps should follow.
Iteration -
Controls the flow of an algorithm by repeating a set of instructions either for a fixed number of time or whilst a set condition is met.
Casting -