A programmer is creating a simulation of a car park. The simulation will model the cars and the parking spaces.
Identify the benefit of using abstraction to model the car park.
Mark scheme
- A It allows the programmer to ignore details that do not affect the simulation (1)
- The only correct answer is A. The correct answer is it allows the programmer to ignore details that do not affect the simulation.
- B is not correct because splitting a problem into smaller parts is decomposition
- C is not correct because reusing code in other programs is a benefit of subprograms
- D is not correct because abstraction removes detail and does not make an exact copy of the real world
Example answers and how they were marked
A It allows the programmer to ignore details that do not affect the simulation
Why: Correct option A (1).
B It allows the car park to be split into smaller sub-problems
Why: B describes decomposition, not a benefit of abstraction, so earns 0.
D It allows the model to be an exact copy of the real world
Why: D is the opposite of abstraction, which removes unnecessary detail, so earns 0.