Question 3(a)(ii) 2015 · May-June · Paper 21 · 1 mark
Reveal official mark-scheme answer
Official answer for Question 3
Part (a)
(ii)
(ii)
0
Show text version of question
Question 3
Part (a)
(ii)
Question 3
A board game is designed for two players, O and X.
At the beginning, all cells of a 3 x 3 grid are empty.
The players take turns in placing their marker in an empty cell of the grid; player O always starts.
The game ends when one player completes a row, column or diagonal or the grid is full.
Here is one example after three turns:
O
O X
Ali wants to write a program to play the game. The array Grid is to be used to represent the contents of the grid.
Rows and columns are to be numbered from 1 to 3.
(ii)
State the value Ali could use to represent an empty cell. ..............................................
Question 5
Why this question appears here
92% assigned-topic match · Hardware › Logic gates and logic circuits
Topic-match percentages estimate how closely each question fits the selected syllabus topic. They are a guide for choosing stricter or broader practice.
Permanent source page: Educate A Change · From 9691_s15_qp_21.pdf
