COMPILER DESIGN

ADVANCED TOPICS IN COMPILER DESIGN

CODE GENERATION FOR OBJECT ORIENTED LANGUAGES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which of the following is the decimal representation of the sum of binary numbers 1011 and 1011?
A
22
B
31
C
44
D
2022
Explanation: 

Detailed explanation-1: -Binary number 1101.101 is equivalent to decimal number? Explanation: Binary . 101 equals 0.625 in decimal.

Detailed explanation-2: -So, the decimal equivalent of the binary number (10111)2 is (23)10. ∴ The number at the place of the question mark will be 23.

Detailed explanation-3: -After converting the binary number ‘1011.011’ into the decimal number, final answer obtained is ‘11.375’.

There is 1 question to complete.