
- 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# - Arithmetic Operators
- C# - Assignment Operators
- C# - Relational Operators
- C# - Logical Operators
- C# - Bitwise Operators
- C# - Miscellaneous Operators
- C# - Operators Precedence
- C# Conditional Statements
- C# - Decision Making
- C# - If
- C# - If Else
- C# - Nested If
- C# - Switch
- C# - Nested Switch
- C# Control Statements
- C# - Loops
- C# - For Loop
- C# - While Loop
- C# - Do While Loop
- C# - Nested Loops
- C# - Break
- C# - Continue
- C# OOP & Data Handling
- 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# 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.

Answer : B
Explanation
Keywords are reserved words predefined to the C# compiler. These keywords cannot be used as identifiers.
Q 2 - Which of the following is correct about dynamic Type in C#?
A - You can store any type of value in the dynamic data type variable.
B - Type checking for these types of variables takes place at run-time.
Answer : C
Explanation
Both of the above options are correct.
Q 3 - Which of the following converts a type to a double type in C#?
Answer : B
Explanation
ToDouble() method converts a type to a double type.
Q 4 - Which of the following operator creates a pointer to a variable in C#?
Answer : D
Explanation
* operator creates a pointer to a variable.
Q 5 - Which of the following access specifier in C# allows a child class to access the member variables and member functions of its base class?
Answer : C
Explanation
Protected access specifier allows a child class to access the member variables and member functions of its base class.
Q 6 - Which of the following is correct about params in C#?
B - Additional parameters are not permitted after the params keyword in a method declaration.
C - Only one params keyword is allowed in a method declaration.
Answer : D
Explanation
All of the above statements are correct.
Q 7 - Which of the following is the default access specifier of a class member function?
Answer : A
Explanation
Default access for the class member function is Private.
Answer : A
Explanation
The comparison operators can be overloaded.
Q 9 - Which of the following preprocessor directive specifies the end of a conditional directive in C#?
Answer : B
Explanation
#endif − Specifies the end of a conditional directive.
Q 10 - Which of the following is true about exceptions in C#?
Answer : C
Explanation
Both of the above options are correct.