C# Programming Quiz


Play this quiz that will help you to excel in C# certification exams, placements etc. This C# programming quiz consist of 10 questions that you need to solve in 10 minutes. We’ve specially designed this quiz so that you can quickly acquaint to the pattern of questions you can be asked in placement drives, certification exams etc. This test enables you to assess your knowledge of C# programming.

Take the Free Practice Test



C# MCQs

Practice C# MCQ Questions, which will help you to understand C#, ASP.NET and AD.NET easily.

C# Quiz

Try Free C# Quiz, to start a quiz you need to login first, after login you will get start quiz button and then by clicking on that you can start quiz. You will get 10 Minutes to answer all questions.

C# Quiz

1. Which exception class Handles errors generated during typecasting?

System.NullReferenceException
System.StackOverflowException
System.InvalidCastException
System.OutOfMemoryException

2. C# has strong resemblance with?

C
C++
Java
Python

3. Classic ASP pages have the file extension?

.aspx
.net
.asp
.cs

4. Which of the following is the wrong statement about exception handling in C#.NET?

finally clause is used to perform cleanup operations of closing network and database connections
a program can contain multiple finally clauses
the statement in final clause will get executed no matter whether an exception occurs or not
None of the above

5. Which method for making a thread pause for a specific period of time.

push()
wait()
sleep()
stack()

6. Syntax for closing and opening the connection in ADO.net is _______________

sqlConn.Open() and sqlConn.close()
sqlConn.open() and sqlConn.Close()
sqlConn.Open() and sqlConn.Close()
None of the above

7. Which properties Returns the parent DataSet?

ParentColumns
ParentRelations
ParentDataSet
DataSet

8. The main features of dotConnect for SQL Server includes ___________

Extra data binding capabilities
Ability of monitoring query execution
Supports the latest versions of SQL Server
All of the above

9. Attribute must be set on a validator control for the validation to work

ControlToValidate
ControlToBind
ValidateControl
Validate

10. C# exception handling is built upon __________ keywords.

One
Two
Three
Four

Results