Q. Which one of the following represents the binary equivalent of the decimal number 23?
(A) 01011
(B) 10111
(C) 10011
(D) None of the above
Question from Odisha OCS Paper 2 2024
Correct Answer: (B) 10111
Explanation:
To convert the decimal number 23 into its binary equivalent, we repeatedly divide the number by 2 and record the remainders. The binary number is obtained by reading the remainders from bottom to top.
Step-by-step conversion:
1. 23 ÷ 2 = 11 remainder 1
2. 11 ÷ 2 = 5 remainder 1
3. 5 ÷ 2 = 2 remainder 1
4. 2 ÷ 2 = 1 remainder 0
5. 1 ÷ 2 = 0 remainder 1
Now, reading the remainders from bottom to top, we get 10111.
Thus, the binary equivalent of the decimal number 23 is 10111, and the correct answer is (B) 10111.