ASP.NET refers to the open-source web framework used to understand secure, fast web services and applications with .NET. It is also the cross-platform framework with the largest draws. What this means is it can run using every operating system, allowing you to build ASP.NET applications with Jquery, HTML, Javascript or CSS. You can also use it to build an API that any third-party resource can consume, such as Facebook, Google or Microsoft.
After you clear the ASP.NET exam, the next big step is the interview. Here are the top ASP.NET interview questions at the beginner and intermediate levels.
A1. CTS is the short form of ‘Common Type System’. CTS follows structured rules that stipulate data type needs to be declared and used in program code. It describes every data type that the application will use. You can create functions and classes of your own using the rules of CTS. This will help call the data type ‘declared’ by other languages when written using a specific programming language.
A2. CLS stands for Common Language Specification. It allows app developers to use inter-language compatible components with the rules that follow CLS. Additionally, it will enable developers to reuse this code among other languages compatible with .NET.
A3. JIT is Just in Time. It refers to a compiler used during execution for converting intermediate code into a native language.
A4. Int and Int32 are no different from each other. Int is short for Int32 in C# language. Int32 refers to a type that the class of the .NET framework provides.
A5. There are many differences between reference type and value type.
A6. Let’s take a look at some key differences:
A7. MSIL or Microsoft Intermediate Language is a language instructing users on calling, value initialising and storing, memory handling, and exception handling, among others. These instructions don’t depend on any platform and get generated through a language-specific compiler the source code has. A JIT compiler combines the Microsoft Intermediate Language into code depending on the need.
You May Also Like: All about ASP.NET Core 2.1
A8. It is an automatically generated file that the compiler generates, composed of several resources and types designed to function today, forming a logical functionality unit.
In other words, you could define assembly as a logical unit of code and compiled code. These files are implemented in one of two formats - executable or .exe and dynamic link library or .dll.
A9. ASP stands for active server pages. ASP and ASP.NET are pretty different from each other. Let’s look at the key differences.
A10. Private assembly and public or shared assembly categorise two types of assemblies:
Private assembly:
Public or shared assembly:
A11. The garbage collector feature is used to free unused code items in the system’s memory. The memory heap of a garbage collector is divided into three generations.
Garbage collection describes the process of checking for objects across all the generations in the managed heap that the application is no longer using. It also executes all critical processes and operations for reclaiming memory. A collection needs to be performed by the garbage collector to free up some memory space. Multiple things happen in the process of garbage collection. These are:
The method used for performing garbage collection is system.GC.collect() in .NET.
A12. Caching is the process that temporarily stores data in the system’s memory, allowing easy access to the data through an application via the system memory instead of looking in the original location. It significantly enhances the performance and speed of an application.
Three types categorise caching:
A13. MVC is the short form of Model View Controller, an architecture used while creating .NET applications. There are three main parts of MVC- model, view and controller.
Model:
A model holds data and logic related to it. It is best for handling the storing and retrieval of objects from an application’s database. For example, a controller object retrieves employee data from a database. Then it either manipulates this data and sends it back or retains and renders this data.
View:
This part takes care of the UI of applications. Views get data for display from the existing models. For example, an employee’s view can have dropdowns, text boxes and several other components.
Controller:
A controller handles user interactions, manages and formulates user input responses and renders the given output. For example, an employee controller handles every interaction and input using the Employee View and updates its database via the Employee Model.
A14. A delegate can be a .NET object that defines the signature of a method. It can easily pass functions as parameters. This delegate always redirects to methods that match its signature. A user can cover a method reference within a delegate object. When such an object is passed in programs, it’s called the referenced method. Delegates are used for creating custom events within a class.
A15. The role of the manifest is to store the assembly’s metadata. Manifest stores metadata that needed for several things like, including:
A16. CAS or Code Access Security is necessary to prevent unauthorised access to resources and programs while they are running. CAS became critical in solving issues that arise while code is being obtained from external sources. This code could contain vulnerabilities and bugs that could expose a user’s system. CAS also limits accessibility to code so that it performs specific functions rather than all of them at any point. It makes up part of the .NET native security architecture.
A17. There are two main memory types in the .NET framework. These are:
Archer Charles has top education industry knowledge with 4 years of experience. Being a passionate blogger also does blogging on the technology niche.