Sunday, September 26, 2010

Questions asked in Nihelient

1)what are partial class?

It is possible to split the definition of a class or struct or an interface over two or more source files. Each source file contains a section of the class definition, and all parts are combined when the application is compiled( means a single dll is formed for all the partial class files with same name when compiled).


2)can two partialclasses have same method?

No...Two partial classes should not have same methods. The following code gives a Compile Error...

public partial class MyClass
{
private int Total = 0;

public void MyMethod()
{
}
}
public partial class MyClass
{
private string EmpName = "";

public void MyMethod()
{

}
}
3)what is application pooling?

Concept of Application pool has from IIS 6.0


if you want to isolate all the Web applications running in the same computer, you can do this by creating a separate application pool for every Web application and placing them in their corresponding application pool.
Because each application pool runs in its own worker process, errors in one application pool will not affect the applications running in other application pools. Deploying applications in application pools is a primary advantage of running IIS 6.0 in worker process isolation mode because you can customize the application pools to achieve the degree of application isolation that you need.



4)what is the diff between normal page life cycle and page life cycle
having master pages?


The following is the sequence in which events occur when a master page is merged with a content page:
  1. Master page controls Init event.
  2. Content controls Init event.
  3. Master page Init event.
  4. Content page Init event.

  5. Content page Load event.
  6. Master page Load event.
  7. Content controls Load event.

  8. Content page PreRender event.
  9. Master page PreRender event.
  10. Master page controls PreRender event.
  11. Content controls PreRender event.

http://msdn.microsoft.com/en-us/library/dct97kc3(v=vs.80).aspx

5)what is virtual directory?how many we can creat in a appliction?

6) waht do u mean by delete & truncate?

7)cann we use views for update, insert and delete?

Views in all versions of SQL Server are updatable (can be the target of UPDATE, DELETE, or INSERT statements), as long as the modification affects only one of the base tables referenced by the view.


http://www.codeproject.com/KB/database/View.aspx


8)diff between string and string builder?

9)Diff between hash table and Array List?

10)waht is array List?

11)what is static class ? why do u use them?

12)what is column label in sql?

13)what are the type of indexes?

14)how many no of indexs will be present for a table?

15)what doo u mean by cascading delete?

16)What do u mean by serialization?

17)what do u mean by sessions?

18)what do umean by cokkies?

19)waht are the types of authentication?

20)where does the authentication credentials save in the web application?

21)what are char and nchar?

CHAR and NCHAR data types are both character data types that are fixed-length. 


CHAR holds only non-unicode character so it needs one byte for storing a character.


NCHAR holds Uni-code character which needs two bytes for storing one character.

22)what are varchar and nvarchar?


VARCHAR and NVARCHAR data types are both character data types that are variable-length. 

VARCHAR holds only non-unicode characters so it needs one byte for storing a character.

NVARCHAR holds Uni-code characters which needs two bytes for storing one character.


23)what do u mean by virtual? and can we override without that?

No...

24)what do u mean by strongname and what does it contain?

25)diff between .Exe and .Dll ?

26)can we place a .Exe in GAC?

27)what do u mean by Delegates?

28)what do u mean by multicast Delegate?

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.