Dot Net Interview Questions

What is Multithreading?

Post Views: 38,060 Multi-threading is a process that contains multiple threads each of which performs different activities within a single process. .NET supports multithreading in two ways: i. Starting threads with ThreadStart delegates. ii. Using the ThreadPool class with asynchronous methods.

Read More

Differentiate between Task and Thread in .NET.

Post Views: 38,023 Thread represents an actual OS-level thread, with its own stack and kernel resources, and allows the highest degree of control. You can choose to Abort() or Suspend() or Resume() a thread, and set thread-level properties, like the stack size, apartment state, or culture. While a Task class from the Task Parallel Library is executed by a TaskScheduler to return a result and allows you to find out when it finishes.

Read More

What is a PE file?

Post Views: 37,993 PE stands for Portable Executable. It is a derivative of the Microsoft Common Object File Format (COFF). Windows executable, .EXE or DLL files follow the PE file format. It consists of four parts: 1. PE/COFF headers- Contains information regarding .EXE or DLL file. 2. CLR header- Contains information about CLR & memory management. 3. CLR data- Contains metadata of DDLs and MSIL code generated by compilers. 4. Native image section- Contains sections like .data, .rdata, .rsrc, .text…

Read More

What is Serialization?

Post Views: 38,001 Serialization is the process of converting the state of an object into a form (a stream of bytes) to be persisted or transported. Deserialization converts a stream into an object and is the opposite of serialization. These processes allow data to be stored and transferred.

Read More

What are client-side and server-side validations in Web pages?

Post Views: 37,984 Client-side validations take place at the client end with the help of JavaScript and VBScript offering a better user experience. The inputs for client-side validation are validated in the user’s browser. While, server-side validations take place at the server end using ASP.Net and PHP, and the feedback is sent through a dynamically generated new webpage.

Read More

What is Object Pooling?

Post Views: 37,988 Object Pooling is a concept for optimal use of limited resources through software constructs. The ready-to-use objects, connections, and threads are stored in a pool (group) of objects in memory for later use. For creating a new object, it is pulled from the pool and allocated for the request. Pooling helps in improving performance and facilitates scalability.

Read More