-
How are sessions maintained?
A. The browser sends a cookie to the server with each request. B. The browser sends a Querystring variable to the server with each request. C. The browser sends a hidden Form variable to the server with each request. D. The browser sends a long variable to the server in the BODY of each request. E. None of the above.
-
When does the application OnEnd event handler fire?
A. After every request for an application document, since web servers are stateless servers. B. As soon as there are no open connections to any application document. C. When the web server is stopped in an orderly fashion. D. Twenty minutes after the last request for a document in the application. E. When there are no application requests for the amount of time defined by the SessionTimeout variable....
-
How long is a SessionID guaranteed to be unique?
A. It is unique for the web server, whether it is restarted or not. B. Only until the web server is restarted. C. It is like a GUID in that it is for any web server at any time. D. Only until the session expires, then it can be reissued to another client. E. It is unique per client. A client cannot have two sessions with the same SessionID
-
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.
-
ASP.NET Session Timeout
How to set Session Timeout upto infinite, so it should never get expired, In ASP not in ASP.NET.
-
Following is the code Server.MapPath (".") consider the path is C:InetpubWWWRootMATDefault.asp. What will be the output
A. C:InetPUb B. C:InetPUbWWWroot C. C:InetPUbwwwrootMAT D. Error
-
Name the ASP Objects?
• Request Object • Response Object • Server Object • Session Object • Application Object
-
-
Name some of the ASP components?
• Ad Rotator component – a way to manage advertisements on the web site. • Content Linker component – a technique to direct users through a set of pages on a web site by creating a list of URLs and description of the next and previous pages. • Browser Capabilities component – allows to customize the page to the ability of the browser viewing it. • Database Access component – allows to access data from...
-
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 is the command to display characters to the HTML page?
Response.Write
-
What is the function of Buffer in Response Object?
Buffer controls the HTML output stream manually.
-
What is the program ID (ProgID) for ActiveX Data Objects in 2-tier and 3-tier database applications?
A. ADO B. RDODB C. ADODB D. RDS E. OLEDB
-
Which of the following are Server Object methods ( Choose Two)
A. HTMLEncode,MapPath B. URLEncode,ScriptTimeout C. URLEncode,CreateObject D. ScriptTimeout,Abandon
-
-
Application Variable
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... -
How will you set the values for cookies?
<% Response.Cookies("variable name ")="value" %>.
-
What is a session?
A user accessing an application is known as a session.
-
What is Session Object?
It stores information about a User’s session. Gives a notification when a user session begins or ends.
-
What should be used in order to determine if the cookie "FavoriteFlavors" in the request object contains more than one entry?
A. Request.Cookies("FavoriteFlavors").HasItems B. Request.Cookies("FavoriteFlavors").Collection.Count C. Request.Cookies("FavoriteFlavors").Dictionary D. Request.Cookies("FavoriteFlavors").HasKeys E. Request.Cookies("FavoriteFlavors").Count
ASP Interview Questions
Ans