- 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
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 keyword is used for including the namespaces in the program in C#?
Answer : B
Explanation
The using keyword is used for including the namespaces in the program.
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 determines whether an object is of a certain type in C#?
Answer : B
Explanation
is operator determines whether an object is of a certain type.
Q 5 - Which of the following statements is correct about encapsulation?
Answer : D
Explanation
All of the above statements are correct.
Q 6 - Which of the following is correct about null coalescing operator in C#?
A - The null coalescing operator is used with the nullable value types and reference types.
Answer : D
Explanation
All of the above statements are correct.
Q 7 - Which of the following is the correct about class member functions?
Answer : C
Explanation
Both of the above options are correct.
Answer : A
Explanation
C# does not support multiple inheritance.
Q 9 - Which of the following preprocessor directive allows you to undefine a symbol in C#?
Answer : B
Explanation
#undef: It allows you to undefine a symbol.
Q 10 - The System.SystemException class is the base class for all predefined system exception in C#?
Answer : A
Explanation
The System.SystemException class is the base class for all predefined system exception.
To Continue Learning Please Login
Login with Google