GATE CS 2026, set 2 · Question 8 · General Aptitude · Multiple choice (MCQ) · 2 marks · −2/3 for a wrong answer

Figures (i) and (ii) represent intercity highway systems. The black dots represent cities and the line segments between them represent intercity highways.
A salesperson needs to make a trip. She needs to start from a city, visit each of the remaining cities exactly once, and finally return to the same city from which she started.
Which one of the following options is then true?

Two graphs side by side. Figure (i), on the left, is a 4 by 4 square grid of 16 black dots (cities) in 4 rows and 4 columns. Each dot is joined by a line segment to its horizontal and vertical neighbours, forming 3 by 3 square cells. There are 24 edges in total and no diagonals. Figure (ii), on the right, has 5 black dots: a top-left dot P, a top-right dot Q, a middle-right dot R (below and to the right of P), a lower-left dot S and a bottom dot T. There are 6 line segments: P–Q (the top horizontal), P–R, P–S, S–T, R–T and Q–T (a long diagonal from top-right down to bottom). The degrees are P…
  1. (A) Such a trip is possible for (i), but not for (ii).
  2. (B) Such a trip is possible for (ii), but not for (i).
  3. (C) Such a trip is possible for both (i) and (ii).
  4. (D) Such a trip is possible neither for (i) nor for (ii).
Answer

Answer (A)

Answer from the official GATE CS 2026 answer key.

The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes