Exam-style question
Try this first
Explain two characteristics of procedural programming and two characteristics of object-oriented programming. Then describe one difference in how the two paradigms organise a program.
Model answer
What a good answer should say
- Procedural programming organises a program around procedures or functions.
- These procedures perform actions on data, and a larger task can be divided into separate procedures.
- Object-oriented programming organises a program around objects.
- An object combines data with operations that are related to that data.
Explanation
Why this works
Credit should be given for identifying procedures or functions and their actions on data for the procedural paradigm, and objects that combine data with related operations for the object-oriented paradigm. The comparison must describe organisation rather than merely naming two programming languages.
Common mistake
No common mistake is linked to this question yet.
