Microsoft’s .NET Framework provides an environment for running, debugging, and deploying code into web services and applications via tools and features such as libraries, classes, and APIs. Object-oriented programming is used in this framework. In this article, you can learn the .NET Framework interview questions and answers for freshers, experienced professionals, and senior developers to get the job easily.
For writing .net framework apps, you can utilize a variety of languages such as C#, Cobol, VB, F#, Perl, and others. On Windows, this framework supports services, websites, desktop apps, and more. It has features like generic types, automated memory management, reflection, concurrency, and so forth. These features will aid in the development of high-quality web and client apps by making them more accessible and more efficient.
Learn more: Top 100+ .NET Interview Questions
Here we have a list of more than 100 .net framework interview questions that will help you to prepare for the job.
Top 100+ .NET Framework Interview Questions With Answers
.NET Framework Interview Questions for Freshers
Here we will discuss about some of the interview questions on .net framework for the freshers. These questions will be little bit easy, but the important ones. You will definitely get some common questions from here.
1. What is the .net framework?
Ans. It’s a Windows platform for developing various applications. It comes with a set of built-in features in the form of classes, libraries, and APIs that may be used to create, deploy and run web services and other applications. It supports various languages, including C#, VB.net, Cobol, Perl, and others. This framework supports the object-oriented programming model.
2. How does the .net framework work?
Ans. Compiled to Common Intermediate Language are .net framework-based applications built-in supported languages like C#, F#, or Visual Basic (CIL).
The compiled code is saved as an assembly file with the .dll or .exe file extension.
When the .net application runs, the Common Language Runtime (CLR) reads the assembly file and translates the CIL to machine code using the Just In Time (JIT) compiler.This machine code can now run on the architecture of the computer on which it is running.
3. What is CLR?
Ans. The Common Language Runtime (CLR) is an execution engine that runs code and provides services to help developers.
Memory management, garbage collection, type safety, exception handling, security, and thread management are just a few of the services provided by CLR. It also simplifies the design of cross-language apps and components.
Regardless of programming language, the CLR executes applications created for the .net Framework. CLR is included with every .net Framework version.
4. What do you mean by FCL?
Ans. Framework Class Library (FCL) contains predefined methods and attributes that may be used by .net programs to implement common and sophisticated functions. It will also have types for dates, strings, and numbers, among other things.
APIs for database connection, file reading and writing, drawing, and other tasks are included in this class library.
5. What do you mean by Common Type System?
Ans. The Common Type System (CTS) is a standard that specifies which data and value types can be defined and handled in memory during runtime.
It will ensure that programming data defined in several languages interact with one another to share information. For example, we define data type as an integer in VB .net and int as a data type in C#. It can be used to prevent data loss while transferring data from one Language’s type to another’s equivalent type.
6. What is EXE?
Ans. EXE is a type of executable file that runs the program for which it was created. When we create an application, we create an EXE file. As a result, when we start an EXE, the assemblies are loaded immediately. An EXE, on the other hand, cannot be shared with other programs.
7. What is DLL?
Ans. DLL stands for Dynamic Link Library, and it is a library that contains code that must be concealed. The code is contained within this library. Many DLLs can be found in a single application, and they can be shared with other programs and apps.
8. Can you explain CLS?
Ans. The Common Language Specification (CLS) enables application developers to employ inter-language-compatible components following specific guidelines. It also facilitates code reuse across all .NET-compatible languages.
9. What is JIT?
Ans. JIT is an acronym for “just in time.” During execution, it is a compiler that translates intermediate code into the native language.
10. What’s the difference between an int and a 32-bit integer?
Ans. The only distinction between int and Int32 is that they are both integers. In the C# programming language, int is an alias name for Int32, a type offered by the .net framework.
Read more: Top 10 Questions and Answers of .net For The Beginners
11. Explain the differences between value type and reference type?
Ans. The following are the main distinctions between value and reference types:
- A reference type contains a pointer containing the address of another memory location with the actual data. In contrast, a value type contains the actual data immediately within the memory region.
- The contents of the value type are stored on the stack memory, whereas the contents of the reference type are stored on the heap memory.
- Assigning a value type variable to another variable copy the value directly, whereas assigning a reference variable to another generates a second copy rather than copying the value.
- Value types include predefined data types, structures, and Enums. Examples are Arrays, Interfaces, Classes, Objects, and Indexers.
12. What is MSIL?
Ans. MSIL stands for Microsoft Intermediate Language, and it contains instructions for calling methods, managing memory, saving and initializing data, and handling exceptions, among other things.
MSIL provides platform-independent instructions that are generated from source code by a language-specific compiler. The JIT compiler converts MSIL to machine code according to the requirements.
13. What is an assembly?
Ans. An assembly is a file created by the compiler containing a collection of types and resources designed to work together to build a logical unit of functionality. Assembly is also referred to as a compiled and logical unit of code.
Executable (.exe) and dynamic link library (.dll) files are used to implement assemblies.
14. In .net, describe role-based security?
Ans. Security measures in .net are implemented using role-based security, which is based on the roles allocated to users in the organization. Users are authorized within the organization based on their jobs. Administrators, users, and guests, for example, have different levels of access in Windows.
15. What is the sequence of events in the life cycle of a page?
Ans. There are eight actions that must occur in order for a page to be rendered effectively, as listed below:
- Page_PreInit
- Page_Init
- Page_InitComplete
- Page_PreLoad
- Page_Load
- Page_LoadComplete
- Page_PreRender
- Render
16. What exactly is caching?
Ans. Caching refers to temporarily storing data in memory so that a program may easily access it rather than having to hunt for it in its original place. It improves an application’s speed and performance efficiency.
There are three different kinds of caching: –
- Caching of web pages
- Caching of data
- Caching of fragments
17. What is cross-page posting, and how does it work?
Ans. The data is kept on the same page whenever we click a submit button on a webpage. On the other hand, a cross-page posting occurs when data is kept on a different page and connected to the present one. The POSTBACK URL attribute allows for cross-page posting.
The FindControl function can be used to acquire the values that have been posted on the page to which the page has been posted.
18. What are the important components of .net?
Ans. The Class Library and the Common Language Runtime, however, are the two most significant components. Other components include
- Application domain
- Common Type System
- .net framework
- Profiling
19. What is meant by Managed code?
Ans. Managed code refers to code that is managed by the CLR. This code is executed within the CLR. As a result, the .net framework must be installed to run managed code. CLR controls memory through garbage collection and also makes use of other technologies such as CAS and CTS to ensure that code is managed efficiently.
20. What is unmanaged code?
Ans. Any code that does not rely on the CLR to run is considered unmanaged code. It signifies it was created using a language other than the .net framework. It compiles and executes code in its runtime environment. The unmanaged code will work fine even if it is not running inside the CLR if all other parameters are followed appropriately.
21. How is a Managed code executed?
Ans. When running Managed code, follow these steps:
- Depending on the Language in which the code is written, select a language compiler.
- Using its compiler to convert the above code into Intermediate Language.
- The IL is then directed to CLR, which uses JIT to convert the code to native code.
- Execution of managed code
22. What is ASP.net?
Ans. ASP.net is a component of the .net framework, and it also includes the CLR. It is a server-side open-source platform that allows programmers to create powerful web services, websites, and web applications.
23. Explain State management in ASP.net.
Ans. The term “state management” refers to the process of keeping an object in its current state. A web page/control is the object in this case.
24. What are the different types of State Management in ASP.net?
Ans. Client-side and server-side state management are the two types of state management.
- Client-side – Keeping the data on the page or in the client’s system. They are simple, reusable items.
- Server Side – Information is stored on the server. It’s easier to keep track of information on the server rather than relying on the client to keep track of things.
25. What are the different types of Assemblies?
Ans. Private and shared assemblies are the two sorts of assemblies.
- Private Assembly: As the name implies, Private Assembly is only accessible by the application. It is placed in the application’s installation directory.
- Shared Assembly: Multiple apps can use the same common assembly. It’s set up in the GAC.
26. Explain the different parts of an Assembly.
Ans. The following are the various components of an Assembly:
- Manifest – This file contains information about an assembly’s version. Assembly metadata is another name for it.
- Type Metadata – The program’s binary information.
- MSIL stands for Microsoft Intermediate Language.
- Resources – This page contains a list of related files.
27. Explain CAS (Code Access Security).
Ans. Unauthorized access to resources is prevented by the security paradigm provided by .net. That security model includes CAS. CAS can be found in the CLR. It allows users to define permissions for code at a granular level.
CLR then executes the code based on the permissions that are available. Only managed code can be subjected to CAS. Without CAS, unmanaged code runs. When CAS is applied to an assembly, it is considered partially trusted. When such assemblies try to access a resource, they must go through a series of checks.
28. What are the different components of CAS?
Ans. Code group, Permissions, and Evidence are the different components of CAS.
- Evidence – The CAS and CLR rely on the assembly’s stated evidence to make decisions and allocate permissions. The assembly examination reveals information about the various pieces of evidence. Zone, URL, Site, Hash Value, Publisher, and Application Directory are some examples of common evidence.
- Code Groups – Codes are divided into groups based on the evidence. Its own set of rules binds each group. Any assembly that meets those criteria is assigned to that group.
- Permissions – Each code group is limited to only a few activities. Permissions are what they’re called. When CLR loads an assembly, it assigns it to one of the code groups and determines what activities it can perform. Full Trust, Everything, Nothing, Execution, Skip Verification, and the Internet are some of the Permissions.
29. What is GAC?
Ans. GAC is an acronym for Global Assembly Cache. GAC is automatically installed when CLR is installed on a computer. GAC is dedicated to storing assemblies that several applications will use. To add any file to GAC, a developer tool called Gacutil.exe is utilized.
30. What is meant by Globalization?
Ans. The term “globalization” refers to the process of creating software that supports multiple languages. It is also possible to modify existing programs to support multiple cultures.
Interviewers can ask the above list of .net framework interview questions for freshers.
.NET Framework Interview Questions and Answers for Experienced Professionals:
Here in this part, we will discuss some of the .NET Framework Interview Questions for experienced professionals. After doing some deep research we found these questions as difficult ones for the professionals, so we collect all the questions and answer them in detail.
31. What is meant by localization?
Ans. Localization is the process of adapting existing worldwide software to a certain culture or Language. Extensions. The app’s content is localized using localization.
IStringLocalizer, IHtmlLocalizer, IViewLocalizer, and so on are some of the other keywords used for localization.
32. What is MVC?
Ans. Model View Controller is the abbreviation for Model View Controller. It’s an architectural framework for creating .net apps.
33. What is the difference between Function and Stored procedure?
Stored Procedure:
- A Stored Procedure is always used to complete a certain task.
- It has the ability to return zero, one, or several values.
- It can have settings for both input and output.
- A try-catch block can be used to handle exceptions.
- From a Procedure, you can invoke a function.
Functions:
- Functions must return a single value.
- Only the input parameter is allowed.
- A try-catch block cannot be used to handle exceptions.
- It is not possible to call a stored procedure from a function.
34. In .net, what is a delegate?
Ans. A delegate is a .net object that can provide a function as a parameter and define a method signature. Delegate always refers to a method that has the same signature as it. A delegate object can be used to encapsulate the reference to a method. The referenced method will be called when the delegate object is passed into a program. A delegate can be used to create a custom event in a class.
35. On ASP.net, what security controls are available?
Ans. The five security controls offered in ASP.net are as follows:
- <asp: Login> Provides a login feature that allows users to enter their credentials into sections for ID and password.
- <asp: LoginName> This field is used to display the logged-in user’s name.
- <asp: LoginView> Depending on the template used, it provides a range of views.
- <asp: LoginStatus> Checks whether or not the user is authenticated.
- <asp: PasswordRecovery> While resetting a password, send an e-mail to the user.
36. What is boxing in .net?
Ans. The process of immediately transforming a value type into a reference type is known as boxing. Boxing is assumed.
37. What is Unboxing in .net?
Ans. Unboxing is the process of converting a reference type to a value type. The act of unboxing is specific.
38. In .net, what is MIME?
Ans. MIME is an acronym for Multipurpose Internet Mail Extensions. It is an e-mail protocol extension that allows users to quickly exchange files via e-mail.
The MIME header is added at the start of a web transfer to indicate that it is a MIME transaction. The clients then utilize this header to choose an appropriate ‘player’ for the data type indicated by the header. Some of these players are pre-installed on your browser.
39. In the .net framework, what is the purpose of manifest?
Ans. The metadata of the assembly is stored in the manifest. It contains metadata that is necessary for a variety of purposes, as listed below:
- Version information for the assembly.
- Checking the assembly’s scope.
- Validation of classes by reference.
- Identification for security purposes.
Ans. In ASP.net, there are two sorts of cookies. They are as follows:
- Session Cookie: This cookie is stored on the client system for the duration of a single session and expires when the user signs out.
- Persistent Cookie: A persistent cookie is one that remains on the user’s computer after its expiration date has passed. It could be an hour, a day, a month, or it could never happen.
41. What does the web.Config file’s appSettings section do?
Ans. If we wish to set user-defined values for the entire application, we can use the appSettings block on the web.config file. ConnectionString will be used for the database connection throughout the project in the example code below:
<em>
<configuration>
<appSettings>
<add key= “ConnectionString”value=”server=local;pwd=password; database=default” />
</appSettings>
</configuration>
</em>
42. What types of memories does the .net framework support?
Ans. In .net, there are two types of memories. They are as follows:
- Stack: Stack is a stored-value type that keeps track of each running thread and its current location. It is used to allocate static memory.
- Heap: A heap is a sort of stored reference that maintains track of more specific items or data. It is used to allocate dynamic memory.
43. What are the parameters that control the behaviour of connection pooling?
Ans. Four factors control the connection pooling behaviours. They are as follows:
- Connect Timeout
- Max Pool Size
- Min Pool Size
- Pooling
44. What exactly is MDI?
Ans. Multiple Document Interface lets you open multiple windows with one parent window and as many child windows as you want. The parent window’s components, such as the toolbar and menubar, are shared.
Read more: Top Reasons Why .net Core with Angular is a Great Mix for Web App Development
45. What is SDI?
Ans. Each document is displayed in its window in the Single Document Interface. Each window has its own set of components, such as a toolbar and a menubar. As a result, it is not bound to the parent window.
46. Is it possible to use themes in ASP.net applications?
Ans. Yes. We can add themes to ASP.net applications by changing the following code on the web.config file:
<configuration>
<system.web>
<pages theme=”windows”/>
</system.web>
</configuration>
47. What is the function of a garbage collector?
Garbage collector clears the memory of unused code objects. The term “garbage collection” refers to the process of looking for objects in the managed heap’s generations that are no longer in use by the application. It also reclaims their memory by performing the necessary operations. In order to free up memory, the garbage collector must complete a collection.
48. What are the generations in the memory heap?
Ans. There are three generations in the memory heap:
- Generation 0: It stores objects that have a brief lifespan.
- Generation 1: It stores items with a medium lifespan.
- Generation 2: This is for items with a long lifespan.
49. How is Garbage collection carried out?
Ans. When it comes to garbage collection, there are a few things to keep in mind:
- The live object list has been identified.
- The compacted objects’ references are updated.
- It recollects the memory space inhabited by deceased objects. The remaining items are relegated to a previous part.
In .net, garbage collection is performed via the System.GC.Collect() function.
50. What is BCL?
Ans. The Base Class Library (BCL) is a collection of classes, interfaces, and value types. It’s where the .net framework’s applications, components, and controls all start. Encapsulates a large number of common functions and makes them accessible to programmers.
Threading, security, diagnostics, resources, and other features are included. It also provides a means of communication between the user and the runtime.
51. What’s the distinction between a namespace and an assembly?
Ans. The difference between an assembly and a namespace is that an assembly is a physical grouping of logical units, whereas a namespace is a logical grouping of classes. A namespace can also be shared across many assemblies.
52. What is LINQ?
Ans. It stands for Language integrated query, and it was first used in Visual Studio 2008. LINQ is a set of features that add query support to the .net framework language syntax, allowing data manipulation regardless of the data source. The LINQ query language connects the worlds of objects and data.
Learn more: What Is web design?
53. From which base class all web Forms are inherited?
Ans. Page Class
54. Why do we use Response.Output.Write()?
Ans. It is used to get the formatted output.
55. What is Response.Redirect?
Ans. Redirect sends the user’s browser to a different page or website. The user’s browser’s history is also changed to reflect the new address. It also makes a return trip to the client, redirecting the client’s browser to the updated page.
56. What is Server.Transfer?
Ans. Server.Transfer moves data from one page to another without returning to the client’s browser, in the case of the server.Transfer, the history is not updated.
57. What are the various .net components?
Ans. The components of .net are listed below.
- Common Language runtime
- Common Type System
- .net Framework
- Profiling
- Application Domain
- .net Class Library
58. What is the best way to prevent a class from being inherited?
Ans. The sealed keyword in C# can be used to prevent a class from being inherited.
59. In C# What are the types of constructors?
Ans. The types of constructors in C# are as follows:
- Default Constructor
- Copy Constructor
- Static Constructor
- Private Constructor
- Parameterized Constructor
60. Can you explain the concept of role-based security?
Ans. Security measures are implemented using role-based security, which is dependent on the role allocated to users in the organization. We can then approve users based on their organizational roles. Users, administrators, and guests, for example, have different levels of access in Windows.
61. Can you explain the process of passport authentication?
Ans. If the passport authentication cookie is not accessible, the application redirects to the passport sign on-page. The Passport service then verifies the user’s credentials on the sign-in page, stores them on the client machine if they are valid, and redirects the user to the requested page.
62. What is an HTTP Handler?
Ans. A specific component called the HTTP handler handles every request into an ASP.net application. It’s the most critical part of an ASP.net application’s request handling. It serves distinct files with separate handlers. The web page handler produces the page and control objects, executes your code, and finally renders the final HTML.
The default HTTP handlers for ASP.net are as follows: –
- Handles web pages with Page Handler(.aspx).
- User Control Handler (.ascx): This file is used to handle web user control pages.
- Handles web service pages with Web Service Handler(.asmx).
- The Trace Handler (trace. axd) is responsible for the trace functionality.
- Session Cookie: This cookie is stored on the client system for the duration of a single session until the user signs out.
- Persistent Cookie: A cookie that remains on the user’s computer after its expiration date has passed. It could happen in an hour, a month, or never.
64. What services does the .net Framework offer?
Ans. The .net framework provides the compile-time and runtime foundations for any language that follows the Common Language Specification (CLS).
65. Mention which languages are supported by .net?
Ans. The following languages are supported by .net:
- COBOL
- NET
- C#
- PERL
66. Mention the size of the int data type in .net?
Ans. In .net, the datatype int is 32 bits.
67. What is the namespace that .net provides for data management?
Ans. For data management, .net provides the following namespaces:
- Data
- SQL
- Client
- XML
68. What is GAC in .net?
Global Assembly Cache (GAC) is an acronym for Global Assembly Cache. It’s a memory space set aside for storing the assemblies of all .net programs operating on a given machine.
See more: What Are The Principles Of Responsive web design?
69. Explain what STA is in .net?
STA, or single-threaded apartment, is a message-based paradigm for dealing with several objects that are executing at the same time. Each thread is housed in its apartment.
70. In .net, what is a data access modifier?
In .net, a data access modifier makes a class, a function, or a variable accessible.
71. What are the different sorts of access modifiers in .net?
Ans. There are five different types of access modifiers in .net:
- Protected
- Public
- Internal
- Private
- Protected Internal
72. How do you implement the singleton pattern in .net?
Ans. The following steps must be followed to implement the singleton pattern in .net.
- Make a class that has only static members.
- Create a function Object() { [native code] } that is only available to you.
- A static method can be used to access the singleton object.
73. Can you explain how .net handles exceptions?
Ans. When an exception occurs in .net, the framework produces an object of type ‘Exception’ and “throws” it. The details about the ‘error’ will be stored in this Exception object.
You will receive the exception object in the ‘catch’ block if your code is included within the try-catch block when an exception occurs.
74. Explain how to utilize and construct an array in .net?
Ans. You can create an array in .net in the following ways:
- Declaring an array’s reference
- Make a ten-element Int32 array.
- Putting together a two-dimensional array
- Putting together a three-dimensional array
75. Define the term “user-defined data type.”
Ans. A named data type generated by the user is known as a user-defined data type. It can be a structured type with a series of named attributes, each with its type, or it can be a separate type with a shared representation with a built-in data type. As a result, it might be classified as:
- Distinct type
- Type of reference
- Structured type
Interviewers can ask the above list of .net framework interview questions for experienced professionals.
Dot Net Framework Interview Questions for Senior Developers:
Here are last few questions for the senior developers, which will surely boost your interview preparation for dot net framework. So, go through all the questions and know the answers. These top level questions will also give you a huge confidence in your preparation, do don’t waste your time, just complete all the questions one by one.
Also Know: What is web design Language
76. What are some of the namespaces in the .net base class library?
Ans. The .net basic class library encapsulates a large number of common functions and makes them available to programmers.
There are only a few namespaces in the .net base class library.
- Collections
- Management
- Configuration
- Activities
- Enterprise Services
- Runtime
77. What are the different forms of multidimensional arrays in .net?
Ans. The following are examples of multidimensional arrays used in .net:
- Jagged Arrays: These are multidimensional arrays in which each sub-array is made up of separate arrays of varying lengths. You must use a separate set of square brackets for Jagged arrays.
- Rectangular Arrays: These multidimensional arrays have all of their sub-arrays with the same length dimension. A single set of square brackets is required for rectangular arrays.
78. Can you show me how to create properties in .net?
Ans. Property procedures or fields can be used to add properties in .net.
79. What is the definition of an event bubbling in .net?
Ans. In .net, event bubbling is described as the transfer of control from the child to the parent. Data list, repeater, and other controls can have child controls such as list boxes.
80. What are the debugging windows that are available?
Ans. Output, Breakpoints, Immediate are the windows available while debugging.
81. Mention whether MPEG4 and H.264 videos, AAC (advanced audio coding) audio, or flash video are supported by Silverlight?
Ans. MPEG4 and H.264 videos are not supported by Silverlight. However, many of these formats may be translated into Silverlight-compatible formats, such as automated server functions, and then put into a Silverlight-based application.
82. What is the best way to host Silverlight applications?
Ans. Silverlight programs may run on a variety of web servers, including Apache and IIS (Internet Information Server). Allowing the MIME-type is required to host Silverlight apps from your web server.
83. What is the difference between WPF and Silverlight (Windows)?
- Silver light is a subset of WPF in terms of features.
- Silverlight is a browser-based internet application framework that competes with Adobe’s Flash.
- While WPF is a Microsoft technology for creating enhanced graphics programs for the desktop platform, Silverlight may be utilized to create web-based apps.
- Web browser apps can be hosted on web browsers that have extensive graphical capabilities.
84. Explain how you can use ASP.net pages to pass parameters to silver light controls?
Ans. Setting InitParameters allows you to provide parameters from your aspx and HTML pages to Silverlight controls. InitParameters is a property of the Xaml page user control. You can set a value in the form of key-value pairs from your ASPX pages. You can send any collection of string values to this property because it accepts key-value pairs.
85. Explain how consumers may use Silverlight and ASP.net AJAX?
Ans. Existing web applications, including ASP.net AJAX apps, are synchronized with Silverlight. Silverlight and ASP.net AJAX appear to be complementing technologies. In brief, an AJAX application can communicate with Silverlight and ASP.net AJAX. Additionally, ASP.net AJAX can be utilized to govern Silverlight-based data visualization and rich experience delivery.
86. What is RIA?
Ans. Rich internet applications, or RIAs, are web apps with a lot of features. Built-in AJAX support, layouts, animations, audio, and video components are just a few of the many capabilities. RIA is exemplified by Silverlight.
87. Describe the various layout controls accessible in Silverlight?
Ans. There are three controllers to choose from, like as:
● StackPanel: It will either vertically or horizontally position the child items.
● Grid: The child elements will be arranged in rows or columns.
● Canvas: The child elements will be placed according to the X, Y space on the canvas.
88. What is the Net syntax?
Ans. The most common ASP.net syntax is an HTML file. An ASP file, on the other hand, can contain a server script with delimiters. “Hello, World!” as an example.
< ! DOCTYPE html>
< html >
< body >
< %
Response. write (“Hello World!”)
%>
</body>
</html>
89. How can you check the status of your internet connection in Silverlight?
Ans. You can test your internet connection by entering the following code.
If (NetworkInterface.GetIsNetworkAvailable())
{
Messagebox.Show(“Network available”);
}
else
{
Message.box.Show(“Network not available”);
}
90. What are the tools needed to create Silverlight apps?
Ans. Silverlight applications are created with the following tools.
● Microsoft Expression Studio: It is a web design tool that allows you to develop rich visual elements for Silverlight apps with better visual content and visuals.
● Visual Studio (Microsoft): This training is designed for programmers whose applications are logic-based or involve programming. It allows programmers to create Silverlight apps using any .net Language.
91. Describe the .xap file?
Ans. The .xap file is a compressed Silver Application file. The .xap files contain AppManifest.XAML, the Silverlight project’s compiler output assembly (.dll), and any other resources used by the Silverlight application.
When you start a project in Visual Studio, it generates two files: App.XAML and Page.XAML. You must apply the extension to a Silverlight application in order to run it on a web server. In the server-supported file types configuration, use XAP with the MIME type application/X-Silverlight.
application/x-Silverlight is the mime type for .XAP files.
Read this: why Mobile App is Important For Your Business?
92. What does the PE (Portable Executable) file format mean?
Ans. The Portable Executable (PE) format is a file format for executables, object code, and DLLs supported by 64-bit and 32-bit Windows editions.
93. What is the .net Assembly Manifest?
Ans. The .net Assembly Manifest is a file that stores information about .net assemblies. It describes how the components of the assembly interact with one another. In other words, it describes the relationships and dependencies among the assembly’s components and scope and versioning information.
94. What are .net Namespaces?
Ans. In .net, namespaces are just a mechanism to organize the .net Framework Class Library into logical groups based on their usability, functionality, and category affiliation.
95. What are the functions of .net assembly?
Ans. In a .net Framework application that is run as a .exe or .dll, assembly is the main unit of deployment.
The functions of an assembly are as follows: –
- It is made up of IL code that is run by the common language runtime.
- It serves as a security barrier.
- It ensures safety by establishing name scope for types at runtime.
- It stores version information and allows different versions of the same assembly to be run simultaneously.
- Permission is requested and given at assembly.
96. Mention the several types of code security that .net has to offer?
Ans. The types of code security that are accessible in .net are as follows:
- Role-based security: This allows the user to be authorized.
- Code access security: System resources are protected against unauthorized calls using code access security.
97. What is .net Core?
Ans: .NET Core is a newer version of Microsoft’s. .NET framework is a general-purpose, open-source programming platform that is free to use. Dot NET Core is a cross-platform framework that allows a program to operate on a variety of operating systems, including Windows, Linux, and macOS. This framework can be used to create mobile, web, IoT, cloud, microservices, machine learning, games, and other applications.
Learn more: Top 100+ .net Core Interview Questions
98. What is C#?
Ans. Microsoft’s C# computer language is a general-purpose and object-oriented programming language that runs on the .net platform. It’s made for CLI (Common Language Infrastructure), a set of executable code and a runtime environment that enables the use of a variety of high-level languages on a variety of systems and architectures. It’s mostly used to create desktop apps, database apps, and games, among other things.
99. What is F#?
Ans. F# is an open-source, functional-first, object-oriented, and cross-platform programming language for building robust, concise, and performant code that runs on the .net platform. Because the programming in F# includes changing data with functions, we can call it data-oriented.
It is mostly utilized in the creation of scientific models, artificial intelligence research, mathematical problem solving, financial modeling, graphical user interface games, CPU design, and compiler programming, among other things.
100. What exactly is CoreFx?
Ans. CoreFX is a collection of .net Core class library implementations. Collection types, terminal, file systems, XML, JSON, async, and more features are included. It is platform-agnostic code, meaning it can be used on any platform. Platform-agnostic code is implemented as a single portable assembly that works across all platforms.
101. What is the purpose of the IGCToCLR interface?
Ans. The IGCToCLR interface is used for runtime communication and will be given as an input to the InitializeGarbageCollector() function. It has a number of built-in methods like RestartEE(), SuspendEE(), and so on.
102. What is the use of generating SQL scripts in .net core?
Ans. When you’re trying to debug or deploy your migrations to a production database, it’s helpful to build a SQL script. The SQL script can be used to check the accuracy of data in the future, and it can be tweaked to match the production database requirements.
103. What is MEF?
Ans. Managed Extensibility Framework is a library for creating lightweight and extensible applications. It allows application developers to use extensions without having to configure them first. It also enables extension authors to encapsulate their code more easily, avoiding fragile hard dependencies. MEF allows you to reuse extensions both within and between applications. It is a necessary component of the .net Framework 4. Large applications’ maintainability, adaptability, and testability are all improved.
Interviewers can ask the above list of .net framework interview questions for senior developers.
Conclusion:
I hope this list of more than 100 questions on the .net framework has cleared all your doubts. These dot net framework questions will help you in clearing the interview. Read them carefully and prepare with all the minute details that an interviewer can ask you during an interview.
These .net framework interview questions are suitable for all levels of candidates; even if you are fresher, you can get great help. We wish you All the Best in your interview!
If you find any mistakes or changes on the .net framework interview questions and answers then please give your valuable inputs in the comment section.
Leave a comment