ASP   «Prev  Next»

ASP Response and Request Objects - Quiz

Each question is worth one point. Select the best answer for each question.
 
1. When a browser first contacts a Web server, each computer identifies itself to the other and exchanges information about the file types, features, and languages each supports. That information is sent in which of the following objects?
Please select the best answer.
  A. A cookie.
  B. A querystring.
  C. An HTTP header.
  D. An HTML header.

2. If you want to read user information appended to a URL, which of the Response object's methods do you use?
Please select the best answer.
  A. Cookies.
  B. Query.
  C. Form.
  D. Server variables.

3. You want to create cookies with multiple values; you can do that by setting multiple instances of what element in the Request.Cookies statement?
Please select the best answer.
  A. Name.
  B. Field.
  C. Index.
  D. Key.

4. When a user opens a particular page, you want to send that user to another page using the Response.Redirect method. What happens when you put a Response.Redirect statement above the opening HTML tag in an ASP document?
Please select the best answer.
  A. An error occurs, indicating the header was already sent.
  B. An error occurs, indicating the header wasn't sent properly.
  C. An error occurs, indicating the server tried to send the header twice.
  D. The redirection occurs.


5. You need to set the Size attribute of a multi-valued cookie named Preferences on a user's computer. Which of the following code snippets would you use for that?
Please select the best answer.
  A. Response.Cookies("Preferences")("Size")="Large"
  B. Response.Cookies("Size")("Preferences")="Large"
  C. Response.Cookies("Preferences.Size")="Large"
  D. Response.Cookies("Preferences","Size")="Large"


Your score is 0.0