Home > Articles > Programming > Windows Programming

  • Print
  • + Share This
This chapter is from the book


The workshop provides quiz questions to help you solidify your understanding of the material covered today as well as exercises to give you experience using what you have learned. Try to understand the quiz and exercise before continuing to tomorrow's lesson. Answers are provided in Appendix A, "Answers to Quizzes and Exercises."


  1. What is a postback, and when is it used in ASP.Net Web forms?

  2. What are the five different ways of handling state in ASP.Net Web forms?

  3. Where are cookies stored, and what kinds of data can they contain?

  4. Why would you store an object in Application state instead of session state?

  5. How do you change the timeout for a Session object?

  6. What events does the HttpSession class support?

  7. What file do you use to handle Session and Application events?

  8. What tag do you use to declare an object in the global.asax file?

  9. What file do you use to configure a Web application?

  10. What method do the .NET collection classes use to return thread-safe versions of themselves?


  1. Create a new Web service using Visual Studio. What files did Visual Studio create that we didn't in today's examples?

  2. Add a method called Clear to the MyClass.cs application. How can you ensure that the method is thread-safe?

  3. Create a two-page Web application that allows a user to log on and then select her favorite football team. Save the user's response in a cookie so that subsequent uses of the application will remember the user's preference.

  • + Share This
  • 🔖 Save To Your Account