GATE Computer ScienceVery hardGATE CS (PYQ pattern)

On an island knights always tell the truth and knaves always lie. A says 'B is a knave'. B says 'A and C are of the same type'. C says 'exactly one of A and D is a knight'. D says 'at least one of B and C is a knight, and A is a knight'. How many of the four are knights?

  1. A. 0
  2. B. 2
  3. C. 1
  4. D. 3

Correct answer: C. 1

Brute force over the 16 type assignments leaves exactly one consistent one, with 1 knight(s).

More Discrete Mathematics questions

Exams that ask this topic