Exam-style question
Try this first
Which decomposition is most appropriate for a problem that requires a program to process a set of marks and produce a result?.
- A.Divide it into identifiable tasks such as obtaining the marks, processing them and producing the result
- B.Treat every action as part of one indivisible task
- C.Divide it only according to the programming language being used
- D.Create sub-problems that have no identifiable purpose
Model answer
What a good answer should say
- Divide it into identifiable tasks such as obtaining the marks, processing them and producing the result
Explanation
Why this works
A suitable decomposition separates the problem into sub-problems with identifiable tasks. The listed tasks are examples of such a breakdown.
Common mistake
No common mistake is linked to this question yet.
