Skip to content
Official PYQ · 2024

GATE CS 2024 Set 2 Q10 — General Aptitude

Explain with AI

In the 4×44 \times 4 array shown below, each cell of the first three rows has either a cross (X)(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 ( XX ). Given that the last row has no crosses (X)(X), the sum of the four numbers to be filled in the last row is

Choose one option
View worked solution

Answer: A

Let the four cells in the last (fourth) row be denoted as x1,x2,x3,x_1, x_2, x_3, and x4x_4 from left to right. Since the last row contains no crosses (XX), all these cells contain numbers.

The third row of the grid is given as:

  • C3,1=XC_{3,1} = X
  • C3,2=4C_{3,2} = 4 (number)
  • C3,3=XC_{3,3} = X
  • C3,4=3C_{3,4} = 3 (number)

We determine the value of each cell in the fourth row by counting its immediate neighboring cells that do not contain a cross (XX):

  1. For x1x_1 (at C4,1C_{4,1}): Its neighbors are C3,1C_{3,1} (XX), C3,2C_{3,2} (number), and C4,2C_{4,2} (number). Thus, x1=2x_1 = 2.
  2. For x2x_2 (at C4,2C_{4,2}): Its neighbors are C3,1C_{3,1} (XX), C3,2C_{3,2} (number), C3,3C_{3,3} (XX), C4,1C_{4,1} (number), and C4,3C_{4,3} (number). Thus, x2=3x_2 = 3.
  3. For x3x_3 (at C4,3C_{4,3}): Its neighbors are C3,2C_{3,2} (number), C3,3C_{3,3} (XX), C3,4C_{3,4} (number), C4,2C_{4,2} (number), and C4,4C_{4,4} (number). Thus, x3=4x_3 = 4.
  4. For x4x_4 (at C4,4C_{4,4}): Its neighbors are C3,3C_{3,3} (XX), C3,4C_{3,4} (number), and C4,3C_{4,3} (number). Thus, x4=2x_4 = 2.

Summing these four values:

Sum=x1+x2+x3+x4=2+3+4+2=11\text{Sum} = x_1 + x_2 + x_3 + x_4 = 2 + 3 + 4 + 2 = 11

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore General Aptitude questions