Sail E0 Webinar

MCQs

Total Questions : 70 | Page 4 of 7 pages
Question 31. Which one of the following is the very first task executed by a session enabled page?
  1.    Delete the previous session
  2.    Start a new session
  3.    Check whether a valid session exists
  4.    Handle the session
 Discuss Question
Answer: Option C. -> Check whether a valid session exists
Question 32. Which directive determines how the session information will be stored?
  1.    save_data
  2.    session.save
  3.    session.save_data
  4.    session.save_handler
 Discuss Question
Answer: Option D. -> session.save_handler
Question 33. How many ways can a session data be stored?
  1.    3
  2.    4
  3.    5
  4.    6
 Discuss Question
Answer: Option B. -> 4
Question 34. Which one of the following is the default PHP session name?
  1.    PHPSESSID
  2.    PHPSESID
  3.    PHPSESSIONID
  4.    PHPIDSESS
 Discuss Question
Answer: Option A. -> PHPSESSID
Question 35. If session.use_cookie is set to 0, this results in use of.
  1.    Session
  2.    Cookie
  3.    URL rewriting
  4.    Nothing happens
 Discuss Question
Answer: Option C. -> URL rewriting
Question 36. If the directive session.cookie_lifetime is set to 3600, the cookie will live until.
  1.    3600 sec
  2.    3600 min
  3.    3600 hrs
  4.    the browser is restarted
 Discuss Question
Answer: Option A. -> 3600 sec
Question 37. Neglecting to set which of the following cookie will result in the cookie’s domain being set to the host name of the server which generated it.
  1.    session.domain
  2.    session.path
  3.    session.cookie_path
  4.    session.cookie_domain
 Discuss Question
Answer: Option D. -> session.cookie_domain
Question 38. What is the default number of seconds that cached session pages are made available before the new pages are created?
  1.    360
  2.    180
  3.    3600
  4.    1800
 Discuss Question
Answer: Option B. -> 180
Question 39. What is the default time(in seconds) for which session data is considered valid?
  1.    1800
  2.    3600
  3.    1440
  4.    1540
 Discuss Question
Answer: Option C. -> 1440
Question 40. Which one of the following function is used to start a session?
  1.    start_session()
  2.    session_start()
  3.    session_begin()
  4.    begin_session()
 Discuss Question
Answer: Option B. -> session_start()

Latest Videos

Latest Test Papers