Thursday 11 August 2016

C#.NET Interview Questions - Mock Test 1



c#.net
  1. Which of the following statements are TRUE about the .NET CLR?
    It provides a language-neutral development & execution environment.
    It ensures that an application would not be able to access memory that it is not authorized to access.
    It provides services to run "managed" applications.
    All the above

  2. Which of the following utilities can be used to compile managed assemblies into processor-specific native code?
    gacutil
    ngen
    sn
    dumpbin

  3. 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?
    .NET class libraries
    Common Language Runtime
    Common Language Infrastructure
    Component Object Model

  4. Which of the following jobs are NOT performed by Garbage Collector?
    Freeing memory on the stack.
    Avoiding memory leaks.
    Freeing memory occupied by unreferenced objects.
    Closing unclosed database collections.
    Closing unclosed files.
    1,2,3
    3,5
    1,4,5
    3,4

  5. Which of the following constitutes the .NET Framework?
    ASP.NET Applications
    Framework Class Library
    CLR
    WinForm Applications

  6. Code that targets the Common Language Runtime is known as
    Unmanaged
    Distributed
    Managed Code
    Legacy

  7. 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.
    1,2,3
    1,3,5
    2,5
    2,4,5

  8. Which is true about enum in C#.NET?
    Enums are enumerated data type in c#.
    Enums are not for end-user, they are meant for developers.
    Enumerations (enums) make your code much more readable and understandable.
    All the above

  9. Which of the following is NOT a Bitwise operator in C#.NET?
    &
    ^
    |
    <<

  10. Which of the following assemblies can be stored in Global Assembly Cache?
    Private Assemblies
    Friend Assemblies
    Public Assemblies
    Shared Assemblies



from Prepare Interview.com http://ift.tt/2bmCLeM
via IFTTT

No comments:

Post a Comment