1.For all the predefined system exception in C#, System.SystemException class is the base class? A) true B) false View Answer Report DiscussAnswer: Option AExplanation:System.SystemException is the base class for all predefined system exception.
2.Which statement is the correct about namespaces in C#? A) A namespace provides a way to keep one set of names separate from another. B) Same class name can be used in different namespaces. C) Keyword using is used to include the namespace in the program. D) All of the above. View Answer Report DiscussAnswer: Option DExplanation:All of the above options are correct.
3.Which statement is the correct about interfaces in C#? A) Interface uses the interface keyword for the declaration. B) Interface methods are public by default. C) Both of the above. D) None of the above. View Answer Report DiscussAnswer: Option CExplanation:Both of the above options are correct.
4.Which statement is true about C# structures vs C# classes? A) Structs are value types and classes are reference types. B) Structures do not support inheritance. C) Structures cannot have default constructor D) All of the above. View Answer Report DiscussAnswer: Option DExplanation:All of the above options are correct.
5.Which property is used to get the total number of elements in all the dimensions of the Array as a a 64-bit integer in C#? A) Rank B) LongLength C) Length D) None of the above. View Answer Report DiscussAnswer: Option BExplanation:LongLength is the correct answer