Skip to main content

C#.NET Interview Questions - Mock Test 1



c#.net
  1. Which of the following statements are TRUE about the .NET CLR?

  2. 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

  3. Which of the following utilities can be used to compile managed assemblies into processor-specific native code?

  4. gacutil
    ngen
    sn
    dumpbin

  5. 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?

  6. .NET class libraries
    Common Language Runtime
    Common Language Infrastructure
    Component Object Model

  7. Which of the following jobs are NOT performed by Garbage Collector?

  8. 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

  9. Which of the following constitutes the .NET Framework?

  10. ASP.NET Applications
    Framework Class Library
    CLR
    WinForm Applications

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

  12. Unmanaged
    Distributed
    Managed Code
    Legacy

  13. 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.

  14. 1,2,3
    1,3,5
    2,5
    2,4,5

  15. Which is true about enum in C#.NET?

  16. 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

  17. Which of the following is NOT a Bitwise operator in C#.NET?

  18. &
    ^
    |
    <<

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

  20. Private Assemblies
    Friend Assemblies
    Public Assemblies
    Shared Assemblies

Comments

Popular posts from this blog

Here is the next gen technology with greater career opportunities

Enhancing your skills in sustainability and green technologies is a great way to stay at the forefront of a growing field that combines technology, innovation, and environmental impact. As more industries look to adopt greener practices, software developers who understand sustainable technologies will be in high demand. Here are some strategies you can use to deepen your expertise in sustainability and green technologies: Gain a Strong Foundation in Sustainability Concepts, Learn About Green Technologies, Focus on Software Development for Sustainability,  Develop Practical Skills in Green Software Development, Network and Collaborate, Stay Updated on Industry Trends. As sustainability-focused technologies often require specialized tools and methods, gaining hands-on experience is crucial. Here are some skills you can focus on: a. Green Software Development Practices Learn about the carbon footprint of software. Explore how software can be optimized for lower energy consumption, r...

Central Pollution Control Board(CPCB) Recruitment 2020 (48 LDC,Data entry operator, Scientist)

Required Job Items Details Job Role / Position Scientist-B and Junior Scientific Assistant Hiring Company Central Pollution Control Board Job Description Central Pollution Control Board (CPCB) is a Statutory Organization under Ministry of Environment, Forest & Climate Change. Due to the pandemic situation by the speared of Coronavirus COVID-19 and the lockdown in the country, online applications are invited from the eligible and suitable Indian Nationals for direct recruitment to various posts on regular basis through open competition on all India basis. All Applicants should register and submit their applications online following the link available at page ‘jobs’ at CPCB website cpcb.nic.in Number of Posts 1. Scientist–‘B’:13 Posts 2.Junior Scientific Assistant: 02 Posts 3. Senior Technician: 06 Posts 4.Data Entry Operator (Grade-II): 02 Posts 5. Junior Technician: 02 Posts 6.Junior Laboratory Assistant: 07 Posts 7. Lower Division Clerk: 13 Posts 8.Attendant (MTS): 03 Posts Edu...

Are you an IT person? You should keep these apps in your phone

Feel proud if you have some of these apps in your mobile phone (and make sure you use it).  Do you have these apps in your phone for Coding and Technical Skills Practice? Algorithm and Data Structure Practice: LeetCode, HackerRank, Codewars, TopCoder, CodeSignal Mobile-Coding and On-the-Go Practice: SoloLearn, Dcoder, Programming Hub, Enki Interactive and Structured Learning: freeCodeCamp, Codecademy, Khan Academy, The Odin Project Advanced Topics (System Design, Interview Prep): AlgoExpert, System Design Primer, Interviewing.io Gamified Coding: CodeCombat, Scratch, CheckiO, Tynker Coding in Various Languages: Replit, Pydroid 3, AIDE Best Apps for App Development: Swift Playgrounds (iOS), Codea (iOS), Pyro (iOS), AIDE - IDE for Android (Android), Sketchware (Android), Dcoder (iOS/Android), Flutter (Dart) (iOS/Android), Xamarin (Android/iOS) Deep Learning & Neural Networks Apps: Deep Learning Studio (iOS/Android),  AI Dungeon (iOS/Android) General AI and ML Learning ...