C#- .NET Framework Question and Answer

C#- .NET Framework Question and Answer
11. Which of the following assemblies can be stored in Global Assembly Cache?
  • Private Assemblies
  • Friend Assemblies
  • Shared Assemblies
  • Public Assemblies
Show Answer
12. Code that targets the Common Language Runtime is known as
  • Unmanaged
  • Distributed
  • Legacy
  • Managed Code
Show Answer
13. Which of the following statements is correct about the .NET Framework?
  • .NET Framework uses DCOM for achieving language interoperability.
  • .NET Framework is built on the DCOM technology.
  • .NET Framework uses DCOM for making transition between managed and unmanaged code.
  • .NET Framework uses DCOM for creating unmanaged applications.
Show Answer
14.  Which of the following is the root of the .NET type hierarchy?
  • System.Object
  • System.Type
  • System.Base
  • System.Parent
Show Answer
15.  Which of the following benefits do we get on running managed code under CLR?

    Type safety of the code running under CLR is assured.
    It is ensured that an application would not access the memory that it is not authorized to access.
    It launches separate process for every application running under it.
    The resources are Garbage collected.

  • Only 1 and 2
  • Only 2, 3 and 4
  • Only 1, 2 and 4
  • Only 4
Show Answer
16. Which of the following security features can .NET applications avail?

    PIN Security
    Code Access Security
    Role Based Security
    Authentication Security
    Biorhythm Security

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


  • Only 1 and 2
  • Only 1, 3 and 4
  • Only 2, 3 and 4
  • All of the above
Show Answer
18. Which of the following statements are correct about a .NET Assembly?

    It is the smallest deployable unit.
    Each assembly has only one entry point - Main(), WinMain() or DLLMain().
    An assembly can be a Shared assembly or a Private assembly.
    An assembly can contain only code and data.
    An assembly is always in the form of an EXE file.

  • 1, 2, 3
  • 2, 4, 5
  • 1, 3, 5
  • 1, 2
Show Answer
19.  Which of the following statements are correct about JIT?

    JIT compiler compiles instructions into machine code at run time.
    The code compiler by the JIT compiler runs under CLR.
    The instructions compiled by JIT compilers are written in native code.
    The instructions compiled by JIT compilers are written in Intermediate Language (IL) code.
    The method is JIT compiled even if it is not called
  • 1, 2, 3
  • 2, 4
  • 3, 4, 5
  • 1, 2
Show Answer
20. Which of the following are parts of the .NET Framework?

    The Common Language Runtime (CLR)
    The Framework Class Libraries (FCL)
    Microsoft Published Web Services
    Applications deployed on IIS
    Mobile Applications
  • Only 1, 2, 3
  • Only 1, 2
  • Only 1, 2, 4
  • Only 4, 5
Show Answer
Questions and Answers for Competitive Exams Various Entrance Test