Exam-style question
Try this first
Which statement correctly compares the two paradigms?.
- A.Procedural programming focuses on procedures, while object-oriented programming focuses on objects containing data and related operations
- B.Procedural programming cannot use functions, while object-oriented programming must use only functions
- C.Object-oriented programming cannot process data, while procedural programming can
- D.The two paradigms have exactly the same organisation and differ only in programming language
Model answer
What a good answer should say
- Procedural programming focuses on procedures, while object-oriented programming focuses on objects containing data and related operations
Explanation
Why this works
The paradigms differ in how a program is organised: procedures are central to the procedural approach, whereas objects and their associated data and operations are central to the object-oriented approach.
Common mistake
No common mistake is linked to this question yet.
