Covid-19 Update!!    We have enabled all courses through virtual classroom facility using Skype or Zoom.    Don't stop learning.    Enjoy Learning from Home.

30% Discount Python        30% Discount Webdesign        30% Discount SEO        30% Discount Angular8        Free SQL Class        Free Agile Workshop       Free HTML Sessions        Free Python Basics

Important DOTNET Interview Questions and Answers

.NET Interview Questions

What is .NET?

NET is an integral part of many applications running on Windows and provides common functionality for those applications to run. This download is for people who need .NET to run an application on their computer. For developers, the .NET Framework provides a comprehensive and consistent programming model for building applications that have visually stunning user experiences and seamless and secure communication.

2. How many languages .NET is supporting now?

When .NET was introduced it came with several languages.
  • VB.NET,
  • C#,
  • COBOL
  • and
  • Perl, etc.

    3. What is an IL?

    IL means Intermediate Language, which is also known as MSIL (Microsoft Intermediate Language) or CIL (Common Intermediate Language). All .NET source code is organized to IL. IL is then converted to machine code at the point where the software is installed, or at run-time by a Just-In-Time (JIT) compiler.

    4. What is code access security (CAS)?

    Code access security (CAS) is part of the .NET security model that prevents unauthorized access of resources and operations, and restricts the code to perform particular tasks.

    5. What is Difference between Name Space and Assembly?

    Assembly is physical grouping of logical units, Namespace, logically groups classes.
    Namespace can span multiple assembly.

    6. What is Microsoft Intermediate Language (MSIL)?

    The .NET Framework is shipped with compilers of all .NET programming languages to develop programs. There are separate compilers for the Visual Basic, C#, and Visual C++ programming languages in .NET Framework. Each .NET compiler produces an intermediate code after compiling the source code.
    The intermediate code is common for all languages and is understandable only to .NET environment. This intermediate code is known as MSIL.

    7. What are tuples?

    Tuple is a fixed-size collection that can have elements of either same or different data types. Similar to arrays, a user must have to specify the size of a tuple at the time of declaration. Tuples are allowed to hold up from 1 to 8 elements and if there are more than 8 elements, then the 8th element can be defined as another tuple. Tuples can be specified as parameter or return type of a method.

    8. What are the two fundamental objects in ADO.NET?

    The two fundamental objects in ADO.NET are Data Reader and Data Set.

    9. What is the meaning of object pooling?

    Object pooling is a concept of storing a group of objects in memory that can be reused later as when needed. Whenever, a new object is required to create, an object from the pool can be issued. A pool can also refer to a group of connections and threads. Pooling, therefore, helps in reduce the use of system resources, improves system scalability, and performance.

    10. What is Auto Post Back?

    If you want a control to postback automatically when an event is raised, you need to set the AutoPostBack property of the control to True.

    11. What is the function of the View State property?

    The ASP.NET 4.0 introduced a new property called ViewStateMode for the Control class. Now you can enable the view state to an individual control even if the view state for an ASP.NET page is disabled.

    12. What is the basic difference between ASP and ASP.NET?

    The difference between ASP and ASP.NET is that ASP is interpreted; whereas, ASP.NET is compiled. This implies that since ASP uses VBScript; therefore, when an ASP page is completed, it is interpreted. On the other hand, ASP.NET uses .NET languages, like C# and VB.NET, which are compiled to Microsoft Intermediate Language (MSIL).

    13. What are the advantages of the code-behind feature?

    The advantages of the code-behind feature’s are:
  • Makes code easy to recognize and debug by segregate application logic from HTML tags.
  • Provides the isolation of effort between graphic designers and software engineers
  • Removes the problems of browser incompatibility by issuing code files to exist on the Web server and supporting Web pages to be compiled on demand.

    14. Define a multilingual Web site.

    A multilingual Web site serves content in a number of languages. It contains multiple copies for its content and other resources, such as date and time, in different languages.

    15. How do you validate the controls in an ASP .NET page?

    By using special validation controls that are meant for validation of any control we can validate the control in ASP.NET page. We have Range Validator, Email Validator in .NET to validate any control.

    16. Differentiate globalization and localization.

    The globalization is a technique to identify the specific part of a Web application that is different for different languages and make separate that portion from the core of the Web application. The localization is a procedure of configuring a Web application to be supported for a specific language or locale.

    17. What is ViewState?

    The ViewState is a feature used by ASP.NET Web page to store the value of a page and its controls just before posting the page. Once the page is posted, the first task by the page processing is to restore the ViewState to get the values of the controls.

    18. What is serialization?

    Serialization is the process of converting an object into a stream of bytes.Deserialization is the opposite process, i.e. creating an object from a stream of bytes. Serialization/Deserialization is mostly used to transport objects (e.g. during remoting), or to persist objects (e.g. to a file or database).

    19. What is Method Overriding? How to override a function in C#?

    An override method provides a new implementation of a member inherited from a base class. The method overridden by an override declaration is known as the overridden base method. The overridden base method must have the same signature as the override method. Use the override modifier to modify a method, a property, an indexer, or an event. You cannot override a non-virtual or static method. The overridden base method must be virtual, abstract, or override.

    20. What is Delegation in .NET?

    A delegate acts like a strongly type function pointer. Delegates can invoke the methods that they reference without making explicit calls to those methods. Delegate is an entity that is entrusted with the task of representation, assign or passing on information. In code sense, it means a Delegate is entrusted with a Method to report information back to it when a certain task (which the Method expects) is accomplished outside the Method's class.