Subscribe

RSS Feed (xml)

Powered By

Skin Design:
Free Blogger Skins

Powered by Blogger

search topic

Showing posts with label Free download Technical Interview Questions 2008. Show all posts
Showing posts with label Free download Technical Interview Questions 2008. Show all posts

Wednesday, August 6, 2008

IMP interview questions ASP.NET Technical Interview Questions 1

1.Asp.net and asp ? differences?

Code Render Block


Code Declaration Block



Compiled

Request/Response


Event Driven



Object Oriented - Constructors/Destructors, Inheritance, overloading..



Exception Handling - Try, Catch, Finally



Down-level Support



Cultures



User Controls



In-built client side validation

Session - weren't transferable across servers


It can span across servers, It can survive server crashes, can work with browsers that don't support cookies

built on top of the window & IIS, it was always a separate entity & its functionality was limited.


its an integral part of OS under the .net framework. It shares many of the same objects that traditional applications would use, and all .net objects are available for asp.net's consumption.



Garbage Collection



Declare variable with datatype



In built graphics support



Cultures



2.How ASP and ASP.NET page works? Explain about asp.net page life cycle?
**

3.Order of events in an asp.net page? Control Execution Lifecycle?

Phase


What a control needs to do


Method or event to override

Initialize


Initialize settings needed during the lifetime of the incoming Web request.


Init event (OnInit method)

Load view state


At the end of this phase, the ViewState property of a control is automatically populated as described in Maintaining State in a Control. A control can override the default implementation of the LoadViewState method to customize state restoration.


LoadViewState method

Process postback data


Process incoming form data and update properties accordingly.


LoadPostData method (if IPostBackDataHandler is implemented)

Load


Perform actions common to all requests, such as setting up a database query. At this point, server controls in the tree are created and initialized, the state is restored, and form controls reflect client-side data.


Load event

(OnLoad method)

Send postback change notifications


Raise change events in response to state changes between the current and previous postbacks.


RaisePostDataChangedEvent method (if IPostBackDataHandler is implemented)

Handle postback events


Handle the client-side event that caused the postback and raise appropriate events on the server.


RaisePostBackEvent method(if IPostBackEventHandler is implemented)

Prerender


Perform any updates before the output is rendered. Any changes made to the state of the control in the prerender phase can be saved, while changes made in the rendering phase are lost.


PreRender event
(OnPreRender method)

Save state


The ViewState property of a control is automatically persisted to a string object after this stage. This string object is sent to the client and back as a hidden variable. For improving efficiency, a control can override the SaveViewState method to modify the ViewState property.


SaveViewState method

Render


Generate output to be rendered to the client.


Render method

Dispose


Perform any final cleanup before the control is torn down. References to expensive resources such as database connections must be released in this phase.


Dispose method

Unload


Perform any final cleanup before the control is torn down. Control authors generally perform cleanup in Dispose and do not handle this event.


UnLoad event (On UnLoad method)

4.

What are server controls?
ASP.NET server controls are components that run on the server and encapsulate user-interface and other related functionality. They are used in ASP.NET pages and in ASP.NET code-behind classes.
5.

What is the difference between Web User Control and Web Custom Control?
Custom Controls
Web custom controls are compiled components that run on the server and that encapsulate user-interface and other related functionality into reusable packages. They can include all the design-time features of standard ASP.NET server controls, including full support for Visual Studio design features such as the Properties window, the visual designer, and the Toolbox.
There are several ways that you can create Web custom controls:
*

You can compile a control that combines the functionality of two or more existing controls. For example, if you need a control that encapsulates a button and a text box, you can create it by compiling the existing controls together.
*

If an existing server control almost meets your requirements but lacks some required features, you can customize the control by deriving from it and overriding its properties, methods, and events.
*

If none of the existing Web server controls (or their combinations) meet your requirements, you can create a custom control by deriving from one of the base control classes. These classes provide all the basic functionality of Web server controls, so you can focus on programming the features you need.

If none of the existing ASP.NET server controls meet the specific requirements of your applications, you can create either a Web user control or a Web custom control that encapsulates the functionality you need. The main difference between the two controls lies in ease of creation vs. ease of use at design time.
Web user controls are easy to make, but they can be less convenient to use in advanced scenarios. You develop Web user controls almost exactly the same way that you develop Web Forms pages. Like Web Forms, user controls can be created in the visual designer, they can be written with code separated from the HTML, and they can handle execution events. However, because Web user controls are compiled dynamically at run time they cannot be added to the Toolbox, and they are represented by a simple placeholder glyph when added to a page. This makes Web user controls harder to use if you are accustomed to full Visual Studio .NET design-time support, including the Properties window and Design view previews. Also, the only way to share the user control between applications is to put a separate copy in each application, which takes more maintenance if you make changes to the control.
Web custom controls are compiled code, which makes them easier to use but more difficult to create; Web custom controls must be authored in code. Once you have created the control, however, you can add it to the Toolbox and display it in a visual designer with full Properties window support and all the other design-time features of ASP.NET server controls. In addition, you can install a single copy of the Web custom control in the global assembly cache and share it between applications, which makes maintenance easier.

Web user controls


Web custom controls

Easier to create


Harder to create

Limited support for consumers who use a visual design tool


Full visual design tool support for consumers

A separate copy of the control is required in each application


Only a single copy of the control is required, in the global assembly cache

Cannot be added to the Toolbox in Visual Studio


Can be added to the Toolbox in Visual Studio

Good for static layout


Good for dynamic layout


(Session/State)
6.

Application and Session Events
The ASP.NET page framework provides ways for you to work with events that can be raised when your application starts or stops or when an individual user's session starts or stops:
*

Application events are raised for all requests to an application. For example, Application_BeginRequest is raised when any Web Forms page or XML Web service in your application is requested. This event allows you to initialize resources that will be used for each request to the application. A corresponding event, Application_EndRequest, provides you with an opportunity to close or otherwise dispose of resources used for the request.
*

Session events are similar to application events (there is a Session_OnStart and a Session_OnEnd event), but are raised with each unique session within the application. A session begins when a user requests a page for the first time from your application and ends either when your application explicitly closes the session or when the session times out.

You can create handlers for these types of events in the Global.asax file.
7.

Difference between ASP Session and ASP.NET Session?
asp.net session supports cookie less session & it can span across multiple servers.
8.

What is cookie less session? How it works?
By default, ASP.NET will store the session state in the same process that processes the request, just as ASP does. If cookies are not available, a session can be tracked by adding a session identifier to the URL. This can be enabled by setting the following:

http://samples.gotdotnet.com/quickstart/aspplus/doc/stateoverview.aspx
9.

How you will handle session when deploying application in more than a server? Describe session handling in a webfarm, how does it work and what are the limits?
By default, ASP.NET will store the session state in the same process that processes the request, just as ASP does. Additionally, ASP.NET can store session data in an external process, which can even reside on another machine. To enable this feature:
*

Start the ASP.NET state service, either using the Services snap-in or by executing "net start aspnet_state" on the command line. The state service will by default listen on port 42424. To change the port, modify the registry key for the service: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\aspnet_state\Parameters\Port
*

Set the mode attribute of the section to "StateServer".
*

Configure the stateConnectionString attribute with the values of the machine on which you started aspnet_state.

The following sample assumes that the state service is running on the same machine as the Web server ("localhost") and uses the default port (42424):

Note that if you try the sample above with this setting, you can reset the Web server (enter iisreset on the command line) and the session state value will persist.
**
10.

What method do you use to explicitly kill a users session?
Abandon()
11.

What are the different ways you would consider sending data across pages in ASP (i.e between 1.asp to 2.asp)?
Session
public properties
12.

What is State Management in .Net and how many ways are there to maintain a state in .Net? What is view state?
Web pages are recreated each time the page is posted to the server. In traditional Web programming, this would ordinarily mean that all information associated with the page and the controls on the page would be lost with each round trip.
To overcome this inherent limitation of traditional Web programming, the ASP.NET page framework includes various options to help you preserve changes ? that is, for managing state. The page framework includes a facility called view state that automatically preserves property values of the page and all the controls on it between round trips.
However, you will probably also have application-specific values that you want to preserve. To do so, you can use one of the state management options.
Client-Based State Management Options:
View State
Hidden Form Fields
Cookies
Query Strings
Server-Based State Management Options
Application State
Session State
Database Support
13.

What are the disadvantages of view state / what are the benefits?
Automatic view-state management is a feature of server controls that enables them to repopulate their property values on a round trip (without you having to write any code). This feature does impact performance, however, since a server control's view state is passed to and from the server in a hidden form field. You should be aware of when view state helps you and when it hinders your page's performance.
14.

When maintaining session through Sql server, what is the impact of Read and Write operation on Session objects? will performance degrade?
Maintaining state using database technology is a common practice when storing user-specific information where the information store is large. Database storage is particularly useful for maintaining long-term state or state that must be preserved even if the server must be restarted.
**
15.

What are the contents of cookie?
**
16.

How do you create a permanent cookie?
**
17.

What is ViewState? What does the "EnableViewState" property do? Why would I want it on or off?
**
18.

Explain the differences between Server-side and Client-side code?
Server side code will process at server side & it will send the result to client. Client side code (javascript) will execute only at client side.
19.

Can you give an example of what might be best suited to place in the Application_Start and Session_Start subroutines?
**
20.

Which ASP.NET configuration options are supported in the ASP.NET implementation on the shared web hosting platform?
A: Many of the ASP.NET configuration options are not configurable at the site, application or subdirectory level on the shared hosting platform. Certain options can affect the security, performance and stability of the server and, therefore cannot be changed. The following settings are the only ones that can be changed in your site?s web.config file (s):
browserCaps
clientTarget
pages
customErrors
globalization
authorization
authentication
webControls
webServices
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconaspnetconfiguration.asp
21.

Briefly describe the role of global.asax?
22.

How can u debug your .net application?
23.

How do u deploy your asp.net application?
24.

Where do we store our connection string in asp.net application?
25.

Various steps taken to optimize a web based application (caching, stored procedure etc.)
26.

How does ASP.NET framework maps client side events to Server side events.

(Security)
27.

Security types in ASP/ASP.NET? Different Authentication modes?
28.

How .Net has implemented security for web applications?
29.

How to do Forms authentication in asp.net?
30.

Explain authentication levels in .net ?
31.

Explain autherization levels in .net ?
32.

What is Role-Based security?
A role is a named set of principals that have the same privileges with respect to security (such as a teller or a manager). A principal can be a member of one or more roles. Therefore, applications can use role membership to determine whether a principal is authorized to perform a requested action.
**
33.

How will you do windows authentication and what is the namespace? If a user is logged under integrated windows authentication mode, but he is still not able to logon, what might be the possible cause for this? In ASP.Net application how do you find the name of the logged in person under windows authentication?
34.

What are the different authentication modes in the .NET environment?

="WindowsFormsPassportNone"> ="name"
loginUrl="url"
protection="AllNoneEncryptionValidation"
timeout="30" path="/" >
requireSSL="truefalse"
slidingExpiration="truefalse"> ="ClearSHA1MD5"> ="username" password="password"/> internal"/>

Free download online recent and current year solved placement question papers 2008 of leading compa

IMP interview questions ASP.NET Technical Interveiw Latest Questions 2

1.

How do you specify whether your data should be passed as Query string and Forms (Mainly about POST and GET)
Through attribute tag of form tag.
2.

What is the other method, other than GET and POST, in ASP.NET?
3.

What are validator? Name the Validation controls in asp.net? How do u disable them? Will the asp.net validators run in server side or client side? How do you do Client-side validation in .Net? How to disable validator control by client side JavaScript?
A set of server controls included with ASP.NET that test user input in HTML and Web server controls for programmer-defined requirements. Validation controls perform input checking in server code. If the user is working with a browser that supports DHTML, the validation controls can also perform validation ("EnableClientScript" property set to true/false) using client script.
The following validation controls are available in asp.net:
RequiredFieldValidator Control, CompareValidator Control, RangeValidator Control, RegularExpressionValidator Control, CustomValidator Control, ValidationSummary Control.
4.

Which two properties are there on every validation control?
ControlToValidate, ErrorMessage
5.

How do you use css in asp.net? "Asp.net questions asked in leading it companies technical interviews MNCs for 2008 free with solutions / answers
Within the section of an HTML document that will use these styles, add a link to this external CSS style sheet that
follows this form:

MyStyles.css is the name of your external CSS style sheet.
6.

How do you implement postback with a text box? What is postback and usestate?
Make AutoPostBack property to true
7.

How can you debug an ASP page, without touching the code?
8.

What is SQL injection?
An SQL injection attack "injects" or manipulates SQL code by adding unexpected SQL to a query.
Many web pages take parameters from web user, and make SQL query to the database. Take for instance when a user login, web page that user name and password and make SQL query to the database to check if a user has valid name and password.
Username: ' or 1=1 ---
Password: [Empty]
This would execute the following query against the users table:
select count(*) from users where userName='' or 1=1 --' and userPass=''
9.

How can u handle Exceptions in Asp.Net?
10.

How can u handle Un Managed Code Exceptions in ASP.Net?
11.

Asp.net - How to find last error which occurred?
A: Server.GetLastError();
[C#]
Exception LastError;
String ErrMessage;
LastError = Server.GetLastError();
if (LastError != null)
ErrMessage = LastError.Message;
else
ErrMessage = "No Errors";
Response.Write("Last Error = " + ErrMessage);

#

1.
How to do Caching in ASP? "Latest asp net tech / hr interview question
A: <%@ OutputCache Duration="60" VaryByParam="None" %>

1.
VaryByParam value



Description

none


One version of page cached (only raw GET)

*


n
versions of page cached based on query string and/or POST body

v1


n
versions of page cached based on value of v1 variable in query string or POST body

v1;v2


n versions of page cached based on value of v1 and v2 variables in query string or POST body

1.
<%@ OutputCache Duration="60" VaryByParam="none" %>
<%@ OutputCache Duration="60" VaryByParam="*" %>
<%@ OutputCache Duration="60" VaryByParam="name;age" %>
The OutputCache directive supports several other cache varying options
2.

VaryByHeader - maintain separate cache entry for header string changes (UserAgent, UserLanguage, etc.)

*

VaryByControl - for user controls, maintain separate cache entry for properties of a user control
*

VaryByCustom - can specify separate cache entries for browser types and version or provide a custom GetVaryByCustomString method in HttpApplicationderived class

1.

What is the Global ASA(X) File? "ASP.net technical Interview questions"
2.

Any alternative to avoid name collisions other then Namespaces.
A scenario that two namespaces named N1 and N2 are there both having the same class say A. now in another class i ve written
using N1;using N2;
and i am instantiating class A in this class. Then how will u avoid name collisions?
Ans: using alias
Eg: using MyAlias = MyCompany.Proj.Nested;
3.

Which is the namespace used to write error message in event Log File?
4.

What are the page level transaction and class level transaction?
5.

What are different transaction options?
6.

What is the namespace for encryption?
7.

What is the difference between application and cache variables?
8.

What is the difference between control and component?
9.

You ve defined one page_load event in aspx page and same page_load event in code behind how will prog run?
10.

Where would you use an IHttpModule, and what are the limitations of any approach you might take in implementing one?
11.

Can you edit data in the Repeater control? Which template must you provide, in order to display data in a Repeater control? How can you provide an alternating color scheme in a Repeater control? What property must you set, and what method must you call in your code, in order to bind the data from some data source to the Repeater control?
12.

What is the use of web.config? Difference between machine.config and Web.config?
ASP.NET configuration files are XML-based text files--each named web.config--that can appear in any directory on an ASP.NET
Web application server. Each web.config file applies configuration settings to the directory it is located in and to all
virtual child directories beneath it. Settings in child directories can optionally override or modify settings specified in
parent directories. The root configuration file--WinNT\Microsoft.NET\Framework\\config\machine.config--provides
default configuration settings for the entire machine. ASP.NET configures IIS to prevent direct browser access to web.config
files to ensure that their values cannot become public (attempts to access them will cause ASP.NET to return 403: Access
Forbidden).
At run time ASP.NET uses these web.config configuration files to hierarchically compute a unique collection of settings for
each incoming URL target request (these settings are calculated only once and then cached across subsequent requests; ASP.NET
automatically watches for file changes and will invalidate the cache if any of the configuration files change).
http://samples.gotdotnet.com/quickstart/aspplus/doc/configformat.aspx
13.

What is the use of sessionstate tag in the web.config file? - "asp net tutorials, guide, free questions and answers, programs questions download online instantaneously
Configuring session state: Session state features can be configured via the section in a web.config file. To double the default timeout of 20 minutes, you can add the following to the web.config file of an application:

timeout="40"
/>

#

1.
What are the different modes for the sessionstates in the web.config file?

1.
Off



Indicates that session state is not enabled.

Inproc


Indicates that session state is stored locally.

StateServer


Indicates that session state is stored on a remote server.

SQLServer


Indicates that session state is stored on the SQL Server.
#

1.
What is smart navigation?
When a page is requested by an Internet Explorer 5 browser, or later, smart navigation enhances the user's experience of the page by performing the following:
2.

eliminating the flash caused by navigation.

*

persisting the scroll position when moving from page to page.
*

persisting element focus between navigations.
*

retaining only the last page state in the browser's history.

1.
Smart navigation is best used with ASP.NET pages that require frequent postbacks but with visual content that does not change dramatically on return. Consider this carefully when deciding whether to set this property to true.
Set the SmartNavigation attribute to true in the @ Page directive in the .aspx file. When the page is requested, the dynamically generated class sets this property.
2.

In what order do the events of an ASPX page execute. As a developer is it important to undertsand these events?
3.

How would you get ASP.NET running in Apache web servers - why would you even do this?
4.

What tags do you need to add within the asp:datagrid tags to bind columns manually
5.

What base class do all Web Forms inherit from?
System.Web.UI.Page
6.

How can we create pie chart in asp.net?
7.

Is it possible for me to change my aspx file extension to some other name?
Yes.
Open IIS->Default Website -> Properties
Select HomeDirectory tab
Click on configuration button
Click on add. Enter aspnet_isapi details (C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\aspnet_isapi.dll GET,HEAD,POST,DEBUG)

Open machine.config(C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\CONFIG) & add new extension under tag
8.

What is AutoEventWireup attribute for ?

IMP interview questions ASP.net Technical HR Interview Questions 4

ASP / ADO / IIS Interview Questions:

Used by IBM Consulting Services

1.

How many objects are there in ASP?
2.

Which DLL file is needed to be registered for ASP?
3.

If you want to initialize a global variable for an application, which is the right place to declare it? (like form or some other file).
4.

What is diffrence between Server.transfer and Response.redirect.

5.

Is there any inbuilt paging(for example shoping cart. which will show next 10 records without refreshing) in ASP? How will you do pating.
6.

What does Server.MapPath do?
7.

Name at least three methods of response object other than Redirect.
8.

Name at least two methods of response object other than Transfer.
9.

Tell few programming diffrence between ADO and DAO programming. What is state?
10.

How many types of cookies are there?
11.

Tell few steps for optimizing (for speed and resources) ASP page/application

This came in the mail from the reader who recently went through a job interview process. He didn’t mention the company name.

1.

Why do you use Option Explicit?
2.

What are the commonly used data types in VBScript?

3.

What is a session object?
4.

What are the three objects of ADO?
5.

What are the lock-types available in ADO? Explain.
6.

What are the cursor types available in ADO? Explain.
7.

What is a COM component?
8.

How do you register a COM component?
9.

What is a virtual root and how do you create one?
10.

What is a database index, how do you create one, discuss its pros and cons?
11.

How do you use multiple record sets (rs.NextRecordSet)?
12.

As soon as you fetch a record set, what operations would you perform?
13.

Define a transaction. What are ACID properties of a transaction?
14.

How would you remotely administer IIS?
15.

What is RAID? What is it used for?
16.

What is normalization? Explain normalization types.
17.

What is the disadvantage of creating an index in every column of a database table?
18.

What are the uses of source control software?
19.

You have a query that runs slowly, how would you make it better? How would you make it better in .NET environment?
20.

What is a bit datatype? What is it used for?
21.

How would you go about securing IIS and MS-SQL Server?
22.

What is the difference between Request(”field”) and Request.Form(”field”)?

Keep watching out PreviousPapers.blogspot.com for more free online asp.net technical interview questions and answers / solutions here. Latest Technical Interview questions of all Computer programming languages and other topics are given here with solutions..

IMP interview questions ASP Dot Net Technical Interview Solved questions 5

ASP.Net Technical / HR Interview Basic and Advanced / Expert questions with answers

1.

Describe the role of inetinfo.exe, aspnet_isapi.dll andaspnet_wp.exe in the page loading process. inetinfo.exe is theMicrosoft IIS server running, handling ASP.NET requests among other things.When an ASP.NET request is received (usually a file with .aspx extension),the ISAPI filter aspnet_isapi.dll takes care of it by passing the request tothe actual worker process aspnet_wp.exe.
2.

What’s the difference between Response.Write() andResponse.Output.Write()?
The latter one allows you to write formattedoutput.
3.

What methods are fired during the page load? Init() - when the pageis instantiated, Load() - when the page is loaded into server memory,PreRender() - the brief moment before the page is displayed to the user asHTML, Unload() - when page finishes loading.
4.

Where does the Web page belong in the .NET Framework class hierarchy?System.Web.UI.Page
5.

Where do you store the information about the user’s locale? System.Web.UI.Page.Culture
6.

What’s the difference between Codebehind= "MyCode.aspx.cs" andSrc="MyCode.aspx.cs"?
CodeBehind is relevant to Visual Studio.NET only.
7.

What’s a bubbled event? When you have a complex control, likeDataGrid, writing an event processing routine for each object (cell, button,row, etc.) is quite tedious. The controls can bubble up their eventhandlers, allowing the main DataGrid event handler to take care of itsconstituents.
8.

Suppose you want a certain ASP.NET function executed on MouseOver overa
certain button. Where do you add an event handler? It’s the Attributesproperty,
the Add function inside that property. So

btnSubmit.Attributes.Add("onMouseOver","someClientCode();")

A simple”Javascript:ClientCode();” in the button control of the .aspx
page will attach the handler (javascript function)to the onmouseover event.
9.

What data type does the RangeValidator control support? Integer,String
and Date.
10.

Where would you use an iHTTPModule, and what are the limitations of any
approach you might take in implementing one? One of ASP.NET’s most useful features is the extensibility of the HTTP pipeline, the path that data takes between client and server.
You can use them to extend your ASP.NET applications by adding pre- and post-processing
to each HTTP request coming into your application. For example, if you wanted custom authentication facilities for your application, the best technique would be to intercept the request when it comes in and process the request in a custom HTTP module.
11.

Explain what a diffgram is, and a good use for one? A DiffGram is an XML format that is used to identify current and original versions of data elements. The DataSet uses the DiffGram format to load and persist its contents, and to serialize its contents for transport across a network connection. When a DataSet is written as a DiffGram, it populates the DiffGram with all the necessary information to accurately recreate the contents, though not the schema, of the DataSet, including column values from both the Original and Current row versions, row error information, and row order.
Keep watching Asp.net language more questions and other computer language questions here free..

IMP interview questions ASP Net Technical Interview Questions and Answers 6

Asp.Net Technical Questions Set with answers

1.

Whats an assembly? Assemblies are the building blocks of .NET Framework applications; they form the fundamental unit of deployment, version control, reuse, activation scoping, and security permissions. An assembly is a collection of types and resources that are built to work together and form a logical unit of functionality. An assembly provides the common language runtime with the information it needs to be aware of type implementations. To the runtime, a type does not exist outside the context of an assembly.

2.

Describe the difference between inline and code behind - which is best in a loosely coupled solution? ASP.NET supports two modes of page development: Page logic code that is written inside blocks within an .aspx file and dynamically compiled the first time the page is requested on the server. Page logic code that is written within an external class that is compiled prior to deployment on a server and linked "behind" the .aspx file at run time.
3.

Explain what a diffgram is, and a good use for one? A DiffGram is an XML format that is used to identify current and original versions of data elements. The DataSet uses the DiffGram format to load and persist its contents, and to serialize its contents for transport across a network connection. When a DataSet is written as a DiffGram, it populates the DiffGram with all the necessary information to accurately recreate the contents, though not the schema, of the DataSet, including column values from both the Original and Current row versions, row error information, and row order.
4.

Where would you use an iHTTPModule, and what are the limitations of anyapproach you might take in implementing one? One of ASP.NET’s most useful features is the extensibility of the HTTP pipeline, the path that data takes between client and server. You can use them to extend your ASP.NET applications by adding pre- and post-processing to each HTTP request coming into your application. For example, if you wanted custom authentication facilities for your application, the best technique would be to intercept the request when it comes in and process the request in a custom HTTP module.
5.

What are the disadvantages of viewstate/what are the benefits?
6.

Describe session handling in a webfarm, how does it work and what are the limits?
7.

How would you get ASP.NET running in Apache web servers - why would you even do this?
8.

Whats MSIL, and why should my developers need an appreciation of it if at all?
9.

In what order do the events of an ASPX page execute. As a developer is it important to undertsand these events? Every Page object (which your .aspx page is) has nine events, most of which you will not have to worry about in your day to day dealings with ASP.NET. The three that you will deal with the most are: Page_Init, Page_Load, Page_PreRender.
10.

Which method do you invoke on the DataAdapter control to load your generated dataset with data?

System.Data.Common.DataAdapter.Fill(System.Data.DataSet);

If my DataAdapter is sqlDataAdapter and my DataSet is dsUsers then it is called this way:

sqlDataAdapter.Fill(dsUsers);

11.

Data in the Repeater control?
12.

Which template must you provide, in order to display data in a Repeater control? ItemTemplate
13.

How can you provide an alternating color scheme in a Repeater control?
AlternatingItemTemplate Like the ItemTemplate element, but rendered for every other
row (alternating items) in the Repeater control. You can specify a different appearance
for the AlternatingItemTemplate element by setting its style properties.

14.

What property must you set, and what method must you call in your code, in order to bind the data from some data source to the Repeater control?
You must set the DataMember property which Gets or sets the specific table in the DataSource to bind to the control and the DataBind method to bind data from a source to a server control. This method is commonly used after retrieving a data set through a database query.

15.

What base class do all Web Forms inherit from? System.Web.UI.Page
16.

What method do you use to explicitly kill a user’s session?
The Abandon method destroys all the objects stored in a Session object and releases their resources.
If you do not call the Abandon method explicitly, the server destroys these objects when the session times out.

Syntax: Session.Abandon

17.

How do you turn off cookies for one page in your site?
Use the Cookie.Discard Property which Gets or sets the discard flag set by the server. When true, this
property instructs the client application not to save the Cookie on the user’s hard disk when a session ends.

18.

Which two properties are on every validation control? ControlToValidate & ErrorMessage properties
19.

What tags do you need to add within the asp:datagrid tags to bind columns manually?
20.

How do you create a permanent cookie? Setting the Expires property to MinValue means that the Cookie never expires.
21.

What tag do you use to add a hyperlink column to the DataGrid?
22.

What is the standard you use to wrap up a call to a Web service?
23.

Which method do you use to redirect the user to another page without performing a round trip to the client? Server.transfer()
24.

What is the transport protocol you use to call a Web service? SOAP. Transport Protocols: It is essential for the acceptance of Web Services that they are based on established Internet infrastructure. This in fact imposes the usage of of the HTTP, SMTP and FTP protocols based on the TCP/IP family of transports. Messaging Protocol: The format of messages exchanged between Web Services clients and Web Services should be vendor neutral and should not carry details about the technology used to implement the service. Also, the message format should allow for extensions and different bindings to specific transport protocols. SOAP and ebXML Transport are specifications which fulfill these requirements. We expect that the W3C XML Protocol Working Group defines a successor standard.
25.

True or False: A Web service can only be written in .NET. False.
26.

What does WSDL stand for? Web Services Description Language
27.

What property do you have to set to tell the grid which page to go to when using the Pager object?
28.

Where on the Internet would you look for Web services? UDDI repositaries like uddi.microsoft.com, IBM UDDI node, UDDI Registries in Google Directory, enthusiast sites like XMethods.net.
29.

What tags do you need to add within the asp:datagrid tags to bind columns manually? Column tag and an ASP:databound tag.
30.

Which property on a Combo Box do you set with a column name, prior to setting the DataSource, to display data in the combo box?
31.

How is a property designated as read-only? In VB.NET:

Public ReadOnly Property PropertyName As ReturnType
Get ‘Your Property Implementation goes in here
End Get
End Property

in C#

public returntype PropertyName
{
get{
//property implementation goes here
}
// Do not write the set implementation
}

32.

Which control would you use if you needed to make sure the values in two different controls matched? Use the CompareValidator control to compare the values
of 2 different controls.

33.

True or False: To test a Web service you must create a windows application or Web application to consume this service? False.
34.

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

ASP Dot Net Technical Interview Questions for freshers 2008 ASP Dot Net Technical Interview Questions for freshers 2008

asp.net
What is datagrid? The DataGrid Web server control is a powerful tool for displaying information from a data source. It is easy to use; you can display editable data in a professional-looking grid by setting only a few properties. At the same time, the grid has a sophisticated object model that provides you with great flexibility in how you display the data.


What’s the difference between the System.Web.UI.WebControls.DataGrid and and System.Windows.Forms.DataGrid? The Web UI control does not inherently support master-detail data structures. As with other Web server controls, it does not support two-way data binding. If you want to update data, you must write code to do this yourself. You can only edit one row at a time. It does not inherently support sorting, although it raises events you can handle in order to sort the grid contents. You can bind the Web Forms DataGrid to any object that supports the IEnumerable interface. The Web Forms DataGrid control supports paging. It is easy to customize the appearance and layout of the Web Forms DataGrid control as compared to the Windows Forms one.

How do you customize the column content inside the datagrid? If you want to customize the content of a column, make the column a template column. Template columns work like item templates in the DataList or Repeater control, except that you are defining the layout of a column rather than a row.

How do you apply specific formatting to the data inside the cells? You cannot specify formatting for columns generated when the grid’s AutoGenerateColumns property is set to true, only for bound or template columns. To format, set the column’s DataFormatString property to a string-formatting expression suitable for the data type of the data you are formatting.

How do you hide the columns? One way to have columns appear dynamically is to create them at design time, and then to hide or show them as needed. You can do this by setting a column’s Visible property.

"ASP.net software developers technical interview questions for 2008 free online."
How do you display an editable drop-down list? Displaying a drop-down list requires a template column in the grid. Typically, the ItemTemplate contains a control such as a data-bound Label control to show the current value of a field in the record. You then add a drop-down list to the EditItemTemplate. In Visual Studio, you can add a template column in the Property builder for the grid, and then use standard template editing to remove the default TextBox control from the EditItemTemplate and drag a DropDownList control into it instead. Alternatively, you can add the template column in HTML view. After you have created the template column with the drop-down list in it, there are two tasks. The first is to populate the list. The second is to preselect the appropriate item in the list — for example, if a book’s genre is set to “fiction,” when the drop-down list displays, you often want “fiction” to be preselected.

How do you check whether the row data has been changed? The definitive way to determine whether a row has been dirtied is to handle the changed event for the controls in a row. For example, if your grid row contains a TextBox control, you can respond to the control’s TextChanged event. Similarly, for check boxes, you can respond to a CheckedChanged event. In the handler for these events, you maintain a list of the rows to be updated. Generally, the best strategy is to track the primary keys of the affected rows. For example, you can maintain an ArrayList object that contains the primary keys of the rows to update.

Real time ASP.net Language Technical Interview Questions asked in reputed IT and other Companies for Developers, Database Administrators, Open source software, Web Developers, Internet Application Developers Job Tech Interview for 2008. Questions for School project viva, College Admission Technical Interview, etc. Keep Watching PreivousPapers.blogspot.com for lots more technical Questions

IMP interview questions ASP Net Latest Technical Interview Questions 8

Basic .Net and Asp.net Interview Questions:

These questions were asked in a US company hiring a Web developer.

1.

Explain the .NET architecture.
2.

How many languages .NET is supporting now? - When .NET was introduced it came with several languages. VB.NET, C#, COBOL and Perl, etc. The site DotNetLanguages.Net says 44 languages are supported.
3.

How is .NET able to support multiple languages? - a language should comply with the Common Language Runtime standard to become a .NET language. In .NET, code is compiled to Microsoft Intermediate Language (MSIL for short). This is called as Managed Code. This Managed code is run in .NET environment. So after compilation to this IL the language is not a barrier. A code can call or use a function written in another language.

4.

How ASP .NET different from ASP? - Scripting is separated from the HTML, Code is compiled as a DLL, these DLLs can be executed on the server.
5.

Resource Files: How to use the resource files, how to know which language to use?
6.

What is smart navigation? - The cursor position is maintained when the page gets refreshed due to the server side validation and the page gets refreshed.
7.

What is view state? - The web is stateless. But in ASP.NET, the state of a page is maintained in the in the page itself automatically. How? The values are encrypted and saved in hidden controls. this is done automatically by the ASP.NET. This can be switched off / on for a single control
8.

Explain the life cycle of an ASP .NET page.
9.

How do you validate the controls in an ASP .NET page? - Using special validation controls that are meant for this. We have Range Validator, Email Validator.
10.

Can the validation be done in the server side? Or this can be done only in the Client side? - Client side is done by default. Server side validation is also possible. We can switch off the client side and server side can be done.
11.

How to manage pagination in a page? - Using pagination option in DataGrid control. We have to set the number of records for a page, then it takes care of pagination by itself.
12.

What is ADO .NET and what is difference between ADO and ADO.NET? - ADO.NET is stateless mechanism. I can treat the ADO.Net as a separate in-memory database where in I can use relationships between the tables and select insert and updates to the database. I can update the actual database as a batch.

See more asp Language latest basic and advanced expert questions and answers / solutions to java programs and free tutorials for admission / technical interview selection to various reputed IT Companies and institutions / colleges. Test your java knowledge - answer these questions for 2007 and 2008 provided by real candidates.. Good Luck. Keep watching PreviousPapers.blogspot.com for more free technical and HR Interview Questions.

IMP interview questions ASP.Net Technical Interview Questions 2008 All Latest

See all the latest / recent Tech Interview questions with solutions here:
ASP Net Latest Technical Interview Questions 8
ASP Dot Net Technical Interview Questions for freshers 2008
ASP Net Technical Interview Questions and Answers 6
ASP Dot Net Technical Interview Solved questions 5
ASP.net Technical HR Interview Questions 4
ASP.Net Tech Interview Questions and Answers 3
ASP.NET Technical Interveiw Latest Questions 2
ASP.NET Technical Interview Questions 1

Free download online ASP.Net (Dot) solved placement question papers 2008 of leading companies in India and Abroad. See More Latest and previous expert, common, basic, important, advanced questions asked in college admission, entrance tests and technical interviews for 2007, 2008 for leading IT Companies in India, USA, UK, etc. Reputed MNCs testing job technical interview questions for Wipro, Infosys, TCS, Satyam Computers, HCL, IBM, Cisco, Microsoft, Keane, Flextronics, Accenture, SAP, Oracle, Texas Instruments, Quark, Patni Computer Systems, Mastek, ITES companies, Software Companies. Freshers and on campus interviews. Recent, latest reasoning, multiple choice questions, verbal, non verbal, mathematics questions with solutions / solved / answer keys, booklet. Group Discussion GD guide with topics for leading campus placement interview, placement drive, HR Interview Guide with Questions and answers, how to behave, Tips, preparation, most recently asked / important software testing interview, asp.net, free tutorials for java, oracle, c, c++, networking, web designing, windows 2000, etc. questions. Keep Watching Previouspapers.blogspot.com for more stuff!

Tuesday, August 5, 2008

C++ Solved questions 2008 - 13 IMP interview questions

Cplusplus C++ Technical Questions and programs with solutions / answers

1. Why main function is so special. Give two reasons?
Ans. Whenever a C++ program is executed only the main() is executed i.e., execution of the program starts and ends at main(). The main() is the driver function of the program. If it is not present in a program, no execution can take place.

2.Name the header file of C++ to which following functions belong:
(i) strcat() (ii) scanf() (iii) getchar() (iv) clrscr( )
Ans. (i) string.h (ii) stdio.h (iii) stdio.h (iv) conio.h

3.Find the syntax error(s), if any, in the following program:
#include
main()
{
int x[5],*y,z[5];
for(i=0;i<5;i++) y="z;" x="y;">4. Give the output of the following program.
#include
void main( )
{
char *p="Difficult";
char c;
c=*p++;
printf("%c",c);
}
Ans. D

5. Write the output of the following program.
#include
static int i=100;
void abc( )
{
static int i=8;
cout<<"first="<6.Write a C++ function that converts a 2-digit octal number into binary number and prints the binary equivalent.
Ans.
#include
#include
void binary(int a)
{
int i,b[5];
for(i=3;i>=1;i--)
{
b[i]=a%2;
a=a/2;
}
for(i=1;i<=3;i++) cout<>n;
x=n/10;
y=n%10;
binary(x);
binary(y);
getch();
}

Download free online previous years and latest IT companies latest / recent technical placement papers and interview questions with solutions / solved with answers for 2007 and 2008. Complete programs for expert, basic, beginner, advanced, general technical interview questions and Exams papersfor Top Software Developers Companies, Experts Jobs for application developers for various computer languages like C, C++, Java, Javascript, Web Designers, Animation companies, Animators, Graphic Designers, Coders, ASP .net, Net, Basic PC and internet / windows questions, etc. for various MNC, MNCs like Infosys, wipro, tcs, satyam computers, hcl, microsoft, cisco, cognizant, web designing agencies, studios, mastek, tech mahindra, accenture, IBM etc important, mostly asked questions for freshers, walkin interviews and fully detailed placement question papers.

C++ Technical Interview Questions programs answers and solutions IMP interview questions

C++ All Resources here. Keep watching for more latest / recent 2008 technical interview and placement paper mulitple choice MCQ questions updated regularly.

C++ Technical Questions GameDev Interview - 16
Advanced C++ and STL Questions - 15
Basic C++ and Unix Questions and Answers - 14
C++ Solved questions 2008 - 13
C C++ Technical Interview Questions List and Free Resources - 12
C++ Interview Questions - 11
C++ Questions and Answers - 10
C++ Object Oriented Language Interview Questions - 9
C++ Networking Placement Paper Technical Questions - 8
C++ Basic Tech Interview questions - 7
C++ Programming coding interview questions with solutions - 6
C++ While pointers linked list and other questions - 5
C++ Technical Interview solved questions - 4
C++ Questions and answers - 3
C++ Software Companies Technical Interview Questions - 2
C C++ Technical Interview General Reviews
C++ Technical Interview Questions

Keep watching PreviousPapers.blogspot.com for more C, C++, Java, ASP, NET, Web Server, Oracle, SAP, etc. software jobs resources and electronics communication ece, computer cse,information technology it, mechanical, electrical ee, civil engineering placement papers download online here. Good luck for your interview!

Technical Interview Questions Programming Languages and softwares IMP interview questions

Here i am showing the technical interview questions of various IT, ITES, Software Developer, Animation, Web Designing, Project Interview, Consultancy firms, Web Designing Firms and many other companies Tech Interview Questions by real candidates and experiences. Here you will view or download free online complete detailed questions, answers, solutions, solved questions, problems, preparation help, helpful resources, Mulitple choice questions for placement papers, MCQs, Reasoning questions, basic, advanced, important, popularly mostly asked programming language interview questions for latest 2007 and 2008. So check these out. Good Luck for your Placement papers. May you get a good placement. Do Mail us your paper.

Note: For web designing, animation interviews, graphics, etc. the questions are in particular languages collections.

C Sharp C# Technical Interview Questions and all related resources
C++ Cplusplus Technical Interview questions with all related programs, solutions and answers
C Language Latest Technical Interview and Placement paper solved questions with programs
Embedded Systems Interview Questions
ASP.Net asp net Technical Interview Questions all latest
Java Recent 2008 Technical and HR Interview Questions with solutions
SAP Technical Interview Questions
SAS Interview Questions
Unix Technical Interview Questions 2008 Latest with solutions
Visual Basic VB Programming Interview Questions
Software Testing Testers Job Interview Questions
Microprocessor Interview Questions ECE ELectronics Computer Engineering students latest placement paper Qs
Web Developers and Technologies Technical Job Interview and Placement paper questions
XML Ones
Oracle All technical placement paper questions and interview preparation help resources

Helpful Note: There are many other technical interview topics and languages / applications help resources for placement papers and hr or tech rounds which havnt been indexed and 'easily listed' here. You can find them by searching the site or by viewing the Archives


What All's Here ::::::: Free download online recent and current year solved placement question papers 2008 of leading companies in India and Abroad. See More Latest and previous expert, common, basic, important, advanced questions asked in college admission, entrance tests and technical interviews for 2007, Most recently asked / important software testing interview, free tutorials for java, oracle, c, c++, networking, web designing, windows 2000, vista, etc. questions. HR, GD guides, ielts, toefl guides, school, college medical and engineering solved question papers. Reputed MNCs testing job interview questions for Wipro, Infosys, TCS, Satyam Computers, HCL, IBM, Cisco, Microsoft, Keane, Flextronics, Accenture, Cognizant, T Systems, SAP, Oracle, Texas Instruments, Quark, Patni Computer Systems, Mastek, Dell, ITES companies, Software Companies. Keep Watching Previouspapers.blogspot.com for more stuff!