ASP Interview Questions and Answers
1. How can you disable the browser to view the code?
Writing codes within the Tag.
2. Question 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.
3. Give the comment Tags for the following?
VBScript : REM & ‘(apostrophe) JavaScript : // (single line comment) /* */ (Multi-line comments)
4. Which is the default Scripting Language of ASP (server-side)?
VBScript
5. Which is the default Data types in VBScript?
Variant is the default data type in VBScript, which can store a value of any type.
6. What is a variable?
Variable is a memory location through which the actual values are stored/retrieved. Its value can be changed.
7. What is the maximum size of an array?
Up to 60 dimensions.
8. What is Querystring collection?
This collection stores any values that are provided in the URL. This can be generated by three methods: By clicking on an anchor tag By sending a form to the server by the GET method Through user-typed HTTP address
9. What are the attributes of the tags? What are their functions?
The two attributes are ACTION and METHOD The ACTION gives the name of the ASP file that should be opened next by which this file can access the information given in the form The METHOD determines which of the two ways (POST or GET) the browser can send the information to the server
10. What are the methods in Session Object?
The Session Object has only one method, which is Abandon. It destroys all the objects stored in a Session Object and releases the server resources they occupied.
11. What is Server Variables collection?
The Server Variables collection holds the entire HTTP headers and also additional items of information about the server.
12. What is the difference between Querystring collection and Form collection?
The main difference is that the Querystring collection gets appended to a URL.
13. 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.
14. What are the ASP Scripting Objects?
The Dictionary object, the FileSystemObject object, TextStream object.
15. What happens to a HTML page?
The browser makes a HTTP request; the server gives a HTTP response to the browser and the browser converts into a HTML page.
16. What happens to ASP pages?
The browser makes a HTTP request; the server does the processing and gives a HTML response to the browser.
17. How can you change the primary scripting language for a page?
Specify
18. What is application Object?
Shares information among users of an application. Gives a notification when an application starts or ends.
19. 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.
20. What is the command to display characters to the HTML page?
Response.Write

delicious
digg
reddit
magnoliacom
newsvine
furl
google
yahoo
technorati
icerocket
pubsub
Recent comments