Multiple choice technology web technology

You need to identify a type that meets the following criteria: ? Is always a number.? Is not greater than 65,535. Which type should you choose?

  1. System.UInt16

  2. int

  3. System.String

  4. System.IntPtr

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

System.UInt16 is an unsigned 16-bit integer that always holds a numeric value from 0 to 65,535 (2^16 - 1), meeting both criteria. int (System.Int32) can hold negative numbers and values much larger than 65,535. System.String holds text, not numbers. System.IntPtr is a pointer-sized integer used for memory addresses, not constrained to 65,535.