Find jobs | Jobseekers
Employer login
About us Sitemap of www.CareerRide.com Sitemap FAQ related with www.CareerRide.com FAQ Click here to Contact us Contact
       
Submit Resume Free ! | Access Resume Free !
Home Career Services Resume Services Interview questions Articles Books
Content
ASP.NET Part 1
ASP.NET Part 2
ASP.NET Part 3
ASP.NET Part 4
ASP.NET Part 5
ASP.NET Advantages
ASP.NET Issues
ASP.NET Life cycle
ASP.NET Server control
ASP.NET Server vs. HTML
ASP.NET Datalist control
ASP.NET Application & session
ASP.NET Navigation method
ASP.NET Validation control
ASP.NET State Management
ASP.NET Caching
ASP.NET Exception Handling
ASP.NET Master pages
ASP.NET Tutorial
Session state management
Authentication-Authorization
Globalization-Localization
 
ADO.NET
NET Remoting
NET Interview
C#.NET
VB.NET
AJAX
 
PHP
 
C
C++
Java
Data Structure
Oops
 
Database concepts
SQL Server
Oracle
MySQL
Data warehousing
 
Operating System
Project Management
Linux
Testing
Networking
 
UML
XML
HTML
SOAP
CSS
VBScript
 
CV tips
Cover letter tips
Interview tips
Human resources
Soft skills

ASP.NET interview questions

By Nishant Kumar

Send request to get more ASP.NET, C++ questions, sample CV and personal interview tips in PDF format

ASP.NET interview questions and their answers part 1

Part 1 | Part 2 | Part 3 | Part 4 | part 5

ASP.NET State Management Interview questions with answers 

Define state management in ASP.NET. | Define Client-side state management and Server-side state management.

ASP.NET Master Pages questions with answers

What is Master Page in ASP.NET? | Advantages of using Master Page in ASP.NET | Define Multiple Master Page. | How do you create Master Page?

ASP.NET Exception Handling Interview questions with answers

Define Exception handling in ASP.NET. | What are the ways of handling exceptions in ASP.NET? | Explain Try/catch block method of exception handling. | Define Error Events. Define Custom Error Pages. | Why is exception handling important to an application? | When can you use tracing with exception handling?   

ASP.NET Caching Interview questions with answers

Define Caching in ASP.NET | Advantages of Caching | What are the types of Caching in ASP.NET? | Explain in brief each kind of caching in ASP.NET.

ASP.NET Globalization-Localization questions with answers

What is Globalization and Localization in ASP.NET? | What are the Globalization approaches possible in ASP.NET? | Implementing ASP.NET Globalization | Define Resource Files and Satellite Assemblies

ASP.NET Session State Management questions with answers

Define Session, SessionId and Session State in ASP.NET. | What is Session Identifier? | Advantages and disadvantages of using Session State Management. | What are the Session State Modes? | Define each Session State mode supported by ASP.NET.

ASP.NET Validation Control questions with answers

Define Validation Control in ASP.NET. | What are the validation types supported by ASP.NET? | Describe the steps to use Validation Control.

.NET Code Security Interview questions with answers

What is code security? What are the types? | Define Principal object. | Define declarative and imperative security. | Define role-based security. | Explain code access security. | What is Code group? | Define the use of Caspol.exe.

.NET Debug & Trace Interview questions with answers 

What is break mode? What are the options to step through code? | Debug Vs Trace. | Define trace class. Define Listeners collection of Trace and Debug objects. | Define Trace Switches.

.Net Framework Interview Question with answers

Explain the .Net Framework. | Describe the .Net Framework Architecture. | What are the components of the .Net Framework. | Explain the role of assembly in the .Net Framework. | Describe the GAC in the .Net Framework.

.NET Assembly Interview questions with answers

Define .Net Assembly. | What does an assembly contain? | Define a private assembly and a shared assembly. | What are Satellite Assemblies? | What do you understand by side-by-site execution of assembly? | How do you create a resource-only assembly? | Explain how to retrieve resources using ResourceManager class. | Define Strong Name. | How do you apply a strong name to assembly? | Define Global Assembly Cache. | How do you install assembly to the Global Assembly Cache?


ASP.NET Authentication Authorization Questions with answers

Define Authentication and Authorization | What is the authentication mode available in ASP.NET? | How do you set authentication mode in the ASP.NET application? | List out the difference between windows authentication and form authentication | How do you impersonate the authenticated user in ASP.NET? | How do you provide secured communication in ASP.NET?

Interview questions and answers on .Net web service

What is XML Web Server? | Describe the Components that help locate and consume XML Web Service. | Describe the process of communication between Client and Web Service. | What are the components published while deploying of Web Service? | Describe .disco file. | Describe the step to be followed to access web service by client.

What is AJAX and what problem does it solve

Answer - Ajax is a set of client side technologies that allows asynchronous communication between .....

Explain the advantages of ASP.NET

> ASP.NET DataList Control
> ASP.NET Methodologies
>Problems ASP.NET Solves
>ASP.NET issues & options

>What Is AJAX?
>Advantages of AJAX
>Technologies Make Up AJAX
>What Is ASP.NET 2.0 AJAX?

Question - Define assembly.

Answer - An assembly is the primary unit of a .NET application. It includes an assembly manifest that  describes the assembly.

Question - Define .NET executable.

Answer - It exists as an IL file(Assembly), it is checked against the security policy on load, gets loaded into memory and then JIT compiled into native binary code.

Question - Explain .net architecture.

Answer - The ordering starts from the bottom.
Physical Hardware Machine (Intel Pentium, apple macintosh) 
Operating System (Microsoft Windows, Linux etc)
Common Language Runtime (CLR) 
Framework Class Library (FCL) 
ADO.Net and XML Library 
WinForm, Web Application, Web Serivces (Managed Application)

Question - Name the ASP.NET objects.

Answer - Request,Response,Server,Session, andApplication.

Question - Brief the life cycle of ASP.NET web form.

Answer - Page_Init, Page_Load,Page_PreRender, Page_Unload, Page_disposed, andPage_Error.

Question - Define .NET Framework base class library.

Answer - It organizes code into namespaces and contain types and additional namespaces related to common functionality.

Question - Define Variable Types. 

Answer - Variable types can be of two types namely value types or reference types.
Value type contains all the data associated with that type.
Value types remain empty on declaration until they are assigned a value.

Reference type contains a pointer to an instance of an object of that type.

Reference type must be instantiated after declaration to create the object.

You can declare and instantiate reference type in single step.  

Question - Define User-defined types.

Answer - It can be in the form of classes and structures.

Both class and structure can have members(fields, properties, methods, or events).

Classes are reference types, and structures are value types.

Both type must use the New (new ) keyword for instantiation.

 

Question - Define methods.

Answer - It is used to perform the data manipulation.
It can return a value.

Methods that return values are called Functions in VB.net.

Non-value-returning methods are called Sub.
Methods can have parameters.
Parameters are passed by value by default.

Pass parameters by reference with the ByRef keyword

Question - Define abstract class.  

Answer - Abstract class cannot be instantiated, it has to be inherited.
The methods in abstract class can be overriden in the child class.

Question - Difference between Response.Write() and Response.Output.Write().

Answer - Response.Output.Write() allows you to write formatted output. 

Answer - Process - Instance of the application.
Session - Instance of the user accessing the application.
Cookie - Used for storing small amount of data on client machine.  

Question - When is ViewState available during the page processing cycle?

Answer - ViewState is available after the Init() and before the Page_Load(). 

Question - Explain serialization in ASP.NET?

Answer - Serialization is a process of converting an object into a stream of bytes. .Net has 2 serializers namely XMLSerializer and SOAP/BINARY Serializer. Serialization is maily used in the concept of .Net Remoting.

Question - What is Constructor in ASP.NET?

Answer - It is the first method that are called on instantiation of a type.
It provides way to set default values for data before the object is available for use.
Performs other necessary functions before the object is available for use.

Question - What is Destructor in ASP.NET?

Answer - It is called just before an object is destroyed.
It can be used to run clean-up code.
You 
cannot control when a destructor is called since object clean up by common language runtime.

Question - Explain how a web application works.

Answer - A web application resides in the server and serves the client™s requests over internet. The client access the web page using browser from his machine. When a client makes a request, it receives the result in the form of HTML which are interpreted and displayed by the browser.

 

A web application on the server side runs under the management of Microsoft Internet Information Services (IIS). IIS passes the request received from client to the application. The application returns the requested result in the form of HTML to IIS, which in turn, sends the result to the client.

Question - Explain the different parts that constitute ASP.NET application.

Answer - Content, program logic and configuration file constitute an ASP.NET application.

Content files
Content files include static text, images and can include elements from database.

Program logic
Program logic files exist as DLL file on the server that responds to the user actions.

Configuration file
Configuration file offers various settings that determine how the application runs on the server.
 

Question - Describe the sequence of action takes place on the server when ASP.NET application starts first time?

Answer - Following are the sequences:
IIS starts ASP.NET worker process>> worker process loads assembly in the memory>>IIS sends the request to the assembly>>the assembly composes a response using program logic>> IIS returns the response to the user in the form of HTML.

Question - Explain the components of web form in ASP.NET.

Answer - Server controls
The server controls are Hypertext Markup Language (HTML) elements that include a runat=server attribute. They provide automatic state management and server-side events and respond to the user events by executing event handler on the server.

HTML controls.
These controls also respond to the user events but the events processing happen on the client machine.

Data controls
Data controls allow to connect to the database, execute command and retrieve data from database.

System components
System components provide access to system-level events that occur on the server.

Question - Describe in brief .NET Framework and its components.

Answer - .NET Framework provides platform for developing windows and web software. ASP.NET is a part of .Net framework and can access all features implemented within it that was formerly available only through windows API. .NET Framework sits in between our application programs and operating system.

The .Net Framework has two main components:
.Net Framework Class Library: It provides common types such as data types and object types that can be shared by all .Net compliant language.

The Common language Runtime: It provides services like type safety, security, code execution, thread management, interoperability services.

Question - What is an Assembly? Explain its parts?

Answer - An assembly exists as a .DLL or .EXE that contains MSIL code that is executed by CLR. An assembly contains interface and classes, it can also contain other resources like bitmaps, files etc. It carries version details which are used by the CLR during execution. Two assemblies of the same name but with different versions can run side-by-side enabling applications that depend on a specific version to use assembly of that version. An assembly is the unit on which permissions are granted. It can be private or global. A private assembly is used only by the application to which it belongs, but the global assembly can be used by any application in the system.

The parts of an assembly are:

Assembly Manifest - It contains name, version, culture, and information about referenced assemblies.

Type metadata - It contains information about types defined in the assembly. MSIL - MSIL code.

Resources - Files such as BMP or JPG file or any other files required by application.

Question - Define Common Type System.

Answer - .Net allows developers to write program logic in at least 25 languages. The classes written in one language can be used by other languages in .Net. This service of .Net is possible through CTS which ensure the rules related to data types that all language must follow. It provides set of types that are used by all .NET languages and ensures .NET language type compatibility.

Question - Define Virtual folder.

Answer - It is the folder that contains web applications. The folder that has been published as virtual folder by IIS can only contain web applications.

Question - What are the ways of preserving data on a Web Form in ASP.NET?

ASP.NET has introduced view state to preserve data between postback events. View state can't avail data to other web form in an application. To provide data to other forms, you need to save data in a state variable in the application or session objects.

Question - Define application state variable and session state variable.

These objects provide two levels of scope:

Application State
Data stored in the application object can be shared by all the sessions of the application. Application object stores data in the key value pair.

Session State
Session State stores session-specific information and the information is visible within the session only. ASP.NET creates unique sessionId for each session of the application. SessionIDs are maintained either by an HTTP cookie or a modified URL, as set in the application's configuration settings. By default, SessionID values are stored in a cookie.
 

ASP.NET Interview questions with answers posted on July 22, 2008 at 8:10 am

Question - ASP.NET session vs Classic ASP

Answer
ASP session variables are recycled when IIS restarts. ASP.NET session is maintained even if IIS reboots.
With ASP session, we can’t have web farms. ASP.NET session supports multiple servers since it can be stored in state server and SQL server.
ASP session is compatible to only those browsers that support cookies.

Question - What is event bubbling?

Answer
In ASP.NET, we can have child controls inside server control like Datagrid, Datalist, Repeater. Example, combo box can be placed inside Datagrid. The child can’t raise their events by himself; they send events to their parent which pass to the page as “Itemcommand” event. This processing is called event bubbling.

Part 1 | Part 2 | Part 3 | Part 4 | part 5

ASP.NET Interview questions part 2 includes following questions with answers

Define access modifiers. | Name the namespace for Web page in ASP.NET. | Write difference between overloading and overriding. | Write Namespace for user locale in ASP.NET. | How do you implement inheritance in .NET? | Explain the differences between Server-side and Client-side code. | Define ADO.NET Dataset. | Define global.asax in ASP.NET. | What are the Application_Start and Session_Start subroutines used for? | Define inline code and code behind. | What is MSIL? | Name the class Web Forms inherit from.


ASP.NET Interview questions part 3 includes following questions with answers

What is Shared (static) member? | What is the transport protocol you use to call a Web service? | What is Option Strict used for? | Define Boxing and Unboxing. | What does WSDL stand for? | Define ViewState in ASP.NET. | What is the lifespan for items stored in ViewState? | Define EnableViewState property. | What are Delegates? | What are Classes? | What is Encapsulation? | Different types of Session state management options available with ASP.NET? | What methods are fired during the page load? | Explain ADO.NET.

ASP.NET Interview questions part 4 includes following questions with answers

Define Server-side and Client-side code in ASP.NET. | What tag do you use to add a hyperlink column to the DataGrid? | Where does VS.NET store Web application projects? | Describe Web application’s life cycle | Define class module and a code module. | Steps to execute a stored procedure from Web Application | Describe exception handling in ASP.NET | What are the exception-handling ways in ASP.NET?


ASP.NET Interview questions part 5 includes following questions with answers

Describe use of error pages in ASP.NET. | Explain tracing in ASP.NET | What is the use of ComVisible attribute? | Define Windows and Forms authentication. | What is Secure Sockets Layer (SSL) security? | Why is the Machine.config file? | Explain how to distribute shared components as part of an installation program? | Define Unit testing, Integration testing, Regression testing. | Define HTML and XML.

 

 

Today's Hot Jobs
C++  SQL Server
.NET  Java  Oracle
Finance  Marketing
Seekers  Employers
Copyright © 2008 CareerRide.com. All rights reserved.