A 2D array is a grid of values with rows and columns. You need two index values to access an element: [row][column]. Think of it like a spreadsheet or seating plan.
A 2D array called seats is defined: [[True,False],[False,True],[True,True]]. Write pseudocode to output the value at row 2, column 0, then change it to False.
2 marks
OUTPUT seats[2][0] ← True seats[2][0] ← False
Key Takeaways
What to Remember
2D arrays store data in rows and columns — like a grid
Access with two indices: array[row][column] — both start at 0
Traverse with nested FOR loops — outer for rows, inner for columns
Real uses: game boards, seating plans, timetables, spreadsheet data