Five codebits a–e are0/1. a+b+c and b+c+d are even; c+d+e is odd. Received10110 has exactly2 wrong bits. Find the original first3 bits.
A110
B101
C011
D000
Answer & Solution
Correct answer: A. 110
The parity-valid codes00001,01100,10111,11010 differ from10110 in4,3,1,2 places, leaving11010, whose first3 bits are110.
Keep practising Coding and Decoding
Browse all Coding and Decoding questions for RPF Constable, or explore more General Intelligence and Reasoning topics.
Related questions
Use the full coding ruleCode with two operationsA–F are six distinct nonzero digits. As two-digit numbers, AB=2×CD and EF=3×CD; B+D=14. FiA–E encode bijectively as A–E; none stays unchanged. D→A; exactly one of A→B,C→D holds. A’A–D are distinct digits1–9. AB+CD=BA uses two-digit numbers; A+D=12 and B>D. What digit isA four-letter code swaps the first two letters, shifts the third back2 and the fourth forwReverse a four-letter word, swap letters within each adjacent pair, then shift every letteUse reverse-alphabet values A=26,...,Z=1, then add each letter’s position in the word. Cod