Placement AptitudeHardCognizant · Capgemini pattern

Asha, Bina, Chirag and Dev live in four different cities (Pune, Delhi, Chennai, Kolkata) and each codes mainly in a different language (Java, Python, C++, Go). • Asha does not live in Pune and does not code in Java. • The person in Delhi codes in Python. • Chirag lives in Chennai or Kolkata. • Bina codes in Go. • The Java coder does not live in Kolkata. • Dev does not live in Delhi, and Bina does not live in Pune. • Chirag does not code in C++. Who codes in C++, and where does that person live?

  1. A. Chirag, Pune
  2. B. Dev, Chennai
  3. C. Dev, Pune
  4. D. Asha, Pune

Correct answer: C. Dev, Pune

Bina codes Go, and Chirag codes neither Go nor C++; the Delhi person codes Python. Chirag (Chennai/Kolkata) is not in Delhi, so Chirag codes Java and, as the Java coder is not in Kolkata, lives in Chennai. Asha codes neither Java nor Go, and Dev is not in Delhi; Bina (Go) is not in Delhi either, so Asha is in Delhi coding Python. Dev codes C++; Bina is not in Pune, so Bina is in Kolkata and Dev in Pune.

More Logical Reasoning for Placements questions

Exams that ask this topic