-
What is Server Object?
Controls the ASP execution environment. It can set the amount of time script can run before an error occurs. Converts a virtual path to a physical path on the server. Takes a user supplied string and encode it into proper format for a URL string.
-
-
-
-
-
-
Server.CreateObject("THINGDOER.thingy")
%>
The above code appears in the global.asa file. What would it accomplish?"><% Set Application("Thing") = Server.CreateObject("THINGDOER.thingy") %> The above code appears in the global.asa file. What would it accomplish?
A. It would create a "Thing" object and place it in Contents Collection of the Application object. B. It would create a "Thing" object and place it in StaticObjects Collection of the Application object. C. It would create a "Thing" object and place it in the Application.Buffer Collection Of the Application object. D. It would create an application-level variable named "Thing" with the value of the...
-
What would be the result of the above code?
A. Type mismatch error B. "Hello World, Hello World, Hello World" C. 0 D. "Hello World 3" E. "Hello World"
-
What are the methods in Application Object?
• Lock – prevents clients from modifying the variables stored in the Application object. • Unlock – removes the lock from variables stored in the Application object.
-
When is the Session_OnStart event fired?
A. Upon every request from an application by a client for an .asp document. B. Upon the first request from an application by a client for any file in the application. C. Upon the first request for an .asp document from an application by a client. D. Upon the first request for the global.asa file, in which the event handler is located. E. Upon the first request for an. html or .asp document from an...
-
What must be installed on an IIS4 machine to use the CDONTS e-mail server object?
A. FTP service B. SMTP service C. IIS administrator D. Exchange Server E. IPX/SPX protocol
-
What is a Web Server?
It’s a Computer that provides Web services on the Internet or on a local Intranet. It is designed to locate, address and send out simple HTML pages to all other users who access these pages.
-
%>
Referring to the above, if you want to pass the contents of the strName variable in a hyperlink, which line of code would you use?"><% strName="John Smith" %> Referring to the above, if you want to pass the contents of the strName variable in a hyperlink, which line of code would you use?
A. This cannot be done. The anchor is on the client and the variable is on the server. B. href="Encode.asp?
-
What purpose is served by the Application.Lock method?
A. It locks the Application object, preventing other clients from altering any values in the Contents collection. B. It locks the application, preventing the server from responding to any requests for application documents. C. It locks the application, preventing non-SSL requests from being processed. D. It locks the Application object, preventing other clients from reading any values in the Content...
-
Using VBScript, which of the following Scripting Object(s) is NOT available from scrrun.dll?
A. TextStream B. Dictionary Object C. Err Object D. FileSystemObject E. All are available from scrrun.dll.
-
What is an Err Object?
Name it’s properties and methods?
-
What is a variable?
Variable is a memory location through which the actual values are stored/retrieved. Its value can be changed.
-
Naming constraints for a variable.
It can be up to 255 characters Must start with an alphabet Must not contain an embedded period or full-stop
-
What is Response Object?
It 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
-
What are the methods by which output stream is controlled?
• 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.
ASP Interview Questions
Ans