Question 1
Manoj says: 'My code starts with 1'
Ravi says: 'Manoj is lying about their code'
Kiran says: 'The correct code has exactly two 1s'
Amit says: 'My code ends with 0'
Each person has a 4-digit code where 1=truth-teller, 0=liar. The code represents the sequence of T/L for P0, P1, P2, P3 respectively. What is the correct code?
The code represents the truth pattern: 1=truth-teller, 0=liar.
Testing each possible code:
- Code 0110 makes all statements consistent:
* Manoj's statement is false → matches bit 0
* Ravi's statement is true → matches bit 1
* Kiran's statement is true → matches bit 1
* Amit's statement is true → matches bit 0
No other code satisfies all constraints.
Therefore, the correct code is 0110.
Testing each possible code:
- Code 0110 makes all statements consistent:
* Manoj's statement is false → matches bit 0
* Ravi's statement is true → matches bit 1
* Kiran's statement is true → matches bit 1
* Amit's statement is true → matches bit 0
No other code satisfies all constraints.
Therefore, the correct code is 0110.