Change set

Pick exam & year, then Go.

Question map
Not attempted Correct Incorrect ★ Bookmarked
Loading…
Q78 (CISF/2023) Science & Technology › ICT, AI, Cybersecurity & Emerging Tech

The result of binary addition of - 8 and - 2 in two's complement form is :

Explanation

To perform the binary addition of -8 and -2 in two's complement, we first represent the numbers in binary. Since the sum (-10) falls outside the range of 4-bit signed integers (-8 to +7), we must use at least 5 bits (range -16 to +15).

  • Represent -8 in 5-bit: Positive 8 is 01000. Its 1's complement is 10111. Adding 1 gives 11000.
  • Represent -2 in 5-bit: Positive 2 is 00010. Its 1's complement is 11101. Adding 1 gives 11110.
  • Addition:
    11000 (-8)
    + 11110 (-2)
    ----------
    110110

In two's complement addition, the carry-out from the most significant bit (MSB) is discarded. Therefore, the 5-bit result is 10110. To verify: 10110 in two's complement is -(invert(0110) + 1) = -(01001 + 1) = -(01010)2 = -1010.

✓ Thank you! We'll review this.

SIMILAR QUESTIONS

CDS-II · 2025 · Q83 Relevance score: 1.50

Assuming the computer is a 4-bit computer, what result is produced after subtraction of 3 from 5 using the 2's complement representation ?

CISF · 2025 · Q143 Relevance score: 1.23

What is the representation of -59 in the 2's complement form ?

CISF · 2024 · Q80 Relevance score: -4.18

In a computer system, the signed numbers cannot be represented by