42.5k views
4 votes
Which of the fololwing options represents a 16 bit unsigned integer?

A) 127
B) -32768
C) 65535
D) -16384

1 Answer

2 votes

Final answer:

Option C) 65535 represents a 16-bit unsigned integer.

Step-by-step explanation:

A 16-bit unsigned integer is a binary number that can represent values from 0 to 2^16 - 1. The options given are:

  1. 127 - This is a 7-bit number and cannot represent a 16-bit unsigned integer.
  2. -32768 - This is a negative number and cannot represent an unsigned integer.
  3. 65535 - This is correct as it is a 16-bit binary number that can represent values from 0 to 2^16 - 1.
  4. -16384 - This is a negative number and cannot represent an unsigned integer.

Therefore, the correct option representing a 16-bit unsigned integer is C) 65535.

User Hassan Siddiqui
by
8.3k points