ASP.NET Web Forms and Session Management

Questions about ASP.NET web forms lifecycle, session management, state, and caching

9 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Where does all commonly used codes, constants are mentioned in application?

  1. TRAQCommon
  2. TRAQModel
  3. TRAQInterface
  4. TRAQDatabase
Question 2 Multiple Choice (Single Answer)

How do we reuse an entity which is already fetched from database at some other Page?

  1. Calling Database again to get Entity
  2. Caching it and fetching it back.
  3. Storing the data in in-memory tables
  4. All of the Above.
Question 3 Multiple Choice (Single Answer)

Which Ajax tool is extensively used on all pages?

  1. UpdatePanel
  2. iFrame Control
  3. Ajax Calendar Control
  4. Progress Bar
Question 4 Multiple Choice (Single Answer)

What is a session?

  1. Session is a cookie
  2. Session is basically is the duration between user login and logout time
  3. Session is a server side variable
  4. Session usually is non persistent cookie
Question 5 Multiple Choice (Single Answer)

How does Asp.Net store sessionId's by default?

  1. Stores in Cookies
  2. Stores in Database
  3. Stores in a Global Variable
  4. Stores in Cache
Question 6 Multiple Choice (Single Answer)

Is event in web form are processed before the page-load?

  1. Yes
  2. No
  3. Both
  4. None of these
Question 7 Multiple Choice (Single Answer)

How can you kill a user session?

  1. Session.Clear
  2. Session.delete
  3. Session.terminate
  4. Session.abondon
Question 8 Multiple Choice (Single Answer)

Can turn off session state in web.config file?

  1. Yes
  2. No
  3. Can't say
  4. None of there
Question 9 Multiple Choice (Single Answer)
  1. Can you change the reference of the final object
  1. No the reference cannot be change
  2. Using object class
  3. Using interface
  4. Using thread