Microsoft Technical round


Company: Microsoft Technology: Dotnet Experience: 2+ years

Company: Microsoft
Technology: Dotnet
Experience: 2+ years

I attended the microsoft interview recently. Below are the Technical round topics and questions:

1. Interface, abstract classes. most of the questions from this topic.
2. Reflection basics.
3. statement management concepts.
4. Difference between virual and abstract methods?
5. Can we have virtual constructors?
6. difference between tcp and http protocol
7.What is ViewState?
8.how to prevent instance of a class to be created?
9. what is the use of constructor?
10.what is abstract class?
11. read-only and const keyword differences.


Comments

Author: Prasad kulkarni31 Mar 2011 Member Level: Gold   Points : 0

Thanks for posting, it will really helps us all

Author: Pawan Awasthi10 Feb 2013 Member Level: Gold   Points : 10

Hai Priya Jain,
Thanks for posting the questions asked by the Microsoft People. It will be helpful to other members before going for the interviews. I am trying to post the answers as below:

1. Interface, abstract classes. most of the questions from this topic.
A. Collection of abstract members and concrete members are called as Abstract Class.
Collection of the abstract members is called as the Interface.

2. Reflection basics.
A. Reflection is the way to work with the class and find the class types on the fly without adding the dll references. We can get the dll details on the fly using the reflection.

3. Statement management concepts.
A. Web is stateless so to retain the values of the controls during the post back implementation, we need to maintain the state of the controls. There are 2 ways to maintain the state of the controls-
1. Client Side State management Techniques- View state, Query string, Hidden Controls, Cookies etc
2. Server side State management techniques- Session, Application, Cache and Profiles etc

4. Difference between virtual and abstract methods?
A. Abstract members must be implemented in the child class while the virtual members may or may not be.

5. Can we have virtual constructors?
A. This concept is in C++ and i think there is no Virtual Constructor in C#.

6. difference between tcp and HTTP protocol
A. TCP protocol is used for intranet while HTTP protocol is internet.

7.What is ViewState?
A. Persisting of form data automatically during the post back implementation is called as View state.

8.how to prevent instance of a class to be created?
A. By using the Private Constructor, we can restrict the class to be instantiates.

9. what is the use of constructor?
A. to instantiate the class members. it basically create the class members in the memory.

10.what is abstract class?
A. Collection of Abstract and concrete members is called as abstract class.

11. read-only and const keyword differences.
A. Constant is initialize at the compile time while the read-only at run time. The value of Constant can never be changed while running the application, but the read-only value can be changed at the run-time.

Author: SonyShiva10 Feb 2013 Member Level: Gold   Points : 0

Hi,


Thanks for sharing, it wil be helpful to others
Nice good job @pawan as you come with answers too.



  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name:
    Email: