2.2
Programming Fundamentals
Variables, data types, operators, structures
Variables store data that can change
Constants store fixed values
Data types: Integer, Real, Boolean, Character, String
Operators: Arithmetic (+,-,*,/,MOD,DIV), Comparison (==,<,>), Boolean (AND,OR,NOT)
Selection: IF-THEN-ELSE, SWITCH/CASE
Iteration: FOR (count), WHILE (condition), DO-WHILE (at least once)
Exam Tips
- •Always define key terms before explaining concepts
- •Use specific examples where possible to demonstrate understanding
- •Check mark allocation - one point per mark is a good guide