Question Constellation Sign up for free
Q12.2 2 marks

AQA · GCSE · Computer Science · Higher · Paper 1A Computational thinking and programming skills (C#)

getTile(row, column) returns the tile value on the 3 x 3 board in position (row, column). The blank space is represented by the value 0.

Figure 16
int ref1, ref2;
for (int i = 0; i < 3; i++)
{
for (int j = 0; j < 3; j++)
{
if (getTile(i, j) == 0)
{
ref1 = i;
ref2 = j;
}
}
}
Figure 17
row \ column012
0476
1381
20 (blank)52

Which two of the following statements about the program in Figure 16 are true when it is used with the board in Figure 17? Shade two lozenges.

Your answer