Project ForgeSign up free
Computer Organization & Architecture
Memory Hierarchy & Floating Point
GATE 2019
Medium

In 16-bit 2's complement representation, the decimal number −28 is:

  • A1111 1111 0001 1100
  • B0000 0000 1110 0100
  • 1111 1111 1110 0100
  • D1000 0000 1110 0100

Explanation

28 in 16-bit binary: 0000 0000 0001 1100. Invert all bits: 1111 1111 1110 0011. Add 1: 1111 1111 1110 0100.

Source: GATE CS 2019 (Set-2) (2019)

This question is part of a 15-day revision cycle — sign in and Project Forge will bring it back the day before you'd forget it.

Start revising free