2.2
Problem Solving and Programming
Programming paradigms, techniques, and implementation
Programming techniquesComputational methodsObject-oriented programming
Recursion: function calls itself with base case and recursive case
Iteration: loops (for, while) repeat code until condition met
Encapsulation: bundling data and methods, hiding implementation
Inheritance: child classes inherit from parent classes
Polymorphism: objects treated as instances of parent class
Class: blueprint; Object: instance of a class
Divide and conquer: split problem, solve parts, combine results
Exception handling: try-catch blocks handle runtime errors
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