Question
1. Every enum is derived from an Object class.
2. Every enum is a value type.
3. There does not exist a way to print an element of an enum as a string.
4. Every enum is a reference type.
5. The default underlying datatype of an enum is int.
a.
1, 2, 5
b.
1, 4
c.
3, 5
d.
2, 3, 4
Posted under C# programming
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. Which of the following statements are correct about enum used in C#.NET? 1. Every enum is derived from an Object class. 2. Every enum is a value type. 3. There does not exist...
Similar Questions
Discover Related MCQs
Q. Which of the following statements is correct about an enum used in C#.NET?
View solution
Q. Choose the correct statement among the followings?
View solution
Q. Choose the keyword which declares the indexer?
View solution
Q. Choose the operator/operators which is/are not used to access the [] operator in indexers?
View solution
Q. Choose the correct statement among the following?
View solution
Q. Which among the following are the advantages of using indexers?
View solution
Q. Choose the correct statement about properties describing the indexers?
View solution
Q. Choose the correct alternative that utilizes the indexed property such that a group named class has indexed property which stores or retrieves value to/from an array of 5 numbers?
View solution
Q. Choose the correct option among the following indexers which correctly allows to index in same way as an array?
View solution
Q. Choose the wrong statement about the properties used in C#.NET?
View solution
Q. Choose the statements which makes use of essential properties rather than making data member public in C#.NET?
View solution
Q. Where the properties can be declared?
View solution
Q. Select the modifiers which can be used with the properties?
View solution
Q. Choose the correct statements about write-only properties in C#.NET?
View solution
Q. Consider a class maths and we had a property called as sum.b is a reference to a maths object and we want the statement b.sum = 10 to fail.Which of the follwing is the correct
View solution
Q. Consider a class maths and we had a property called as sum.b which is the reference to a maths object and we want the statement Console.WriteLine(b.sum)to fail.Which among the following is the correct solution to ensure this functionality?
View solution
Q. Consider a class maths and we had a property called as sum.b is a reference to a maths object and we want the code below to work.Which is the correct solution to ensure this functionality?
b.maths = 10;
Console.WriteLine(b.maths);
View solution
Q. If math class had add property with get and set accessors, then which of the following statements will work correctly?
View solution
Q. If the math class had add property with get accessors then which of the following statements will work correctly?
View solution
Q. Select the correct statement about properties of read and write in C#.NET?
View solution
Suggested Topics
Are you eager to expand your knowledge beyond C# programming? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!