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
Answer and explanation
Concise answer
Procedural programming focuses on procedures, while object-oriented programming focuses on objects containing data and related operations
Why this is correct
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.
Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.
Common mistake
No common mistake is linked to this question yet.
