ASP.NET Web Forms and Session Management
Questions about ASP.NET web forms lifecycle, session management, state, and caching
Questions
Question 1 Multiple Choice (Single Answer)
Where does all commonly used codes, constants are mentioned in application?
- TRAQCommon
- TRAQModel
- TRAQInterface
- TRAQDatabase
Question 2 Multiple Choice (Single Answer)
How do we reuse an entity which is already fetched from database at some other Page?
- Calling Database again to get Entity
- Caching it and fetching it back.
- Storing the data in in-memory tables
- All of the Above.
Question 3 Multiple Choice (Single Answer)
Which Ajax tool is extensively used on all pages?
- UpdatePanel
- iFrame Control
- Ajax Calendar Control
- Progress Bar
Question 4 Multiple Choice (Single Answer)
What is a session?
- Session is a cookie
- Session is basically is the duration between user login and logout time
- Session is a server side variable
- Session usually is non persistent cookie
Question 5 Multiple Choice (Single Answer)
How does Asp.Net store sessionId's by default?
- Stores in Cookies
- Stores in Database
- Stores in a Global Variable
- Stores in Cache
Question 6 Multiple Choice (Single Answer)
Is event in web form are processed before the page-load?
- Yes
- No
- Both
- None of these
Question 7 Multiple Choice (Single Answer)
How can you kill a user session?
- Session.Clear
- Session.delete
- Session.terminate
- Session.abondon
Question 8 Multiple Choice (Single Answer)
Can turn off session state in web.config file?
- Yes
- No
- Can't say
- None of there
Question 9 Multiple Choice (Single Answer)
- Can you change the reference of the final object
- No the reference cannot be change
- Using object class
- Using interface
- Using thread