UPSC CSE Prelims 2013
: Red
The problem requires deducing the cap colours for each individual based on their position in the queue and their visibility. The individuals are arranged in the order A, B, C, D, E, F, G.
The statement "D is able to see in front of him green and blue, but not violet" implies that D is wearing the violet cap. If D could see violet, someone in front of him (A, B, or C) would be wearing it. Since D cannot see violet, he is wearing it. Consequently, green and blue caps are worn by A, B, or C.
The statement "G can see caps of all colours other than orange" implies that G is wearing the orange cap. If G could see orange, someone else would be wearing it. Since G cannot see orange, he is wearing it.
It is explicitly stated that "E is wearing an indigo coloured cap."
Now consider the statement "E can see violet and yellow but not red."
Therefore, based on the logical deductions, F is wearing the red cap.
Blue: Blue is worn by one of the individuals A, B, or C, as D can see blue in front of him.
Violet: Violet is worn by D, as D cannot see violet in front of him.
Orange: Orange is worn by G, as G cannot see orange.