Placement AptitudeHardWipro NLTH · Cognizant pattern

One of four developers A, B, C and D broke the build. Exactly one of them is lying. A: "I did not break it." B: "C broke it." C: "D broke it." D: "C is lying." Who broke the build?

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

Correct answer: D. C

B and C accuse different people, so at most one of them is telling the truth — one of them is the liar, and A and D are truthful. D says C is lying, so C is the liar and B is truthful: C broke it. Check: A (not A) true, B (C) true, C (D) false, D true — exactly one lie.

More Logical Reasoning for Placements questions

Exams that ask this topic