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?
- A. Chirag, Pune
- B. Dev, Chennai
- C. Dev, Pune
- 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.
Practise more Logical Reasoning for Placements questionsLogical Reasoning for Placements: notes and key points
More Logical Reasoning for Placements questions
- In a series of figures, one cell of a 3 × 3 grid is shaded. In the first figure it is the top-left cell. In each next figure the shading…
- In a code language, 'good code runs' is written as 'ti po mu', 'clean code runs fast' as 'po ti zo ka', and 'fast good' as 'ka mu'. (The…
- What is the smallest positive number that leaves remainder 4 when divided by 6, remainder 5 when divided by 7, and remainder 6 when…
- In the addition LOGIC + LOGIC = PUZZLE, each letter stands for a different digit and no number starts with 0. What is the number PUZZLE?
- In AA + BB + CC = ABC, each letter is a different digit and no number begins with 0. What is ABC?
- In TO + GO = OUT, each letter stands for a different digit and no number starts with 0. What is OUT?