Saturday, April 9, 2011

Interview Qns(.Net, SQL) Part - 2

Why does an exception happens in above scenario ? How can we avoid that ?
What is identity Impersonization in ASP.NET ?
How do we specify a start page for our ASP.NET applicartion ?
Suppose there are multiple versions of .NET installed on server, How do we configure our application to use a specific version ?
What is the use of ASP.NET_RegIIS tool ?
What is application pool. What is its use ?
Which is the base class of all pages in an ASP.NET application ?
What are web services ? Why do we need them ?
Can u write an example of inheritence ?
When I create an object of derived class, In what order will the constructors be invoked ?
Suppose I want a parameterized constructor for base class to be invoked when I create an object of derived class, How can I acieve this ?
I need to have a property in a base class and derived class. I need base class property to be get and set, but derived class property should be get only. How can I achieve this ?
What are different access modifiers ?
What is the use of 'internal' keyword ?
What will be the default access modifier for an Interface ?
What are static classes ?
When is static class objects created in memory ?
Can we specify access modifiers for a static class ?
Will this code show a compile error ?

Static class ClassA
{
private int a ;
public static void Func()
{
int b = a;
}
}
How can we fix the error ?
What is method overloading ?
How all can we achieve method overloading ? What abt diffrence In order only ? Ie) (int, string) and (string, int) ?
Can we achieve overloading by changing return type ?
Can u write a function which accepts a string as argument and return its alphabet compliment ( (ie) "abc" returns "zyx")
What is xmlHTTP object ? What is its use ?
Suppose I have a Gridview with employee details. How can I achieve edit functionality completely using Javascript ? Ie) on clicking edit, a popup shoud come with editable details.
After editing and saving, it should refresh parent grid data.
In javascript, How can we access parent page ? How can we refresh data in parent page ?
Suppose I have a Dataset with full employeee details. I need to get the list of employee names as a string array. How can I acieve this ?
Can u write a LINQ to Dataset query to achieve the above ?
Have u implemented any design patterns in your projects ? Can u explain details of implementation ?
Can u explain factory pattern ? Can u identify a potential scenario where factory pattern can be used ?

No comments:

Post a Comment