Enumerations

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.



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.