System.UInt16 type criteria - Csharp.Net

Q.  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?

- Published on 31 Aug 15

a. System.UInt16
b. int
c. System.String
d. System.IntPtr

ANSWER: System.UInt16
The maximum value of System.UInt16 is 65535 so you can store more than this value.

Post your comment / Share knowledge

Enter the code shown above:
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)