Click on the correct response for each question below.
 |
1 |  |  Which of the following can done using ASP scripts? |
|  | A) | Edit, change, or add content to a Web page on the fly |
|  | B) | Customize a Web Page to make it more useful for individual users.Machine Language |
|  | C) | Respond to user queries or data submitted through HTML forms. |
|  | D) | Access any data or database and return results to the browser. |
|  | E) | All of the above |
 |
 |
2 |  |  An Active Server Page differs from an HTML page is that __________. |
|  | A) | For Internet, HTML pages do not need any web server, whereas the ASP pages need a Web server. |
|  | B) | HTML pages can contain client-side JavaScript, but the ASP pages cannot contain client-side JavaScript, because ASP is strictly based on server-side processing. |
|  | C) | HTML files cannot contain XML, whereas ASP file is mostly XML. |
|  | D) | When a browser requests an ASP page, it is the web server that processes the request and returns the results to the web browser as plain HTML |
|  | E) | HTML cannot employ function calls, whereas ASP is mostly based on function calls to ActiveX component library |
 |
 |
3 |  |  In ASP, the session variables can be used to: |
|  | A) | store data and information for a particular page. |
|  | B) | store data and information for a particular user and for a particular page. |
|  | C) | store information about a single user and these are also available to all pages in an application. |
|  | D) | all of the above. |
|  | E) | none of the above. |
 |
 |
4 |  |  Suppose that a form has two textboxes named txtH and txtR, and a submit button. Further, suppose that the <form> tag has been declared as
<form name='frmPayroll' Action = 'showWage.asp' Method = 'Post'>.
Finally, suppose that the user has entered 40 in txtHours, 5.75 in txtRate, and clicked the submit button. In this scenario, which of following URLs would be sent by the browser? Please assume that the server name is HRM and the virtual directory alias (name) is Payroll. |
|  | A) | http://www.HRM.com/Payroll/showWage.asp?txtH=40&txtR=5.75 |
|  | B) | http://www.HRM.com/Payroll/showWage.asp?txtH=40;txtR=5.75 |
|  | C) | http://www.HRM.com/Payroll/showWage.asp |
|  | D) | http://www.HRM.com/Payroll/showWage.asp?txtH=40AndtR=5.75 |
|  | E) | None of the above |
 |
 |
5 |  |  If a cookie contains a collection of values, we say that the cookie _____________. |
|  | A) | is multi-valued |
|  | B) | is an array |
|  | C) | is a composite cookie |
|  | D) | has Keys |
|  | E) | is a compound cookie |
 |
 |
6 |  |  Which of the following statements is true of a Session object (variable)? |
|  | A) | It can store information that is available to every page in a site that the user is navigating, but it is not available to other users who are also navigating through the pages of the same site. |
|  | B) | It can store information that is available to all users for all pages of a given site. |
|  | C) | It can be used to store the password of a user in encrypted form, and no page of the site can alter it. |
|  | D) | It can store information that is available to the page that created it, and it is not available to any other page of the site. |
|  | E) | None of the above |
 |
 |
7 |  |  The Application object is similar to the Session object except that: |
|  | A) | it stores public data whereas a session object stores private data |
|  | B) | it stores global information whereas a session object stores information about an individual user. |
|  | C) | there may exist many instances of an application object, whereas there can be only one instance of a session object for each user. |
|  | D) | Only the system manager can alter the values stored in an application object, whereas, any asp page can alter the values of a session object. |
|  | E) | None of the above |
 |
 |
8 |  |  It is possible to insert the contents of another file into an ASP page __________________. |
|  | A) | by using the #INCLUDE directive. |
|  | B) | by using the #INSERT directive. |
|  | C) | by setting the ExternFile attribute of the Script tag to the appropriate name and path of the file to be inserted. |
|  | D) | by using the Server.GetFile(filePath/filename) method. |
|  | E) | None of the above |
 |
 |
9 |  |  Which of the following pairs of keywords that is allowed when we insert the content of another file into an ASP file? |
|  | A) | virtual or file. |
|  | B) | physical or absolute |
|  | C) | relative or positional. |
|  | D) | static or dynamic. |
|  | E) | source or path |
 |
 |
10 |  |  Which of the following has the "HasKeys" property that becomes handy when it has multiple values? |
|  | A) | Cookie |
|  | B) | Array |
|  | C) | Database |
|  | D) | Password |
|  | E) | EncryptedPassword |
 |