ASP Interview Questions and Answers
Question - 61 : - What are the methods in Application Object?
Answer - 61 : - Internet Information Server (IIS) on Windows NT
Personal Web Server (PWS) on Windows 95
Peer Web Services on Windows NT
Question - 62 : - What are the browsers that can access ASP pages?
Answer - 62 : - Internet Explorer (supports VBScript, JavaScript)
Netscape Communicator/ Navigator (supports only JavaScript, VBScript can be also added too)
Question - 63 : - How does the server identify and execute the server-side scripts within HTML code?
Answer - 63 : - Including the RUNAT=SERVER attribute
Question - 64 : - What are the methods by which output stream is controlled?
Answer - 64 : - Flush sends previous buffered output to the client immediately, but continues processing the script.
Clear erases any already-buffered HTML.
End causes the server to stop processing the script.
Question - 65 : - What are the properties used to control the expiration of the page?
Answer - 65 : - Expires specifies the number of minutes before a page cached on a browser expires.
ExpiresAbsolute sets the date and time at which a page cached on a browser expires.
Question - 66 : - What are the collections of Session Object?
Answer - 66 : - Contents collection contains all the variables established for a session without using the tag.
Static collection contains all the objects created
Question - 67 : - What is the difference between ASP and HTML? Or Why ASP is better than HTML?
Answer - 67 : - - ASP executes code on the server side whereas the browser interprets HTML.
- ASP can use any scripting languages
- Gets feedback from the user and return information to the user
- Create pages that will be customized to display only things that will be of interest to a particular user
- Can edit contents of a web page by updating a text file or a database rather than the HTML code itself
Question - 68 : - What are the event handlers of Application Object?
Answer - 68 : - Application_OnStart- This event will be fired when the first visitor hits the page.
Application_OnEnd- This event runs when the server is stopped.
Question - 69 : - Name some of the ASP components?
Answer - 69 : - Ad Rotator component- a way to manage advertisements on the web site.
Content Linker component - a technique to direct users through a set of pages on a web site by creating a list of URLs and description of the next and previous pages.
Browser Capabilities component - allows to customize the page to the ability of the browser viewing it.
Database Access component - allows to access data from the database
Question - 70 : - What are the tasks performed by < FORM > tags?
Answer - 70 : - tags provides space for the user to input values
the form has a button to submit information back to the server
It transfers control to another ASP page
It carries the information in the fields to another ASP page