GATE CSE 2024 Session 2 Q10: Fill the last row of a 4×4 neighbour-count grid
- General Aptitude
- 2 marks
- MCQ
- −2/3 if wrong
Question
In the array shown below, each cell of the first three rows has either a cross (X) or a number.
| 1 | X | 4 | 3 |
| X | 5 | 5 | 4 |
| 3 | X | 6 | X |
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
Try it: multiple choice: exactly one correct option
Show answer and explanation
Answer: A (official GATE 2024 final answer key)
Concept used: Counting the non-cross neighbours (up to 8) of each cell, minesweeper style.
First step: Row 3 is 3, X, 6, X; for each last-row cell count its non-X neighbours in row 3 and in row 4 itself.
Full step-by-step solution
Detailed working, common mistakes and linked mock tests will be available with a free GATEiit account. Log-in is coming soon.
Share this question
Source: official GATE 2024 Session 2 CS question paper and final answer key, organised by IISc Bangalore. Question paper · Answer key
More General Aptitude PYQs
- 2026 Session 1 · Q1Antonym of protagonist
- 2026 Session 1 · Q2Which grid cannot be tiled by a 2×2 square and a 1×4 bar
- 2026 Session 1 · Q3Games needed in a 64-player knock-out tournament
- 2026 Session 1 · Q4Maximum elective credits under credit constraints
- 2026 Session 1 · Q5Statement not implied by 'teacher in room ⇒ students stand silently'
- 2026 Session 1 · Q6Inference from a passage on combinatorics in physical models