The programming tutorials found on this blog are here to help YOU learn how to program quickly and easily.
Search This Blog
Thursday, July 21, 2011
Dot net interview questions and answers
1. How many weg.configs can an application have?
An application can have any number of web.config files but each file in a separate folder.
if an application has 5 folders then the application can have 5 web.config files in the folders + 1 web.config file in root directory
2. Differences between application and session?
Application state does not change for end user
session state is create for every user
Application state does not change for end user
session state is create for every user
3. What are the 2 types of polymorphism supports in .NET?
Compile time and run time polymorphism
Compile time and run time polymorphism
4. Explain a class access specifies and method access specifies?
There is 5 access specifies
public
protected
private
internal
protected internal
There is 5 access specifies
public
protected
private
internal
protected internal
5. Explain virtual function and its usage.
>> it’s tell compiler that this method might be override
>> it’s tell compiler that this method might be override
6. How do you implement inhetance in .NET?
>> in c# using :
in Vb inhertans
in Vb inhertans
7. If I want to override a method 1 of class A and this class B then how do you declared
class B : A
{
public override method1()
{}
}
{
public override method1()
{}
}
8. Explain friend and protected friend?
friend == this type of members is available for all classs those are in same assembly
protected friend == same assembly classs and drive classs can able to access this type of members
9. Explain multiple and multi_level inheritance in .NET?
multiple == class A : intehert interface1,interface2
multi_level == class A {}
class B : A {}
class c : B {}
class B : A {}
class c : B {}
10. What is isPostback property?
it’s check this page is load first time .It is using to avoid round trips to the server..
11. Diff b/w DataGrid and GridView?
The great advantage of the GridView over the DataGrid is its support for code-free scenarios. Using
the GridView, you can accomplish many common tasks, such as paging and selection, without writing
any code. With the DataGrid, you were forced to handle events to implement the same features.
the GridView, you can accomplish many common tasks, such as paging and selection, without writing
any code. With the DataGrid, you were forced to handle events to implement the same features.
12. what is abstrat class ?
The abstract class cannot be inherited when the abstract keyword is specified to the destined class
The abstract class cannot be inherited when the abstract keyword is specified to the destined class
Subscribe to:
Posts (Atom)