This section includes 7 InterviewSolutions, each offering curated multiple-choice questions to sharpen your Current Affairs knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
Explain the different parts of an Assembly. |
|
Answer» The different parts of an assembly are: The different parts of an assembly are:
|
|
| 2. |
What are MDI and SDI? |
|
Answer» MDI (MULTIPLE Document Interface): An MDI allows you to open multiple WINDOWS, it will have one PARENT window and as many child windows. The components are shared from the parent window like toolbar, menubar, etc. SDI (Single Document Interface): SDI opens each document in a separate window. Each window has its own components like a toolbar, menubar, etc. THEREFORE it is not constrained to the parent window. |
|
| 3. |
What are the parameters that control the connection pooling behaviors? |
|
Answer» There are 4 parameters that control the CONNECTION pooling BEHAVIOURS. They are:
|
|
| 4. |
Explain localization and globalization. |
|
Answer» LOCALIZATION is the PROCESS of customizing our APPLICATION to behave as PER the current culture and locale. Globalization is the process of designing the application so that it can be used by users from across the GLOBE by supporting multiple languages. |
|
| 5. |
What are the types of memories supported in the .NET framework? |
|
Answer» Two types of memories are present in .NET. They are: Stack: Stack is a stored-value type that keeps TRACK of each EXECUTING THREAD and its location. It is used for static memory allocation. Heap: Heap is a stored reference type that keeps track of the more precise objects or DATA. It is used for DYNAMIC memory allocation. |
|
| 6. |
What is the appSettings section in the web.config file? |
|
Answer» We can USE the appSettings block in the web.config file, if we want to set the user-defined values for the whole application. Example code given below will make use of ConnectionString for the DATABASE CONNECTION throughout the project: <EM> <configuration> <appSettings> <add key= "ConnectionString" VALUE="server=local; pwd=password; database=default" /> </appSettings> </configuration></em> |
|
| 7. |
What is the meaning of CAS in .NET? |
|
Answer» Code Access Security(CAS) is necessary to prevent unauthorized access to programs and RESOURCES in the runtime. It is designed to solve the issues faced when obtaining code from external sources, which may contain BUGS and vulnerabilities that make the user’s system vulnerable. CAS gives limited access to code to PERFORM only certain operations instead of providing all at a given point in time. CAS constructs a part of the NATIVE .NET security architecture. |
|
| 8. |
Explain different types of cookies available in ASP.NET? |
|
Answer» Two types of COOKIES are available in ASP.NET. They are: |
|
| 9. |
What is the use of manifest in the .NET framework? |
|
Answer» MANIFEST stores the metadata of the ASSEMBLY. It contains metadata which is required for many things as given below:
|
|
| 10. |
What is MIME in .NET? |
|
Answer» MIME stands for Multipurpose Internet Mail Extensions. It is the extension of the e-mail protocol which lets users use the protocol to exchange files over emails easily. Servers insert the MIME header at the beginning of the WEB transmission to denote that it is a MIME transaction. Then the clients use this header to select an APPROPRIATE ‘PLAYER’ for the type of data that the header INDICATES. Some of these players are built into the web browser. |
|
| 11. |
What is boxing and unboxing in .NET? |
|
Answer» Boxing is the process of converting a value type into a reference type directly. Boxing is implicit. UNBOXING is the process where reference type is converted BACK into a value type. Unboxing is explicit. An example is GIVEN below to demonstrate boxing and unboxing operations: int a = 10; // a value typeobject o = a; // boxingint b = (int)o; // unboxing |
|
| 12. |
What are security controls available on ASP.NET? |
|
Answer» Following are the five security controls available on ASP.NET:
|
|
| 13. |
What is a delegate in .NET? |
|
Answer» A delegate is a .NET object which defines a METHOD signature and it can pass a function as a parameter. Delegate ALWAYS points to a method that matches its specific signature. Users can encapsulate the reference of a method in a delegate object. When we pass the delegate object in a program, it will call the referenced method. To CREATE a custom event in a CLASS, we can make use of delegate. |
|
| 14. |
What is cross-page posting? |
|
Answer» Whenever we click on a submit BUTTON on a webpage, the data is stored on the same page. But if the data is stored on a different page and linked to the current one, then it is known as a cross-page posting. Cross-page posting is ACHIEVED by POSTBACKURL property. To get the values that are posted on this page to which the page has been posted, the FindControl method can be USED. |
|
| 15. |
Explain MVC. |
|
Answer» MVC stands for Model View Controller. It is an architecture to build .NET APPLICATIONS. Following are three main logical components of MVC: the model, the view, and the controller. Components of MVCModel: They hold DATA and its related logic. It handles the object storage and RETRIEVAL from the databases for an application. For example: View: View handles the UI part of an application. They get the information from the models for their display. For example, any employee view will include many components like text boxes, dropdowns, etc. Controller: They HANDLE the user interactions, FIGURE out the responses for the user input and also render the final output. For instance, the Employee controller will handle all the interactions and inputs from the Employee View and update the database using the Employee Model. |
|
| 16. |
Can we apply themes to ASP.NET applications? |
|
Answer» YES. By modifying the following code in the web.config file, we can apply themes to ASP.NET APPLICATIONS: <CONFIGURATION> <system.web> <pages theme="WINDOWS"/> </system.web></configuration> |
|
| 17. |
What is a garbage collector? |
|
Answer» GARBAGE collector frees the unused code objects in the memory. The memory heap is partitioned into 3 generations:
Collection of garbage refers to checking for objects in the generations of the managed heap that are no LONGER being USED by the application. It ALSO performs the necessary operations to RECLAIM their memory. The garbage collector must perform a collection in order to free some memory space. During the garbage collection process:
System.GC.Collect() method is used to perform garbage collection in .NET. |
|
| 18. |
What is the order of the events in a page life cycle? |
|
Answer» There are eight events as GIVEN below that take place in an order to SUCCESSFULLY RENDER a PAGE:
|
|
| 19. |
Explain the different types of assembly. |
|
Answer» Assemblies are classified into 2 types. They are: Private ASSEMBLY:
Shared or Public Assembly: |
|
| 20. |
Explain role-based security in .NET |
|
Answer» Role-BASED SECURITY is used to implement security measures in .NET, based on the ROLES assigned to the users in the organization. In the organization, authorization of users is done based on their roles. For example, WINDOWS have role-based access like administrators, users, and guests. |
|
| 21. |
Is ASP.NET different from ASP? If yes, explain how? |
|
Answer» Yes, ASP.NET and ASP(ACTIVE Server Pages) both are different. Let’s check how they are different from each other.
|
|
| 22. |
What is an assembly? |
|
Answer» An assembly is a file that is automatically generated by the compiler which consists of a collection of types and RESOURCES that are BUILT to work together and form a LOGICAL unit of functionality. We can also say, assembly is a compiled code and logical unit of code. Assemblies are implemented in the form of executable (.exe) or dynamic link library (.DLL) FILES. |
|
| 23. |
Explain Microsoft Intermediate Language |
|
Answer» MSIL is the Microsoft Intermediate LANGUAGE, which provides instructions for calling methods, MEMORY handling, storing and INITIALIZING values, exception handling, and so on. The instructions provided by MSIL are platform-independent and are GENERATED by the language-specific compiler from the source code. JIT compiler compiles the MSIL into MACHINE code based on the requirement. |
|
| 24. |
What is the difference between managed and unmanaged code? |
||||||||
|
Answer» The MAIN difference between managed and UNMANAGED code is LISTED below:
|
|||||||||
| 25. |
Explain the differences between value type and reference type. |
|
Answer» The MAIN differences between value TYPE and reference type are given below:
|
|
| 26. |
What is the difference between int and Int32? |
|
Answer» There is no difference between int and INT32. Int32 is a TYPE PROVIDED by the .NET framework class whereas int is an alias name for Int32 in the C# PROGRAMMING language. |
|
| 27. |
What is JIT? |
|
Answer» JIT STANDS for Just In Time. It is a COMPILER that CONVERTS the INTERMEDIATE code into the native language during the execution. |
|
| 28. |
Explain CLS |
|
Answer» Common Language Specification (CLS) helps the application developers to use the components that are inter-language compatible with CERTAIN RULES that COME with CLS. It also helps in reusing the CODE AMONG all of the .NET-compatible languages. |
|
| 29. |
What is CTS? |
|
Answer» CTS stands for Common Type SYSTEM. It follows a set of structured RULES according to which a data type should be declared and used in the program CODE. It is used to DESCRIBE all the data types that are going to be used in the application. We can create our own CLASSES and functions by following the rules in the CTS. It helps in calling the data type declared in one programming language by other programming languages. |
|
| 30. |
What is an EXE and a DLL? |
|
Answer» EXE and DLLs are assembly EXECUTABLE modules. EXE is an executable file that RUNS the application for which it is designed. An EXE is produced when we build an application. Therefore the assemblies are loaded DIRECTLY when we run an EXE. However, an EXE cannot be SHARED with the other applications. Dynamic Link Library (DLL) is a library that consists of code that needs to be hidden. The code is encapsulated inside this library. An application can CONSIST of many DLLs which can be shared with the other programs and applications. |
|
| 31. |
Explain about major components of the .NET framework. |
|
Answer» The major components .NET framework are given below:
|
|
| 32. |
How does the .NET framework work? |
Answer»
|
|