ASP.NET interview notes part 3

A journey to ASP.NET interview notes with Nishant Kumar, founder of www.careerride.com

Follow me on FACEBOOK for Job updates and other interview related articles

<<Previous   Next>>

Application domain: The process space where ASP.NET worker process loads the Web application’s assembly.

Namespaces organizes code and provide protection from conflicting names (namespace collisions)

Access modifier for classes and modules
Public (VB.NET) or public (C#) can be accessed by all members in all classes and projects.

Friend (VB.NET) or internal(C#) can be accessed by all members in the current project

Protected (VB.NET) or protected(C#) can be accessed in the current class and in classes derived from this member’s class

Protected Friend (VB.NET) or protected internal(C#) can be accessed by all members in the current project and all members in classes derived from this member’s class

Private (VB.NET) or private(C#) can be accessed by members of the current class only

Inheritance: With this facility, base class provides methods, properties, and other members to a derived class.

Abstract classes defines an interface for derived classes. Abstract classes are declared with the MustInherit (in VB.NET) or abstract (in C#) keyword. Methods and properties of these classes are declared as MustOverride (in VB.NET) or as abstract in C#.

Delegates are strong types function pointer used to invoke one or more methods where the actual method invoked is determined at run time.

Interfaces are similar to abstract classes except interfaces don’t provide any implementation of class members.

Global.asax: The Global object is defined in Global.asax that starts automatically when an application starts. A developer can use events in global object to initialize application-level state variables.

Maintaining state information: Context.Handler, Query strings, Cookies, View state, Session state, Application state.

Point to be considered for state variables: Maintaining session state affects performance and should be turned off at the application and page levels when not required.

Application state variables are available throughout the current process, but not across processes. If an application is scaled to run on multiple servers or on multiple processors within a server, each process has its own application state. The web application’s boundaries determine the scope of the application state.

System.Web and System.Web.UI namespaces define most of the objects including Application, Page, Request, and Response objects.

<<Previous   Next>>
Define global.asax in ASP.NET.

The Global.asax is including the Global.asax.cs file.
You can implement application........

Define ViewState in ASP.NET.

It allows the state of objects (serializable) to be stored in a hidden field on the page.
It is transported to the client and back to the server, and is not stored on the server or any other external source...............

Overview of ADO.NET architecture.

Data Provider provides objects through which functionalities like opening and closing connection, retrieving and updating data can be availed.............. 



Write your comment - Share Knowledge and Experience


 

 
Latest placement tests
Latest links
 
Latest MCQs
» General awareness - Banking » ASP.NET » PL/SQL » Mechanical Engineering
» IAS Prelims GS » Java » Programming Language » Electrical Engineering
» English » C++ » Software Engineering » Electronic Engineering
» Quantitative Aptitude » Oracle » English » Finance
Home | About us | Sitemap | Contact us | We are hiring