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
Answer and explanation
Concise answer
Procedural programming
Why this is correct
Organising part of a solution as a procedure that performs a task is characteristic of the procedural paradigm.
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.
