"interview questions o nnamespace in asp.net"


In this their is some collection of interview questions related to namespaces.

1. What is a Namespace? What is the use of a namespace?

Namespaces are the logical grouping of classes and other types in hierarchical structure.
Namespaces are useful to avoid collision or ambiguity among the classes and type names.
Another use of the namespace is to arrange a group of classes for a specific purpose.

2.Which are the namespaces that are imported automatically by Visual Studio in ASP.Net?

There are 7 namespaces which are imported automatically.
System
System.Collections
System.IO
System.web
System.web.UI
System.web.UI.HTMLControls
System.web.UI.WebControls

3.Which namespaces are used for data access?

System.Data
System.Data.OleDB
System.Data.SQLClient

4.How many namespaces are in .NET version 1.1?

124.

5. In .NET all the types are inherited from which class?

Object class

6. which namespace is used for file operations?

System.IO

7.Which namespace is used for windows application?

System.Windows.Forms


Comments

No responses found. Be the first to comment...


  • 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: