IAE Academy

GATE 2024 CS2 GA Q.10: solution and answer

GATE 2024 · CS2GA Q.10 · 2 marks · MCQ

In the 4 × 4 array shown below, each cell of the first three rows has either a cross (X) or a number. The number in a cell represents the count of the immediate neighboring cells (left, right, top, bottom, diagonals) NOT having a cross (X). Given that the last row has no crosses (X), the sum of the four numbers to be filled in the last row is

GATE 2024 CS2 GA question 10: A 4 × 4 grid with blue borders.Tap to open full size
Figure from the GATE 2024 CS2 paper. It is part of the question.
Figure description

A 4 × 4 grid with blue borders. Row 1: 1, X, 4, 3. Row 2: X, 5, 5, 4. Row 3: 3, X, 6, X. Row 4: four empty cells to be filled.

  1. (A)

    11

  2. (B)

    10

  3. (C)

    12

  4. (D)

    9

Answer and solution

ANSWER

The sum of the four numbers in the last row is 11, which is option (A).

Official answer: ASource: Official answer key, GATE 2024 CS2 (IISc Bengaluru)

  1. Write the grid by (row, column). Row 1: 1, X, 4, 3. Row 2: X, 5, 5, 4. Row 3: 3, X, 6, X. Row 4 is empty and has no crosses, so every row-4 neighbour counts as a cell without a cross.

  2. Each number equals the number of neighbouring cells (left, right, up, down and the four diagonals) that are not crosses. Only row 3 and row 4 cells neighbour a row-4 cell, and the only crosses among them are and .

  3. Cell has 3 neighbours: , , . Only is a cross, so the number is .

  4. Cell has 5 neighbours: , , , , . Only is a cross, so the number is .

  5. Cell has 5 neighbours: , , , , . The crosses are and , so the number is .

  6. Cell has 3 neighbours: , , . Only is a cross, so the number is .

  7. The last row reads , and the sum is .

  8. Check against the given numbers. Cell has 8 neighbours with crosses at and , so . Cell has 5 neighbours with crosses at and , so . Cell has 8 neighbours with crosses at , and , so . All three agree, so the cross positions are read correctly.

KEY IDEA

A cell's number is its count of existing neighbours (edge cells have fewer than 8) minus the number of neighbours that are crosses. For the last row, only the crosses in row 3 matter.

WATCH OUT FOR

Counting 8 neighbours for every cell, even though edge and corner cells have only 5 or 3. Another slip is leaving out diagonal neighbours or counting a cross as a neighbour without a cross.

From the GATE 2024 CS2 paper. Every question of this paper · Download the full paper · All 72 Reasoning questions, with notes

More Reasoning questions