C# Programming - Enumerations

Exercise : Enumerations - General Questions
  • Enumerations - General Questions
16.
Which of the following statements is correct about an enum used in C#.NET?
enum is a reference type.
enum is a value type.
Whether it a value type or a reference type depends upon size.
Whether it a value type or a reference type depends upon a Project Setting made in Visual Stiiclio.NET.
We can programmatically control whether it is a value type or a reference type.
Answer: Option
Explanation:
No answer description is available. Let's discuss.

17.
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.
1, 3, 4
2, 5
3, 4
2, 4, 5
Answer: Option
Explanation:
No answer description is available. Let's discuss.