All Exams Test series for 1 year @ ₹349 only
Question

Seven men A, B, C, D, E, F and G are standing in a queue, one behind the other in that order. That is, A is first in queue while G brings up the rear. Each of them is wearing a hat of a different colour of the rainbow - Violet, Indigo, Blue, Green, Yellow, Orange, and Red, but not necessarily in that order. It is also known that:
• D can see in front of him green and blue hats, but not the violet hat.
• E can see violet and yellow hats, but not the red hat.
• G can see hats of all the colours except Orange.
• E is wearing the Indigo coloured hat.
What colour hat is worn by F?

The correct answer is
Blue

Queue Setup and Colors

Seven people (A, B, C, D, E, F, G) are in a queue, ordered from front to rear (A is first, G is last).

They wear hats of distinct rainbow colours:

  • Violet ($V$)
  • Indigo ($I$)
  • Blue ($B$)
  • Green ($G$)
  • Yellow ($Y$)
  • Orange ($O$)
  • Red ($R$)

Hat Color Deductions

Key clues are used for step-by-step deduction to find the hat colours.

G Hat Color

Clue: G sees all hats except Orange ($O$). G sees people A-F.

Reasoning: Since G sees everyone in front (A to F) and observes all colours but Orange, G must be wearing the Orange ($O$) hat.

Result: Hat($G$) = $O$.

E Hat Color

Clue: E is wearing the Indigo ($I$) hat.

Result: Hat($E$) = $I$.

F Hat Color

Clue: E sees Violet ($V$) and Yellow ($Y$) hats, but not the Red ($R$) hat. E sees people A, B, C, D.

Reasoning: E not seeing Red ($R$) means $R$ is not worn by A, B, C, or D. Therefore, $R$ must be worn by E, F, or G.

Knowing Hat($E$) = $I$ and Hat($G$) = $O$, the Red ($R$) hat must belong to F.

Result: Hat($F$) = $R$.

D Hat Color

Clue: D sees Green ($G$) and Blue ($B$) hats, but not the Violet ($V$) hat. D sees people A, B, C.

Reasoning: D not seeing Violet ($V$) means $V$ is not worn by A, B, or C. Therefore, $V$ must be worn by D, E, F, or G.

Since Hat($E$) = $I$, Hat($F$) = $R$, and Hat($G$) = $O$, the Violet ($V$) hat must belong to D.

Result: Hat($D$) = $V$.

Remaining Colors Assignment

The hats assigned so far are: $D=V$, $E=I$, $F=R$, $G=O$.

The remaining people are A, B, C.

The remaining colours are Blue ($B$), Green ($G$), and Yellow ($Y$).

These colours ($B, G, Y$) must be worn by A, B, and C.

Clue Verification

The deduced assignments are consistent with all the given clues:

  • D (wears $V$) sees the hats of A, B, C. The clue states D sees $G$ and $B$ hats, and does not see $V$. This is consistent as $V$ is worn by D himself.
  • E (wears $I$) sees the hats of A, B, C, D. The clue states E sees $V$ (worn by D) and $Y$ (worn by A, B, or C), and does not see $R$ (worn by F). This is consistent.
  • G (wears $O$) sees the hats of A, B, C, D, E, F. These hats are $\{B, G, Y, V, I, R\}$, which are all colours except Orange ($O$). This is consistent.

The deduction process determines the hat colors for D, E, F, and G based on the provided information.

Was this answer helpful?

Important Questions from Logical Puzzle

  1. Below is given a figure, in which a horse is placed on one of the boxes in a square grid of size $5 \times 5$. The horse can move in either of the following ways in a single move: 

    (i) two boxes to either left or right side and one box to either up or down side 

    (ii) two boxes to either up or down side and one box to either left or right side 

    (iii) the horse cannot step on a grey box. The horse has to stay within the grid and any move to out of the grid is NOT legal.

     How many white boxes are there which cannot be covered by horse within 3 moves?

  2. Six persons Raj, Rohit, Rachit, Rajat, Rishu, and Rinku are working in an office. Each of them has a favorite car viz. P, Q, R, S, T, and U, but not necessarily in the same order. Each of them got a different salary - 1000, 2000, 2500, 3000, 3500, and 4000, but not necessarily in the same order. Rajat gets a salary of 2500 and his favorite car is U. The one who likes car Q gets a salary of 3000. Rachit likes car P and gets a salary of 3500. The one who gets a salary of 1000 does not like car R or S. Rinku does not like car Q or S but gets a salary of 2000. Rishu gets a salary of 4000 and does not like a car R. Rohit does not get a salary of 1000. Who gets a salary of 3000?
  3. Six friends P, Q, R, S, T, and U are sitting at different positions in a row of the company, and each of them get a different salary viz – 500, 800, 1000, 1500, 1800 & 2000, but not necessary in the same order. The friend who gets a salary of 2000 does not sit at the extreme end of the row. Q sits immediately before R and gets a salary of 800. T sits between U and S. Q is second to the left of S. P sits at the left end of the row and gets a salary of 1000. T gets a salary of 1500. R gets a salary neither of 2000 nor of 1800. How much salary does U get?
  4. Who amongst the females arrived third?
  5. Which is the correct pair of husband and wife?
Need Expert Advice?

Start Your Preparation with Prepp Mobile App

Download the app from Google Play & App Store
Download the app from Google Play & App Store
Prepp Mobile App