ASP interview questions
537 questions. Tap “Show answer” to check yourself.
-
Which choice is NOT a property of Dictionary Object? A. Key() B. CompareMode C. Item () D. Exists () E. Count
-
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 a .ASP file?
-
How to Display images using Response object? A. Contenttype=Application/Brush B. Contenttype=Image/JPG C. Contenttype=Application/paint D. Contenttype=Image/WMF
-
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
-
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.
-
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 collection. E. It locks other clients from reading the Contents collection.
-
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.
-
What are the advantages of Cookies over Session Object?
-
What is the difference between Querystring collection and Form collection?
- Advertisement
-
What is the difference between Cookies collection and Form/Querystring collection?
-
What is a Virtual Directory?
-
What is the difference between client-side script and server-side script?
-
How does VaryByCustom work?
-
Give an example of how using an HttpHandler could simplify an existing design that serves Check Images from an .aspx page.
-
Describe ways to present an arbitrary endpoint (URL) and route requests to that endpoint to ASP.NET.
-
Juxtapose the HTTP verbs GET and POST. What is HEAD?
-
How does if-not-modified-since work? How can it be programmatically implemented with ASP.NET?
-
Describe how a browser-based Form POST becomes a Server-Side event like Button1_OnClick
-
Tell few steps for optimizing (for speed and resources) ASP page/application ?
-
Tell few programming diffrence between ADO and DAO programming. What is state?
-
Name at least two methods of response object other than Transfer.
- Advertisement
-
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 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
-
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 application by client
-
What does Internet Information Server (IIS) assume to be the default language for Active Server Pages? A. Jscript B. JavaScript C. JAVA D. VBScript E. ECMAScript
-
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.