Question 65Asked in DSSSB TGT Computer Science (Technical), 13 Sep 2025, Shift 3 (5:00 PM)

If the compiler of the programming language occupies 2-byte memory space for an unsigned

If the compiler of the programming language occupies 2-byte memory space for an unsigned integer, then what is the range of the unsigned integer?
  1. A−32768 to 32767
  2. B0 to 65535
  3. C0 to 65536
  4. D0 to 32767
Show answerHide answer

Correct answer: (B) 0 to 65535

Explanation

2 bytes = 16 bits. An unsigned integer has no sign bit, so it holds 0 to 2¹⁶ − 1 = 0 to 65535.

From DSSSB TGT Computer Science PYQ (Technical), 13 Sep 2025, Shift 3 (5:00 PM)

This is question 65 of DSSSB TGT Computer Science PYQ (Technical), 13 Sep 2025, Shift 3 (5:00 PM). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.