-
-
The FileSystemObject provides an object interface to drives, directories, and files for which of the following?
A. Any local or mapped drive on either the server or the client. B. Only files and subdirectories in the web site’s home directory. C. Any local physical drive or mapped drive on the web server. D. Any file system physically located on the web server. E. The client’s computer.
-
Which choice is NOT a property of Dictionary Object?
A. Key() B. CompareMode C. Item () D. Exists () E. Count
-
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
-
-
-
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 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.
-
What are the properties used to control the expiration of the page?
• Expires – specifies the number of minutes before a page cached on a browser expires. • ExpiresAbsolute – sets the date and time at which a page cached on a browser expires.
-
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.
-
What is a session?
A user accessing an application is known as a session.
-
What are the collections of Session Object?
• Contents collection – contains all the variables established for a session without using the <OBJECT> tag. • Static collection – contains all the objects created with the <OBJECT> tag within session scope.
-
What are the properties of Session Object?
• SessionID – returns the session identification number for each user. • Timeout – sets the timeout period assigned to the Session object for any application, in minutes. • CodePage – determines the code page that will be used to display content. • LCID – a locale identifier, which determines time zone and language, rules for the system.
-
What are Scripting Objects?
Objects that can enhance the application are known as the Scripting Objects.
-
What are the ASP Scripting Objects?
The Dictionary object, the FileSystemObject object, TextStream object.
-
What is a FileSystemObject object?
It provides access to the physical file system of the web server. It gets and manipulates information about all drives in a server, folders and sub-folders on a drive and files inside a folder.
ASP Interview Questions
Ans