GATE CS 2021 Set 2 | Question 54
Computer Organization & Architecture › Machine Instructions · MSQ · 2 marks · Answer: A, D
- Question 54Computer Organization & Architecturemsq2 marksIf the numerical value of a 2-byte unsigned integer on a little endian computer is 255 more than that on a big endian computer, which of the following choice(s) represent(s) the unsigned integer on a little endian computer?
- A.0x6665✓
- B.0x0001
- C.0x4243
- D.0x0100✓
Answer: A, D
Solution
Let the two stored bytes be (lower address) and . Little-endian value big-endian value , so . The little-endian value is then . () and () satisfy this; (B) and (C) do not. - A.
More GATE PYQ on Machine Instructions
All GATE CS Computer Organization & Architecture PYQ →Attempt GATE CS 2021 Set 2 in real GATE exam mode
Full paper with a timer, the GATE interface and a topic-wise analysis — free.
Create free account →