Home / Programming Questions / C# MCQs / Page 3

C# MCQs with answers Page - 3

Dear candidates you will find MCQ questions of C# here. Learn these questions and prepare yourself for coming examinations and interviews. You can check the right answer of any question by clicking on any option or by clicking view answer button.
Share your questions by clicking Add Question

R

Ram Sharma • 188.81K Points
Coach

Q. Which of the following statements correctly define .NET Framework?

(A) It is an environment for developing, building, deploying and executing Desktop Applications, Web Applications and Web Services
(B) It is an environment for developing, building, deploying and executing only Web Applications.
(C) It is an environment for developing, building, deploying and executing Distributed Applications.
(D) It is an environment for developing, building, deploying and executing Web Services.

R

Ram Sharma • 188.81K Points
Coach

Q. Which of the following constitutes the .NET Framework?
1. ASP.NET Applications 
2. CLR 
3. Framework Class Library 
4. WinForm Applications
5. Windows Services

(A) 1,2
(B) 2,3
(C) 3,4
(D) 2,5

R

Ram Sharma • 188.81K Points
Coach

Q. Which of the following assemblies can be stored in Global Assembly Cache?

(A) Private Assemblies
(B) Friend Assemblies
(C) Shared Assemblies
(D) Public Assemblies

R

Ram Sharma • 188.81K Points
Coach

Q. Code that targets the Common Language Runtime is known as

(A) Unmanaged
(B) Distributed
(C) Legacy
(D) Managed code

R

Ram Sharma • 188.81K Points
Coach

Q. Which of the following statements is correct about the .NET Framework?

(A) NET Framework uses DCOM for achieving language interoperability.
(B) NET Framework is built on the DCOM technology.
(C) NET Framework uses DCOM for making transition between managed and unmanaged code.
(D) NET Framework uses DCOM for creating unmanaged applications.

R

Ram Sharma • 188.81K Points
Coach

Q. Which of the following benefits do we get on running managed code under CLR?
1. Type safety of the code running under CLR is assured. 
2. It is ensured that an application would not access the memory that it is not authorized to access. 
3. It launches separate process for every application running under it. 
4. The resources are Garbage collected.

(A) Only 1 and 2
(B) Only 2, 3 and 4
(C) Only 1, 3 and 4
(D) All of the above

R

Ram Sharma • 188.81K Points
Coach

Q. Which of the following jobs are done by Common Language Runtime?
1. It provides core services such as memory management, thread management, and remoting. 
2. It enforces strict type safety. 
3. It provides Code Access Security. 
4. It provides Garbage Collection Services.

(A) Only 1 and 2
(B) Only 3 and 4
(C) Only 1, 3 and 4
(D) All of the above

R

Ram Sharma • 188.81K Points
Coach

Q. Which of the following statements are correct about a .NET Assembly?
1. It is the smallest deployable unit. 
2. Each assembly has only one entry
point - Main(), WinMain() or DLLMain(). 3. An assembly can be a Shared assembly or a Private assembly. 
4. An assembly can contain only code
and data. 
5. An assembly is always in the form of an EXE file

(A) 1,2,3
(B) 2,4,5
(C) 1,3,5
(D) 1,2

Login

Forgot username? click here

Forgot password? Click here

Don't have account? Register here.