What is the largest unsigned integer that can be represented with 16 bits?

- 65,535 (Answer)
- 255
- 2,147,483,647
- 4,294,967,295
The correct answer is: 65,535
With 16 bits there are 2^{16} = 65,536 combinations, from 0 to 65,535. That is why internet ports run from 0 to 65,535: TCP and UDP store the port number in a 16-bit field.
More on Wikipedia · From the quiz of Tuesday, 17 November 2026