Vidyalelo
C# Programming · all questions

Miscellaneous in C Sharp
practice.

Practice every MCQ with options. Use Show answers when you want the correct option and solution.

170

Questions

1/9

Page

Pick an option on a question to see the right answer and solution.

What is the purpose of the "using" keyword in C#?

Select an option to see the answer and solution.

What does the "break" keyword do in a switch statement?

Select an option to see the answer and solution.

Which of the following is NOT a valid C# access modifier?

Select an option to see the answer and solution.

What is the purpose of the "readonly" keyword in C#?

Select an option to see the answer and solution.

What does the "this" keyword refer to in C#?

Select an option to see the answer and solution.

What is the purpose of the "async" and "await" keywords in C#?

Select an option to see the answer and solution.

What does the "params" keyword allow in C#?

Select an option to see the answer and solution.

Which of the following is NOT a valid C# data type?

Select an option to see the answer and solution.

What does the "is" keyword do in C#?

Select an option to see the answer and solution.

What is the purpose of the "out" keyword in C# method parameters?

Select an option to see the answer and solution.

What does the "typeof" operator return in C#?

Select an option to see the answer and solution.

What is the default value of an integer variable in C# if it is not explicitly initialized?

Select an option to see the answer and solution.

What is the purpose of the "as" keyword in C#?

Select an option to see the answer and solution.

Which of the following is NOT a valid C# loop construct?

Select an option to see the answer and solution.

What does the "sealed" keyword do in C#?

Select an option to see the answer and solution.

In C#, what does the "using" directive do?

Select an option to see the answer and solution.

What does the "ref" keyword allow in C#?

Select an option to see the answer and solution.

What is the purpose of the "virtual" keyword in C#?

Select an option to see the answer and solution.

Which of the following is NOT a valid C# access modifier?

Select an option to see the answer and solution.

What does the "using" keyword do in the context of IDisposable objects in C#?

Select an option to see the answer and solution.