-
Which line of code would instantiate the Browser Capabilities component?
A. objBrowser = Server.CreateObject("MSWC.BrowserType") B. Set objBrowser = Server.CreateObject("MSWC.BrowserType") C. var objBrowser = Server.CreateObject("MSWC.BrowserType") D. var objBrowser = CreateObject("MSWC.BrowserType") E. var objBrowser = Server.CreateObject("BrowserType")
-
-
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...
-
Which-code sample will report whether the client’s browser supports cookies?
A. <% var objFSO = Server.CreateObject("Scripting.FileSystemObject") Response.Write objFSO.cookiesSupported %> B. You can only use JavaScript for this. C. <% var objFSO = Server.CreateObject("Scripting.FileSystemObject") Response.Write objFSO.cookies %> D. <% var objBrowser = Server.CreateObject("MSWC.BrowserType") Response.Write objBrowser.cookies %> E. <% var objBrowser = Server.CreateObject("MSWC.BrowserType")...
-
What are the special sub-types in VBScript?
EMPTY: has no value NULL: Value does not exist (conjunction with database) OBJECT:
-
-
-
What is the Order of precedence for LOGICAL Operators.
NOT, AND, OR, XOR, EQV, IMP
-
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 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...
-
%>
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 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 is a Scripting Language?
It permits to create more interactive Web Pages. Validation, formatting of web pages can be done. VBScript, JavaScript are some examples.
-
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.
-
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.
-
Which choice is NOT a property of Dictionary Object?
A. Key() B. CompareMode C. Item () D. Exists () E. Count
-
Which will NOT set the scope of an Active Server Component?
A. Setting the [component name].scope property. B. Using the Server.CreateObject method. C. Placing it in the Session or Application OnStart event handler. D. Instantiating the component in the global.asa file. E. Using the <OBJECT> tag.
ASP Interview Questions
Ans