-
What are LOCAL and GLOBAL variables?
Local variables lifetime ends when the Procedure ends. Global variables lifetime begins at the start of the script and ends at the end of the script and it can be used by any procedure within the script. Declaring a variable by using the keyword PRIVATE makes the variable global within the script, but if declared using PUBLIC, then all scripts can refer the variable.
-
What happens to ASP pages?
The browser makes a HTTP request; the server does the processing and gives a HTML response to the browser.
-
What is Application-scope?
Application-scope means that variables (and objects) can be accessed from any ASP pages that is part of the application.
-
What is application Object?
Shares information among users of an application. Gives a notification when an application starts or ends.
-
What are ARRAYS?
Arrays are variables that store items of similar information.DIM ARRAY1(4) (declares an array with the name array1 with 5 elements)
-
What is Collection?
Collection is a set of name/value pairs where the information supplied by the client is stored.
-
-
What is an Err Object?
Name it’s properties and methods?
-
What is Cookies collection?
Cookies are text files that store information about the user by which the web server identifies and marks each different visitor to a web site and determines where a user has been before. A cookie can store information only when the user sends it. Individual cookies are limited to 4KB of data. The maximum number of cookies allowed is 300. Cookies are stored on client’s machine.
-
What is the difference between Querystring collection and Form collection?
The main difference is that the Querystring collection gets appended to a URL(with a ?
-
What is the use of following Statement Response.Expires=120
A.The page will be removed form cache after 120 Hours B.The page will be removed form cache after 120 Sec C.The page will be removed form cache before 120 Min D.The page will be removed form cache after 2 Hours
-
What should the developer use in order to have an Active Server Page (ASP) invokes a stored procedure on a SQL Server database?
A. ADO B. RDO C. RDS D. OLEDB E. None of the above.
-
‘onStart’ and ’onEnd’ are events of what object(s)?
A. Application only. B. Session only. C. Server only. D. Application and Session only. E. Application, Session, and Server.
-
What is the result of using Option Explicit?
A. This applies only to Visual Basic, not VBScript. B. All variables must be dimensioned before use. C. All variables are dimensioned at run-time. D. Forces all <SELECT> controls to have a SELECTED option. E. Requires all variables be cast as specific DataTypes.
-
What is the order of execution for an ASP application?
1) Global.asa 2) Server-side Includes 3) Jscript scripts tagged within <SCRIPT> tags 4) HTML together with scripts tagged within <% … %> delimiters 5) VBScripts tagged within <SCRIPT> tags
-
What is Extranet?
An area of a web site available only to a set of registered visitors.
-
In the database table, if the datatype for field1 (shown above) is Number, what is the value of varType?">
<% varType = rsTest("field1").type %> In the database table, if the datatype for field1 (shown above) is Number, what is the value of varType?
A. The field value. B. A string description. C. The field name. D. NULL. E. An enumerator.
-
What are the advantages of Cookies over Session Object?
• It informs each page what session the request belongs to when a user accesses during a session. • It retrieves all the session information stored on the server. • Cookies can persist for a much longer period of time than session that has a timeout value usually of 20 minutes and hence can store information even when a user is off the site.
-
What happens when a client submits a form which changes the value of an Application variable?
A. Client actions cannot change Application variables. B. The change is not visible to any client until the application is stopped and started. C. The change is only visible to future requests made by that client during their current session. D. The change is visible to all clients, but only after they complete their current sessions and begin a new session. E. The change is visible to all clients...
-
ASP Interview Questions
Ans