GATE CE 2022 Set 1 — Question 9
Go beyond PYQs with Success TrackerAI-powered personalised practice and doubt support. Unlimited practice on eligible plans; AI usage limits apply.MCQ+2 / -0.67HardAnalytical AptitudeGeneral AptitudeSpatial Aptitude
General Aptitude → Analytical Aptitude
Last updated
Question
In the square grid shown on the left, a person standing at P2 position is required to move to P5 position.The only movement allowed for a step involves, “two moves along one direction followed by one move in a perpendicular direction”. The permissible directions for movement are shown as dotted arrows in the right.For example, a person at a given position Y can move only to the positions marked X on the right.Without occupying any of the shaded squares at the end of each step, the minimum number of steps required to go from P2 to P5 is

Correct answer
(B) 5
Solution
The movement described is identical to a knight's move in chess (an 'L' shape: 2 squares in one cardinal direction and 1 square perpendicular). Let's denote the grid positions by (Row, Column).
Start: P2 = (1, 2)
Target: P5 = (1, 5)
Shaded (blocked) squares: P1(1,1), P4(1,4), Q3(2,3), R1(3,1), R5(3,5), S2(4,2), S4(4,4), T3(5,3).We need to find the shortest path from (1, 2) to (1, 5) avoiding blocked squares.Step 1: From P2(1, 2), possible moves are Q4(2, 4) and R3(3, 3). Both are unshaded.
Let's try P2(1, 2) Q4(2, 4).Step 2: From Q4(2, 4), possible moves are S3(4, 3), S5(4, 5), P2(back), P6(out). S3 and S5 are unshaded.
Let's try Q4(2, 4) S3(4, 3).Step 3: From S3(4, 3), possible moves are T5(5, 5), T1(5, 1), Q1(2, 1), Q5(2, 5), R5(blocked), R1(blocked), P2(back), P4(blocked).
Let's try S3(4, 3) T5(5, 5).Step 4: From T5(5, 5), possible moves are R4(3, 4) and S3(back). R4 is unshaded.
Let's try T5(5, 5) R4(3, 4).Step 5: From R4(3, 4), possible moves are P3(1, 3), P5(1, 5), T3(blocked), T5(back), Q2(2, 2), Q6(out), S2(blocked), S6(out).
Target P5(1, 5) is reached in this step.Path: P2(1,2) Q4(2,4) S3(4,3) T5(5,5) R4(3,4) P5(1,5).
Total steps = 5.Checking other paths will show that 5 is the minimum number of steps required to reach the target while avoiding shaded squares.
Start: P2 = (1, 2)
Target: P5 = (1, 5)
Shaded (blocked) squares: P1(1,1), P4(1,4), Q3(2,3), R1(3,1), R5(3,5), S2(4,2), S4(4,4), T3(5,3).We need to find the shortest path from (1, 2) to (1, 5) avoiding blocked squares.Step 1: From P2(1, 2), possible moves are Q4(2, 4) and R3(3, 3). Both are unshaded.
Let's try P2(1, 2) Q4(2, 4).Step 2: From Q4(2, 4), possible moves are S3(4, 3), S5(4, 5), P2(back), P6(out). S3 and S5 are unshaded.
Let's try Q4(2, 4) S3(4, 3).Step 3: From S3(4, 3), possible moves are T5(5, 5), T1(5, 1), Q1(2, 1), Q5(2, 5), R5(blocked), R1(blocked), P2(back), P4(blocked).
Let's try S3(4, 3) T5(5, 5).Step 4: From T5(5, 5), possible moves are R4(3, 4) and S3(back). R4 is unshaded.
Let's try T5(5, 5) R4(3, 4).Step 5: From R4(3, 4), possible moves are P3(1, 3), P5(1, 5), T3(blocked), T5(back), Q2(2, 2), Q6(out), S2(blocked), S6(out).
Target P5(1, 5) is reached in this step.Path: P2(1,2) Q4(2,4) S3(4,3) T5(5,5) R4(3,4) P5(1,5).
Total steps = 5.Checking other paths will show that 5 is the minimum number of steps required to reach the target while avoiding shaded squares.
Continue learning with Success Tracker
A step still unclear? Work through it with support
Use Success Tracker to ask about the reasoning, then try another GATE CE question to check your understanding.
AI-powered practice· Unlimited practice on eligible plans
- PYQs with solutions
- Attempt available previous-year questions, then compare your reasoning with the worked solution. Coverage varies by stream.
- Practice that adapts
- Choose a topic, work on weaker areas and bookmark questions to revisit. Your attempts feed your progress tracking.
- AI doubt support
- Ask follow-up questions about a step or concept while practising, instead of stopping at the final answer.
Unlimited practice is available on eligible plans. Free practice and AI usage have limits; check the current plan allowances before choosing.
This page stays readable without an account. AI responses can be wrong; check them against the solution and source material.
More questions on Analytical Aptitude
2026 Set 2 Q1'The team ____ more than 300 runs in 20 overs ____ rains. However, some players needed to…2026 Set 1 Q1‘The shopkeeper sells lemons.’ In this sentence, the word ‘lemons’ is the ________.2026 Set 2 Q2If a positive real satisfies the following equation then…2026 Set 1 Q2The figure below is supposed to show three non-overlapping shapes – one oval and two triangles.…2026 Set 2 Q3The next figure (indicated by ‘?’) in the sequence is