
- C# Basic Tutorial
- C# - Home
- C# - Overview
- C# - Environment
- C# - Program Structure
- C# - Basic Syntax
- C# - Data Types
- C# - Type Conversion
- C# - Variables
- C# - Constants
- C# - Operators
- C# - Decision Making
- C# - Loops
- C# - Encapsulation
- C# - Methods
- C# - Nullables
- C# - Arrays
- C# - Strings
- C# - Structure
- C# - Enums
- C# - Classes
- C# - Inheritance
- C# - Polymorphism
- C# - Operator Overloading
- C# - Interfaces
- C# - Namespaces
- C# - Preprocessor Directives
- C# - Regular Expressions
- C# - Exception Handling
- C# - File I/O
- C# Advanced Tutorial
- C# - Attributes
- C# - Reflection
- C# - Properties
- C# - Indexers
- C# - Delegates
- C# - Events
- C# - Collections
- C# - Generics
- C# - Anonymous Methods
- C# - Unsafe Codes
- C# - Multithreading
- C# Useful Resources
- C# - Questions and Answers
- C# - Quick Guide
- C# - Useful Resources
- C# - Discussion
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
C# Online Quiz
Following quiz provides Multiple Choice Questions (MCQs) related to C#. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. You can use Next Quiz button to check new set of questions in the quiz.

Q 1 - Which of the following is a contextual keyword in C#?
Answer : D
Explanation
All of the above options are contextual keywords.
Q 2 - Which of the following is correct about reference type variables in C#?
A - The reference types do not contain the actual data stored in a variable.
B - They contain a reference to the variables.
C - Example of built-in reference types are: object, dynamic, and string.
Answer : D
Explanation
All of the above options are correct.
Q 3 - Which of the following converts a type to a 16-bit integer in C#?
Answer : C
Explanation
ToInt16() method converts a type to a 16-bit integer.
Q 4 - Which of the following operator casts without raising an exception if the cast fails in C#?
Answer : C
Explanation
as operator casts without raising an exception if the cast fails.
Q 5 - Which of the following method helps in returning more than one value?
Answer : C
Explanation
Output parameters method helps in returning more than one value.
Q 6 - Which of the following property of Array class in C# gets a 64-bit integer, the total number of elements in all the dimensions of the Array?
Answer : B
Explanation
LongLength gets a 64-bit integer that represents the total number of elements in all the dimensions of the Array.
Q 7 - Which of the following is true about C# enumeration?
A - An enumerated type is declared using the enum keyword.
B - C# enumerations are value data type.
C - Enumeration contains its own values and cannot inherit or cannot pass inheritance.
Answer : D
Explanation
All of the above options are correct.
Q 8 - Which of the following is the correct about interfaces in C#?
A - Interfaces are declared using the interface keyword.
Answer : C
Explanation
Both of the above options are correct.
Q 9 - Which of the following preprocessor directive defines a sequence of characters as symbol in C#?
Answer : A
Explanation
#define: It defines a sequence of characters, called symbol.
Q 10 - Which of the following is true about catch block in C#?
B - The catch keyword indicates the catching of an exception.
Answer : C
Explanation
Both of the above options are correct.