Question Set

1. Which of the following statements are correct about an enum used inC#.NET? By default the first enumerator has the value equal to the number of elements present in the list. The value of each successive enumerator is decreased by 1. An enumerator contains white space in its name. A variable cannot be assigned to an enum element. Values of enum elements cannot be populated from a database.





Ask Your Doubts Here

Type in
(Press Ctrl+g to toggle between English and the chosen language)

Comments

Show Similar Question And Answers
QA->Two statements are given followed by two conclusions I and II. You have to consider the two statements to be true even if they seem to be at variance from commonly known facts. You have to decide which one of the given conclusions is definitely drawn from the given statements. Statement : All virtuous persons are happy. No unhappy person is virtuous. Conclusions : I. Happiness is related to virtue II. Unhappy person is not virtuous.....
QA->Each pixel in digital image is assigned a tonal value (black, white, shades of gray or color), which is represented in:....
QA->Read the statements carefully and answer the question which follow: A cube has six sides each of a different colour.The red side is opposite black.The green side is between red and black.The blue side is adjacent to white .The brown side is adjacent to blue.The red side is face down.The side opposite brown is:....
QA->State list, Union list, Concurrent list are included in which of the following schedule....
QA->State list, Union list, Concurrent list are included in which of the following schedule....
MCQ->Which of the following statements are correct about an enum used inC#.NET? By default the first enumerator has the value equal to the number of elements present in the list. The value of each successive enumerator is decreased by 1. An enumerator contains white space in its name. A variable cannot be assigned to an enum element. Values of enum elements cannot be populated from a database.....
MCQ->Which of the following statements are correct about an enum used inC#.NET? To use the keyword enum, we should either use [enum] or System.Enum. enum is a keyword. Enum is class declared in System.Type namespace. Enum is a class declared in the current project's root namespace. Enum is a class declared in System namespace.....
MCQ->Which of the following statements are correct about the C#.NET code snippet given below? namespace IndiabixConsoleApplication ( class Sample { private enum color : int { red, green, blue } public void fun() { Console.WriteLine(color.red); } } class Program { static void Main(string[ ] args) { // Use enum color here } } } To define a variable of type enum color in Main(), we should use the statement, color c; . enum color being private it cannot be used in Main(). We must declare enum color as public to be able to use it outside the class Sample. To define a variable of type enum color in Main(), we should use the statement, Sample.color c; . We must declare private enum color outside the class to be able to use it in Main().....
MCQ->Which of the following statements are correct about an enum used in C#.NET? An enum can be declared inside a class. An enum can take Single, Double or Decimal values. An enum can be declared outside a class. An enum can be declared inside/outside a namespace. An object can be assigned to an enum variable.....
MCQ->Which of the following statements are correct about enum used in C#.NET? Every enum is derived from an Object class. Every enum is a value type. There does not exist a way to print an element of an enum as a string. Every enum is a reference type. The default underlying datatype of an enum is int.....
Terms And Service:We do not guarantee the accuracy of available data ..We Provide Information On Public Data.. Please consult an expert before using this data for commercial or personal use | Powered By:Omega Web Solutions
© 2002-2017 Omega Education PVT LTD...Privacy | Terms And Conditions
Question ANSWER With Solution