Enumerations - Programming

Q1:

Which of the following statements is true about an enum used in C#.NET?

A An implicit cast is needed to convert from enum type to an integral type.

B An enum variable cannot have a public access modifier.

C An enum variable cannot have a private access modifier.

D An enum variable can be defined inside a class or a namespace.

E An enum variable cannot have a protected access modifier.

ANS:D - An enum variable can be defined inside a class or a namespace.

No answer description is available. Let's discuss.