Working with Cookies and Sessions Multiple Choice Questions 1 PDF Download

Learn working with cookies and sessions multiple choice questions (MCQs), php test 1 for online course prep exams. Practice how sessions work in php MCQs questions and answers on how sessions work in php, home grown alternatives, simple session code, cookies for online php server course test.

Free working with cookies and sessions quiz online, study guide has multiple choice question on when a session ia active, php provides a special constant called with options cid, sid, did and none of them to test online e-learning skills for viva exam prep and job's interview questions with answers key. Study to learn how sessions work in php quiz questions with online learning MCQs for competitive exam preparation test.

MCQ on Working with Cookies and Sessions Quiz PDF Download Test 1

MCQ. When a session ia active, PHP provides a special constant called

  1. SID
  2. CID
  3. DID
  4. None of them

A

MCQ. If you want PHP to transparently handle passing session variables for you when cookies are not available, you have to configure

  1. enable-trans-sid option
  2. enable-track-vars option
  3. disable-tans-vars option
  4. Both A and B

D

MCQ. A special kind of a file that is located in filesystem of your browser and can be read and write from web server, is calls as

  1. Session
  2. Cookies
  3. Script
  4. All of them

C

MCQ. Using $_SESSION, $HTTP_SESSION_VARS functions can be dangerous, so that you can use

  1. session_destroy ( )
  2. session_unset ( )
  3. set ( )
  4. None of them

B

MCQ. In PHP, cookies are set by using the

  1. setcookie ( ) function
  2. set ( ) function
  3. cookie_set ( ) function
  4. None of them

A