Page 245 - DCAP408_WEB_PROGRAMMING
P. 245
Unit 9: ASP Objects
9.9 Review Questions Notes
1. The information in ASP built-in objects can also be obtained in a COM component or an
ISAPI application. Explain
2. What three things make up an object? What built-in object would you use to read a client’s
cookies?
3. Suppose that you want an object to represent a desk lamp. What properties and methods
would you need? Assume that the lamp has three settings: off, dim, and full power. Design
the object. (No coding required)
4. Suppose that you want an object to represent a microwave. What properties, methods, and
events would you need? It can have variable power and time settings and should beep
when the food is done. Design the microwave. (No coding required).
5. Examine that why a block of memory is allocated for that particular user’s session variables
on the Web server?
6. The preprocessor stops searching as soon as it finds a file with the given name. Analyze
7. Which built-in ASP object would you use to check if the user is still connected to the
server? Explain with program
8. The ASP built-in objects are organized by the type of information they contain. What is
meant by this statement?
9. Briefly make the distinction between Application object and Session Object of ASP.
10. Why a common pitfall among developers wants to place objects in the Application? Give
reasons.
Answers: Self Assessment
1. template 2. property names
3. object 4. values
5. HTMLEncode 6. Script Timeout
7. GetLastError() 8. user session
9. Session object 10. user-by-user
11. ASP files 12. Virtual
13. Application. Static Objects Collection 14. ASP
15. nested
9.10 Further Readings
Books A Keyton Weissinger, ASP in a Nutshell, 2nd Edition [ILLUSTRATED]
(Paperback), O’Reilly Media; 2 edition (January 1, 2000)
Bob Reselman, Active Server Pages 3.0 by Example, Que Publishing
David Buser, Chris Ullman, Brian Francis, Dave Sussman, Beginning Active
Server Pages 3.0, John Wiley & Sons
LOVELY PROFESSIONAL UNIVERSITY 239