Frequently Asking Interview Question and Answers

.Net is a famous framework and is generally used for developing the applications on windows. Here we have provided you with 52 .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.

Get Dot Net Training from Experts. Call us @ +91 86087 00340 for a free demo session!

.Net Interview Question and Answers

  1. What is .net?
  2. What is CTS?
  3. What is state management in Asp.net?
  4. What is caching?
  5. Explain CAS?
  6. What is globalization?
  7. What are the different validators in Asp .net?
  8. What is cross page posting?
  9. What is Boxing and Unboxing?
  10. Differentiate Strong typing and weak typing?
  11. What are the different types of Cookies?
  12. What is executescalar and executeNonquery?
  13. What is the advantage of using collections over arrays?
  14. What are the different ways a method can be overloaded?
  15. What do you meant by a namespace?
  16. Can you specify the access modifiers inside the for methods inside the interface?
  17. Define enumeration.
  18. How oops differ from procedures?
  19. What is MVC?

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
  • Range
  • Compare
  • Custom
  • Regular expression
  • Summary

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

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!