Exam-style question
Try this first
A programmer writes a separate procedure to calculate the total cost of an order. Which paradigm is this organisation most directly illustrating?.
- A.Procedural programming
- B.Object-oriented programming
- C.Neither paradigm
- D.Both paradigms equally, because a procedure cannot belong to a paradigm
Model answer
What a good answer should say
- Procedural programming
Explanation
Why this works
Organising part of a solution as a procedure that performs a task is characteristic of the procedural paradigm.
Common mistake
No common mistake is linked to this question yet.
