Computer Organization & Architecture
Memory Hierarchy & Floating Point
GATE 2010
Hard
P is a 16-bit signed integer. The 2's complement representation of P is (F87B)₁₆. The 2's complement representation of 8*P is
- (C3D8)₁₆
- B(187B)₁₆
- C(F878)₁₆
- D(987B)₁₆
Explanation
(F87B)₁₆ = 63611 unsigned, representing −(65536−63611) = −1925 as a 16-bit 2's complement value. 8×(−1925) = −15400. Representing −15400 in 16-bit 2's complement: 65536−15400 = 50136, which in hex is (C3D8)₁₆.
Source: GATE CS 2010 (2010)
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.