Untitled Page

Saturday, November 21, 2009

C Sharp interview questions - part 2

Give Some Examples of Generic Classes?
List,Queue,Stack,LinkedList,HashSet

Generic Collections are located in which NameSpace?
System.Collections.Generic

Object type collections are located in the which NameSpace?
System.Collections

What does the modifier protected internal in C# mean?
The Protected Internal can be accessed by Members of the Assembly or the inheriting class, and of course, within the class itself.

What is the Global.asax used for?
The Global.asax (including the Global.asax.cs file) is used to implement application and session level events.

What are the Application_Start and Session_Start subroutines used for?
This is where you can set the specific variables for the Application and Session objects.

How many classes can a single .NET DLL contain?
It can contain many classes.

What base class do all Web Forms inherit from?
The Page class.

What’s the .NET datatype that allows the retrieval of data by a unique key?
Ans. HashTable.

Can you edit data in the Repeater control?
No, it just reads the information from its data source.

When during the page processing cycle is ViewState available?
After the Init() and before the Page_Load(), or OnLoad() for a control.

What’s class SortedList underneath?
Ans. A sorted HashTable.

No comments:

Post a Comment