Past-paper question · 2015 May-June · Paper 22 · Q3(a)(i)

Question 3(a)(i) 2015 · May-June · Paper 22 · 1 mark

Original past-paper question for 3(A)(I)
Original past-paper question for 3(A)(I)
Reveal official mark-scheme answer Official mark-scheme answer for 3(A)(I)

Official answer for Question 3

Part (a)

(i)

Part (a)

(i)

Row

Question 2

✓
Column 3
[1]

Mark scheme 9691_s15_ms_22.pdf →

Show text version of question

Question 3

Part (a)

(i)

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.

(i)

To take their turn, the player inputs a row number and a column number to place their

marker in an empty cell.

Write the values player X has input to place their marker, ‘X’, in the above diagram:

Row ...................................................................................................................................

Column .........................................................................................................................

[1]
Topic relevance

Why this question appears here

71% 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_22.pdf

Keep practising this topic