GATE CSE 2021 Set 2 Q54: 2-byte value 255 larger on little endian than on big endian
- Computer Organization and Architecture
- 2 marks
- MSQ
- No negative marking
Question
If 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 choices represent(s) the unsigned integer on a little endian computer?
Try it: multiple select: one or more correct options
Show answer and explanation
Answer: A, D (official GATE 2021 final answer key)
Concept used: The same two bytes read in the other order swap the high and low bytes.
First step: If the little-endian value is , the big-endian reading is ; their difference is , so .
Full step-by-step solution
Detailed working, common mistakes and linked mock tests will be available with a free GATEiit account. Log-in is coming soon.
Share this question
Source: official GATE 2021 Set 2 CS question paper and final answer key, organised by IIT Bombay. Question paper · Answer key
More Computer Organization and Architecture PYQs
- 2026 Session 1 · Q14Match addressing modes with high-level data elements
- 2026 Session 1 · Q15Instruction sequence for Z = X + Y on a load-store machine
- 2026 Session 1 · Q16Register dependency that causes a data hazard
- 2026 Session 1 · Q36IEEE 754 single-precision sum of 35C00000 and 34A00000
- 2026 Session 1 · Q38Tag length: direct-mapped vs K-way set-associative cache
- 2026 Session 1 · Q54Impossible TLB / page table / cache event sequences