- Convert positive 8 and 2 to binary (5 bits): - 8 = 01000 - 2 = 00010 - Find two's complement of 8 (for -8): - Invert bits: 10111 - Add 1: 10111 + 1 = 11000 (This is -8 in 5-bit two's complement) - Find two's complement of 2 (for -2): - Invert bits: 11101 - Add 1: 11101 + 1 = 11110 (This is -2 in 5-bit two's complement) - Perform binary addition: 11000 (-8) + 11110 (-2) ------- 110110 - In 5-bit two's complement addition, the carry-out from the most significant bit is discarded if the result is within the representable range. The result within 5 bits is 10110. - To verify 10110, it is a negative number (starts with 1). Take two's complement: Invert (01001), add 1 (01010). 01010 is 10 in decimal. Since it was negative, 10110 represents -10.
The result of binary addition of – 8 and – 2 in two's complement form is :
Asked in UPSC CISF AC EXE 2023 · Topic: Basics of Computers and Information Technology (Data Representation and Units of Measurement (Bits, Bytes, KiloBytes, etc.))
More Information and Communication Technology questions
- In the context of universal character encoding standard, UTF stands for
- The smallest addressable unit of memory is
- The memory of the computer is measured by:
- The world’s fastest computer has been able to perform (as of Dec. 1996)
- In binary code the number 7 is written as:
- How many minimum bits are required to represent 53 in decimal system to binary number system ? - (5) Question not attempted
- Convert the following decimal number to 8- bit binary. 187₁₀
- Convert the following binary number to octal. 010111100₂
All 1,360 Information and Communication Technology questions →