Top 150+ Solved C# Programming MCQ Questions Answer

From 1 to 15 of 144

Q. Which of the following statements is correct about Managed Code?

a. Managed code is the code that is compiled by the JIT compilers.

b. Managed code is the code where resources are Garbage Collected.

c. Managed code is the code that runs on top of Windows.

d. Managed code is the code that is written to target the services of the CLR.

  • d. Managed code is the code that is written to target the services of the CLR.

Q. Which of the following components of the .NET framework provide an extensible set of classes that can be used by any .NET compliant programming language?

a. NET class libraries

b. Common Language Runtime

c. Common Language Infrastructure

d. Component Object Model

  • a. NET class libraries

Q. Which of the following .NET components can be used to remove unused references from the managed heap?

a. Common Language Infrastructure

b. CLR

c. Garbage Collector

d. Class Loader

  • c. Garbage Collector

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.

  • a. It is an environment for developing, building, deploying and executing Desktop Applications, Web Applications and Web Services

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

  • c. Shared Assemblies

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

a. Unmanaged

b. Distributed

c. Legacy

d. Managed code

  • d. Managed code

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.

  • c. NET Framework uses DCOM for making transition between managed and unmanaged code.
Subscribe Now

Get All Updates & News