Skip to main content

.Net Interview Faqs

  1. What is the smallest unit of execution in .NET?

    An Assembly.

  2. How is .NET able to support multiple languages?

    a language should comply with the Common Language Runtime standard to become a .NET language. In .NET, code is compiled to Microsoft Intermediate Language (MSIL for short). This is called as Managed Code. This Managed code is run in .NET environment. So after compilation to this IL the language is not a barrier. A code can call or use a function written in another language.

  3. What's a satellite assembly?

    When you write a multilingual or multi-cultural application in .NET, and want to distribute the core application separately from the localized modules, the localized assemblies that modify the core application are called satellite assemblies.

  4. What's the difference between the Debug class and Trace class?

    Use Debug class for debug builds, use Trace class for both debug and release builds.

  5. How is the DLL Hell problem solved in .NET?

    Assembly versioning allows the application to specify not only the library it needs to run (which was available under Win32), but also the version of the assembly.

  6. What are the ways to deploy an assembly?

    An MSI installer, a CAB archive, and XCOPY command.

  7. When should you call the garbage collector in .NET?

    As a good rule, you should not call the garbage collector.  However, you could call the garbage collector when you are done using a large object (or set of objects) to force the garbage collector to dispose of those very large objects from memory.  However, this is usually not a good practice.

  8. How do you convert a value-type to a reference-type?

    Use Boxing.

  9. Whats an assembly?

    Assemblies are the building blocks of the .NET framework;

  10. What happens in memory when you Box and Unbox a value-type?

    Boxing converts a value-type to a reference-type, thus storing the object on the heap.  Unboxing converts a reference-type to a value-type, thus storing the value on the stack.

  11. Is .NET capable of supporting multi-thread?

    yes, .net supports multithreading which is one of the feature supported by .net

  12. What does assert() do?

    In debug compilation, assert takes in a Boolean condition as a parameter, and shows the error dialog if the condition is false. The program proceeds without any interruption if the condition is true.

  13. Can you store multiple data types in System.Array?

    No 

  14. Where does the Web page belong in the .NET Framework class hierarchy?

    System.Web.UI.Page

  15. Where do you store the information about the user's locale?

    System.Web.UI.Page.Culture.

  16. Whats MSIL, and why should my developers need an appreciation of it if at all?

    MSIL is the Microsoft Intermediate Language. All .NET compatible languages will get converted to MSIL. 

  17. How many classes can a single .NET DLL contain?

    It can contain many classes.

  18. What is the role of the DataReader class in ADO.NET connections?

    It returns a read-only, forward-only rowset from the data source. A DataReader provides fast access when a forward-only sequential read is needed.

  19. What are advantages and disadvantages of Microsoft-provided data provider classes in ADO.NET?

    SQLServer.NET data provider is high-speed and robust, but requires SQL Server license purchased from Microsoft. OLE-DB.NET is universal for accessing other sources, like Oracle, DB2, Microsoft Access and Informix. OLE-DB.NET is a .NET layer on top of the OLE layer, so it's not as fastest and efficient as SqlServer.NET.

  20. What is a pre-requisite for connection pooling?

    Multiple processes must agree that they will share the same connection, where every parameter is the same, including the security settings. The connection string must be identical.

  21. What is Serializatoin?

    Serialization is the process of converting an object or a con-nected graph of objects into a contiguous stream of bytes. Deserialization is the process of converting a contiguous stream of bytes back into its graph of connected objects. The ability to convert objects to and from a byte stream is an incredibly useful mechanism. Here are some examples:

    • An application's state (object graph) can easily be saved in a disk file or database and then restored the next time the application is run. ASP.NET saves and restores session state by way of serialization and deserialization.
    • A set of objects can easily be copied to the system's clipboard and then pasted into the same or another application. In fact, Windows® Forms uses this procedure.
    • A set of objects can be cloned and set aside as a backup while a user manipulates the main set of objects.
    • A set of objects can easily be sent over the network to a process running on another machine. The Microsoft® .NET Framework remoting architecture serializes and deserializes objects that are marshaled by value.

Comments

Popular posts from this blog

Top Open Source Web-Based Project Management Software

This is an user contributed article. Project management software is not just for managing software based project. It can be used for variety of other tasks too. The web-based software must provide tools for planning, organizing and managing resources to achieve project goals and objectives. A web-based project management software can be accessed through an intranet or WAN / LAN using a web browser. You don't have to install any other software on the system. The software can be easy of use with access control features (multi-user). I use project management software for all of our projects (for e.g. building a new cluster farm) for issue / bug-tracking, calender, gantt charts, email notification and much more. Obviously I'm not the only user, the following open source software is used by some of the biggest research organizations and companies world wild. For example, NASA's Jet Propulsion Laboratory uses track software or open source project such as lighttpd / phpbb use re...

Google products for your Nokia phone

Stay connected with Gmail, Search, Maps and other Google products. Check products are available for your Nokia phone Featured Free Products Search - Find the information you need quickly and easily Maps - Locate nearby businesses and get driving directions Gmail - Stay connected with Gmail on the go YouTube - Watch videos from anywhere Sync - Synchronize your contacts with Google

DotNetNuke Overview

DotNetNuke is the leading Web Content Management Platform for Microsoft .NET. DotNetNuke can be used as a web content management system (CMS) for simple websites or as a powerful application development framework which enables businesses to quickly build and deploy feature-rich, interactive websites and applications in Microsoft .NET. An intuitive, menu-driven interface allows non-technical users to easily create new sites or extend the functionality and features of their existing web site when used as a web CMS. An open API and the availability of over 6,000 third-party add-on modules available through Snowcovered.com allow web development professionals to create complex web sites for demanding applications. Installing new modules or skins is quick and easy, allowing users to deploy new functionality on their web sites in just minutes. DotNetNuke is the world’s most widely adopted framework for building web solutions on Microsoft Windows Server. DotNetNuke powers o...