1.

Which of the following is the binary representation of 100?(a) 1010010(b) 1110000(c) 1100100(d) 1010101This question was posed to me during an interview.This intriguing question originated from Decimal to Binary Conversion using Recursion in division Recursion of Data Structures & Algorithms II

Answer»

The CORRECT option is (c) 1100100

For explanation: 100 = 64 + 32 + 4 = 2^6 + 2^5 + 2^2 = 1100100.



Discussion

No Comment Found

Related InterviewSolutions