Question 1
Priya says: 'My code starts with 1'
Ravi says: 'Priya is lying about their code'
Farhan says: 'The correct code has exactly two 1s'
Meera 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 1010 makes all statements consistent:
* Priya's statement is true → matches bit 1
* Ravi's statement is false → matches bit 0
* Farhan's statement is true → matches bit 1
* Meera's statement is true → matches bit 0
No other code satisfies all constraints.
Therefore, the correct code is 1010.
Testing each possible code:
- Code 1010 makes all statements consistent:
* Priya's statement is true → matches bit 1
* Ravi's statement is false → matches bit 0
* Farhan's statement is true → matches bit 1
* Meera's statement is true → matches bit 0
No other code satisfies all constraints.
Therefore, the correct code is 1010.