Question: Which of the following statements is correct about the C#.NET code snippet given below?
Options
A : byte values cannot be assigned to enum elements.
B : enum elements should always take successive values.
C : Since 500, 1000, 1500 exceed the valid range of byte compiler will report an error.
D : enum must always be of int type.
Enumerations - General Questions more questions
Which of the following statements is correct about the C#.NET....
Which of the following is the correct output for the....
An enum can be declared inside a class, struct, namespace....
Which of the following CANNOT be used as an underlying....
Which of the following statements are correct about enum used....
Which of the following is the correct output for the....
Which of the following statements are correct about the C#.NET....
Which of the following statements is correct about an enum....
Which of the following statements are correct about an enum....
Which of the following is NOT a .NET Exception class?
Attributes - General Questions more Online Exam Quiz
Collection Classes - General Questions
Constructors - General Questions
.NET Framework - General Questions
Exception Handling - General Questions
Functions and Subroutines - General Questions