Computer Science · Oct / Nov 2020 · Paper 2 HL · Question 16
IBCS
As printed in the paper
The question as text
16. A single parking space that holds one car can be used to hold two motorbikes. The programmer has decided to use a two-dimensional array to create a map of the parking area. Vehicle parkingSpaces[][] = new Vehicle[2][200]; [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] etc [198][199] [0] c m c m c c m c c m c c c [1] m m m m Note: m and c have been used to show where motorbikes and cars are parked.
Read automatically from the paper; the printed page above is exact.
Show the answer and mark scheme
16(a)(i)[1]
16(a)(ii)[1]
16(b)[3]
16(c)[5]
Make a free account to save your answers and see your weak topics and ask the AI why a wrong answer is wrong.

