GATE Computer ScienceModerateGATE CS (PYQ pattern)
Which statements about 8-bit number representations are correct? I. In one's complement, 0xFE + 0x02 with end-around carry gives 0x01. II. Sign-extending the two's-complement byte 0x9C to 16 bits gives 0xFF9C. III. In sign-magnitude, 0x80 and 0x00 both represent zero. IV. In excess-128 (bias 128) code, 0x7F represents 0.
- A. II and III only
- B. I, II, III and IV
- C. I, II and III only
- D. II, III and IV only
Correct answer: C. I, II and III only
I: 0xFE is −1 in one's complement; 0xFE + 0x02 = 0x100, and adding the carry back gives 0x01 = +1 (true). II: 0x9C has MSB 1, so the high byte is 0xFF (true). III: +0 and −0 (true). IV: in excess-128, 0x80 is 0 and 0x7F is −1 (false); 0x7F is 0 only in excess-127.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- A 64 KB, 4-way set-associative write-back cache uses 64-byte blocks and 40-bit physical addresses. Each line also stores one valid bit…
- A disk has 4 platters. Both surfaces of every platter hold data except the top surface of the top platter and the bottom surface of the…
- A control store holds 1024 microinstructions. In horizontal form each word has one bit for each of 60 control signals, a 10-bit…
- A 5-stage pipeline has forwarding from EX/MEM and MEM/WB to the ALU inputs and also from MEM/WB to the data input of a store in MEM. The…
- A process has three segments of 102,400 B (code), 61,440 B (data) and 20,780 B (stack). Each segment is allocated separately in whole…
- A 16 KB direct-mapped write-back cache has 32-byte blocks; every line stores its data, its tag, one valid bit and one dirty bit, and…