Question 1
1 markA theatre program declares this 2D array to store its seating plan:
array seats[12,20]State how many elements the array can store.
Model answer
240
Explanation
A 2D array with 12 rows and 20 columns has 12 × 20 = 240 elements, indexed seats[0,0] to seats[11,19]. Adding the sizes, or multiplying the last indexes (11 × 19), are common mistakes.
Mark scheme
-
1 mark
240
Correct answer only. Do not accept 32 (12 + 20) or 209 (11 × 19).