Your Ad Here

Wednesday, December 31, 2008

Recent ASP Interview Questions & Answers

Q : What’s the difference between client-side script and server-side script?
A : Scripts executed only by the browser without contacting the server is called client-side script. It is browser dependent. The scripting code is a visible to the user and hence not secure. Scripts are executed by the web server and processed by the server is called server-side script.

Q : What is Session Object?
A : Session object is stored in the information about a User’s session. Gives a notification when a user session begins or ends.

Q : What is the Server-Side includes?
Server side includes provides the extra information by which it makes the site easier to manage. It can include the text files using the #include statement, retrieve the size and last modification date of a file, defines how variables and error messages are displayed and inserts the values of HTTP variables in the page sent back to the browser.

Q : What is Response Object?
A : Response object is controls the information sent to the user. The various methods are:
Response.Write - Sends information directly to a browser
Response.Redirect - Directs a user to a URL other than the requested URL
Response.ContentType - Controls the type of content sent
Response.Cookies - Sets cookie values
Response.Buffer - To Buffer information

Q : What is a TextStream object?
A : Text Stream object allows you to access the read or write the contents of text files stored on the web server.

Q : What is Request Object?
A : Gets information from the user. It has five collections of by which values can be accessed. They are:
Querystring, Form, Cookies, Server Variables & ClientCertificate

Q : Why do we use Option Explicit?
A : Answer 1 :
Correct answer is – This statement force the declaration of variables in VB before using them.

Answer 2 :
To avoid multiple variables of the same name.

Q : What are the Web Servers supporting in ASP?
A : There are three types of web servers supporting in asp,
Internet Information Server (IIS) on Windows NT
Peer Web Services on Windows NT
Personal Web Server (PWS) on Windows 95

Q : What is asession?
A :Session is known as a user accessing an application.

Q : Explain some of the ASP components?
A : 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.
Database Access component : Allows to access data from the database
Browser Capabilities component : Allows to customize the page to the ability of the browser viewing it.

Q : What are the advantages of using ASP?
A : Minimizes network traffic by limiting the need for the browser and server to talk to each other
Makes for quicker loading time since HTML pages are only downloaded
Can provide the client with data that does not reside on the client’s machine
Allows to run programs in languages that are not supported by the browser
Provides improved security measures since the script cannot be viewed by the brows.

Q : What is the function of Buffer in Response Object?
A : Buffer in response object controls the HTML output stream manually.

Q : What are the methods in Session Object?
A : The Session Object have only one method, which is Abandon. It destroys all the objects stored in a Session Object and releases the server resources they occupied.

Q : What is FileSystemObject object?
A : FileSystemobjaect provides access to the physical file system of the web server. It gets and manipulates the information about all drives in a server, folders and sub-folders on a drive and files inside a folder.

Q : What’s the difference between HTML and ASP?

ASP executes code on the server side whereas the browser interprets HTML.
ASP can use any of the scripting languages
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 .

Q : What are the browsers that can access ASP pages?
A: Netscape Communicator/ Navigator (supports only JavaScript, VBScript)
Internet Explorer (supports VBScript, JavaScript)

0 comments:

Your Ad Here