nerdexam
Microsoft

98-372 · Question #13

You are creating an application using .NET Framework 4.0. The application uses an instance of the ushort type. Which of the following values can be stored in the instance of the ushort type? Each corr

The correct answer is B. 16,633 F. 34,210. The ushort type can only store values between 0 and 65,535. The ushort (Unsigned 16-bit integer) keyword specifies an integral data type that stores values according to the size and range. You can declare and initialize a ushort variable as follows: ushort myShort = 65535; In the

Understanding Cloud Concepts

Question

You are creating an application using .NET Framework 4.0. The application uses an instance of the ushort type. Which of the following values can be stored in the instance of the ushort type? Each correct answer represents a complete solution. Choose all that apply.

Options

  • A-127,236
  • B16,633
  • C-48,000
  • D-76,234
  • E127,236
  • F34,210

How the community answered

(50 responses)
  • A
    2% (1)
  • B
    84% (42)
  • C
    8% (4)
  • D
    2% (1)
  • E
    4% (2)

Explanation

The ushort type can only store values between 0 and 65,535. The ushort (Unsigned 16-bit integer) keyword specifies an integral data type that stores values according to the size and range. You can declare and initialize a ushort variable as follows: ushort myShort = 65535; In the above declaration, the integer literal 65535 is implicitly converted from int to ushort. If the integer literal goes beyond the range of ushort, a compilation error will arise.

Topics

#.NET Framework#ushort data type#value types#numeric ranges

Community Discussion

No community discussion yet for this question.

Full 98-372 Practice