Exam-style question
Try this first
A traffic simulation program needs to model the movement of vehicles through a city. Describe how both decomposition and abstraction would be applied by the programmers to design this simulation effectively. [6 marks].
Answer and explanation
Concise answer
To design the traffic simulation effectively, programmers would apply decomposition by breaking the overall problem into distinct, smaller components.
Why this is correct
2 marks for describing how decomposition would be applied to the traffic simulation (e.g., breaking into vehicle movement, traffic lights, road network). 2 marks for describing how abstraction would be applied to the traffic simulation (e.g., simplifying vehicle properties, road details, focusing on essentials).
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.
