Home / Programming MCQs / C# MCQs / Question

R

Ram Sharma • 188.81K Points
Coach

Q. Which keyword is used to define a class in C#?

(A) Class
(B) class
(C) System.Class
(D) OOPS.class

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Related MCQs on C#

Which of the following is the correct way to access all elements of the Queue collection created using the C#.NET code snippet given below? Queue q = new Queue(); q.Enqueue("Sachin"); q.Enqueue('A'); q.Enqueue(false); q.Enqueue(38); q.Enqueue(5.4);

A _____ is any valid C# variable ending with a colon.

The ______ are the Graphical User Interface (GUI) components created for web based interactions.

What is String in C# meant for?

What will be the output of the following C# code?

Choose effective differences between ‘Boxing’ and ‘Unboxing’.

What will be the output of the following C# code?

Which of the following statements are correct about exception handling in C#.NET? 1 If an exception occurs then the program terminates abruptly without getting any chance to recover from the exception. 2 No matter whether an exception occurs or not, the statements in the finally clause (if present) will get executed. 3 A program can contain multiple finally clauses. 4 A finally clause is written outside the try block. 5 Finally clause is used to perform cleanup operations like closing the network/database connections.

Which of the following statements are correct about arrays used in C#.NET? 1. Arrays can be rectangular or jagged. 2. Rectangular arrays have similar rows stored in adjacent memory locations. 3. Jagged arrays do not have an access to the methods of System.Array Class. 4. Rectangular arrays do not have an access to the methods of System.Array Class. 5. Jagged arrays have dissimilar rows stored in non-adjacent memory locations.

Learn All C# MCQs