Enumerations

Q1:
Which of the following statements are correct about an enum used in C#.NET?
  1. An enum can be declared inside a class.
  2. An enum can take Single, Double or Decimal values.
  3. An enum can be declared outside a class.
  4. An enum can be declared inside/outside a namespace.
  5. An object can be assigned to an enum variable.

A 1, 3, 4

B 2, 5

C 3, 4

D 2, 4, 5

ANS:A - 1, 3, 4

No answer description is available. Let's discuss.



img not found
img

For help Students Orientation
Mcqs Questions

One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.