ASP  «Prev  Next»

User Sessions and Session Variables - Quiz

Each question is worth one point. Select the best answer or answers for each question.
 
1. What does "HTTP is a stateless protocol" mean?
Please select the best answer.
  A. No information about a user or session is stored as part of an HTTP connection.
  B. No information about a user or session can be stored on a server.
  C. No information about a user or session can be stored on the user's computer
  D. No information about a user or session can be stored on a server or the user's computer.

2. You need to run a routine whenever a user connects to your site. Where would you put the code to be run?
Please select the best answer.
  A. In a cookie.
  B. In a session variable.
  C. In the Global.asa file.
  D. In a schedule file.

3. Which of the following code snippets represents the proper HTTP construction of a URL with spaces?
Please select the best answer.
  A. http://www.dispersednet.com/product.asp?shirt=U_of_C_Tshirt
  B. http://www.dispersednet.com/product.asp?shirt=U+of+C+Tshirt
  C. http://www.dispersednet.com/product.asp?shirt=U%20of%20C%20Tshirt
  D. http://www.dispersednet.com/product.asp?shirt=U&of&C&Tshirt

4. You want to assign a unique identifier to every site visitor. Which of the following values is the best choice for that value?
Please select the best answer.
  A. The user's SessionID value.
  B. A value generated in the Session_OnStart routine.
  C. A value supplied by the user.
  D. The time the user's session began.

5. What is the default value for the Session.Timeout property?
Please select the best answer.
  A. 15 minutes.
  B. 20 minutes.
  C. 30 minutes.
  D. No default value.


Your score is 0.0