Dot Net is a famous framework and is generally used for developing the applications on windows. Here we have provided you with 50 .Net interview questions and answers. You can recall whatever you have learned in .NET through these questions. These questions will also help you to boost your confidence level.
Top 50 .NET Interview Questions and Answers
Get Dot Net Training in Chennai from Experts. Call us @ +91 86087 00340 for a free demo session!
1. What is .net?
It is a microsoft framework to build various applications in windows.
It has a list of inbuilt functionalities in the form of class ,library and Apis which are used to build ,deploy and run web services and different applications.
It supports different languages such as C#,Vb.net,Python,cobol,perl etc…
2. What is CTS?
Common Type System.It has set of rules which state how a datatype should be declared ,defined and used in the program.
3. What is state management in Asp.net?
It means maintaining the state of the objects. The object here refers to a web control/page. Two Types-client and server side
4. What is caching?
It is the process of storing the data in the temporary memory location to speed up the process. There are 3 types-page,Data and Frame Caching
5. Explain CAS?
Code Access Security-that prevents unauthorized access to information. Its present in CLR-common language runtime.
6. What is globalization?
An exising project can be converted into support multiple languages to work with different cultures.
Localization means changing the already globalized app to cater to a specific language
7. What are the different validators in Asp .net?
- Required field
- Regular expression
8. What is cross page posting?
When click on the submit button, the data is sent to the different page is called cross page posting.
9. What is Boxing and Unboxing?
Boxing-assigning a value to the object type, Where in the reverse process of sending the reference to datatype -Unboxing.
10. Differentiate Strong typing and weak typing?
In strong typing-the datatypes of the variable are checked at compile time. Weak typing-the datatypes are checked at runtime.
11. What are the different types of Cookies?
Session cookies:-resides on the client machine for the session user does not log out. Persistant cookies-data is saved in user machine for around 10 days.
12. What is executescalar and executeNonquery?
Execute scalar returns a value. Ececute non query will not return a value but it will affect number of rows.
13. What is the advantage of using collections over arrays?
The advantage of using collection over arrays are we can dynamically increase the size of the collection while in array its not possible.
Collections can store the different datatypes while in arrays its not.
14. What are the different ways a method can be overloaded?
3 ways -by changing the number of parameters,changing the order of parameters,using different datatypes of the parameters.
15. What do you meant by a namespace?
Namespace is consodered as a container that contains functionally related group of classes and other types.
16. Can you specify the access modifiers inside the for methods inside the interface?
All the methods inside the interface are always public by default, We cannot specify any other access modifier to them.
17. Define enumeration.
Enumeration is defined as value type that consists of set of named values.They otherwise called as constants.its passed with keyword enum keyword.
18. How oops differ from procedures?
Procedures-depends on modular approach. Access modifiers are not used in procedural programming.
19. What is MVC?
Model View Controller, Model-to develop base class. View-is to produce the controller views. Controller-is to connect model and views.
20. What is asp.net?
Active Server Pages-it is used to build web applications, web servers, web services
21.Which server is used in asp net?
The server is used in asp net Internet Information Server (IIS) is one of the most popular Microsoft Web servers used to host and provide Internet-based services for ASP.NET and ASP Web applications. A web server is responsible for providing a response to requests from users. What is the use of the server? Servers can provide many features, often called “services,” such as sharing data or resources between multiple clients, or performing calculations for a client. A single server can serve multiple clients and a single client can use multiple servers.
22.How does the server work?
The hosting server functions as a web server that contains all the files needed to view a web and administer an interactive interface with a web browser. Data servers contain files that people are discouraged sharing over a network. Essentially, all of these child storage servers to file the ones that must access more than one external computer.
23.How Many Types of Servers Exist?
These computers, called clients, can connect to a server through a local area network (LAN) or a wide area network (WAN), such as the Internet. There are several different types of servers, including Web servers, mail servers, and file servers. A web server serves web pages to the computers that connect to it.
24.What is the ASP NET class?
Classes … Similarly, classes define objects by telling another code what the object contains and what it can do. Classes are essential in object-oriented programming (just like in ASP.NET). You define a class to group some common codes and properties, as if you were combining parts of the clock to build a clock.
25.What is the main purpose of a server? What is the purpose of a computer server?
A server is a computer that is used on a network and that provides a service to a client. Servers generally have more processing, memory, and storage capacity than client computers.
26.What are the main types of network?
We have prepared this handy reference guide to explain the types of networks used today and what they are used for. Personal Area Network (PAN) … Local Area Network (LAN) … Wireless Local Area Network (WLAN) … Campus Area Network (CAN) … Metropolitan Area Network (MAN) … Wide area network (WAN) … Storage area network (SAN)
27.What is a server hardware?
A server is a type of computer that provides processing and memory resources for different workloads. The term server may refer to the computer itself or to a program that offers a service, such as an e-mail management system. Most references related to hardware refer to the physical machine.
28.What is the difference between a server and a computer?
Main differences between a desktop and a server. Many people mistakenly believe that a server is no different from an ordinary computer. … Although almost every computer that meets the minimum hardware requirements can run a server operating system that by itself does not make a desktop computer a true server.
29.Is the browser a hardware or software?
Computer hardware is any physical device used on or with your machine, while the software is a collection of code installed on your computer’s hard drive. For example, the computer monitor you are using to read this text and the mouse you are using to navigate this web page is your computer’s hardware.
30.What is the server machine?
A server is a computer program that provides a service to other software (and its user). In a data center, the physical computer on which a server program is running is also known as a server. This machine can be a dedicated server or it can also be used for other purposes.
31.Is it a database software or hardware?
A database is an organized collection of data, usually stored and accessible electronically from a computer system. … The database management system (DBMS) is software that interacts with end users, applications and the database itself to capture and analyze data.
32.Why is the server used?
Servers are usually dedicated (meaning that it performs no other task than server tasks). Because a server is designed to manage, store, send, and process data 24 hours a day, it needs to be more reliable than a desktop computer and offers a variety of features and hardware that are not normally used on a desktop computer. average.
33.What is server and why it is used?
“The server and the data server” means an information server providing a software service (and its user). In a data center, computera physical in the running a server program is also known as server. It is a machine that can be a site dedicated to personal use also for other purposes.
34.Which child benefits from a server?
Won from a server on a server computer: Containing servers more powerful than a desktop computer. Multiple processor cores, multiple cores and multiple hops. Therefore, virtual machines can reside on a single server and compromise performance.
35.How much does a server cost for a small business?
This will determine or initial purchase price, which can range from $ 3,000 to $ 5,000 for a small business. So you always have the option to spend more or less depending on how much you have from the server. This is also the first type of server on which the customer must reverse your business.
36.What is a Small Business Server?
A small server is a low-end server designed to be affordable and manageable in a small business environment. Small business servers suitable for an employee documentation may be preinstalled with or software required to run server.
37.Why do we need a server?
The server may also refer to a physical computer that is available for the purpose of all service programs to satisfy the diverse needs of programs that are subject to failure of the system as a whole other systems.
38.The computer is a data server?
The data server is also a large server used to describe a hardware or software serving services for the use of networks, is a local or a broad. A PC hosting a server of any type is usually called the computer server or flat server. … These machines are much worse and more complete than a PC.
39.Why use a server in a server location?
Advantages of a Server on a Server Computer: Servers contain more powerful processers than a desktop computer. … Servers support RAM technologies such as DDR3 SDRAM which is scalable, providing better performance and is more secure. … Because servers are cached larger on SU CPU, users get the requested data more often faster than desktop computers.
40.Can you use the server memory in desktop?
The RAM server can be used (ECC) or in the ECC. … Many servers required memory registration, but some of the newer servers do not, but even the newer ones can handle more RAM and the use the registered memory. Both the ECC and registered child memory are more expensive than desktop memory.
41.What is a server CPU?
The difference between a server and a desktop CPU. There are seaweed processing server level in the market. More information on Intel Xeon, AMD Opteron, Intel and Itanium Sparc. Core2Quad and Phenom son, for example, desktop CPU. … is the same as it is for server processors.
42.What is a simple server definition?
A server is a computer program that provides a software program (and its user). In a data center, computera physical in the running a server program is also known as server. It is a machine that can be a site dedicated to using also for fines.
43.Why is a server important?
It is most basic of a server to be shared in files. Dedicated servers are often called “File Servers”. They can store commercial commercial form of centralized files of calculator, sheets of documents, images, videos, files of projects, registries of invoices.
44.What is difference between client and server?
The difference between the clients and the servers is simpler, a server is a point of connection for the most varied clients, that can be requested. A client is software that usually connects the server to perform the actions. The client provides a user interface that allows users to perform the actions.
You would be aware that .NET is a wide topic. This blog focuses on some of the concepts of .Net. It will give you adequate information and a reasonable knowledge of the frequently asked questions in the interviews. Happy job search!