Latest Interview Questions

PoolInterview is world's Largest Collection of Free Interview Questions.  




1.What is object in ASP?

Application,Server,Request,Response,Session,ObjectContext,ASPError

2. Explain the POST & GET Method or Explain the difference between them?

POST METHOD:
The POST method generates a FORM collection, which is sent as a HTTP request body. All the values typed in the form will be stored in the FORM collection.
GET METHOD:
The GET method sends information by appending it to the URL (with a question mark) and stored as A Querystring collection. The Querystring collection is passed to the server as name/value pair.
The length of the URL should be less than 255 characters.

GET METHOD-Parameters are passed in the querystring.minimum number of data that can be sent via get method.only 2kb of information passed
POST METHOD-Parameters are passed in the form.no limit to the amount of data that be transferred using post method.

3. What is a "Virtual Directory"?

Virtual directories are aliases for directory paths on the server. It allows moving files on the disk between different folders, drives or even servers without changing the structure of web pages. It avoids typing an extremely long URL each time to access an ASP page.

4. What are the collections of Application Object?

Contents collection:contains all variables added via scripts in global.asa.
Static collection:contains the names of all objects added via the <OBJECT> tag in global.asa.

5. How to handle Error in ASP

Using On Error Resume Next

6. What is a Form collection?

The Form collection holds the values of the form elements submitted with the POST method. This is the only way to generate a Form collection.

7. What is the difference between client-side script and server-side script?

Scripts executed only by the browser without contacting the server is called client-side script. It is browser dependent. The scripting code is visible to the user and hence not secure. Scripts executed by the web server and processed by the server is called server-side script.

8. What is the difference between Server-side validation and Client-side validation?

Client-side is faster than server-side as the networking time from client to server is saved
server-side is done on the server. Then the server converts the data into an html page and sends to the browser.
server-side is more secure as the user cannot see the code even he does a view-source.

9. How can you change the primary scripting language for a page?

Specify <%@ LANGUAGE = Scripting language %>

10. Explain life cycle of ASP page

Active server pages are executed with the help of compiler and then it sent to the MSIL (MICROSOFT INTERMEDIATE LANGUAGE) and then it is sent to cache memory and finally it will be executed in the portable device. Cache will be used between the MSIL to increase the speed of the process. This is the process of the ASP life cycle.