PHP QUIZ
1 .
How to start session in php?

Correct Answer : Option (A)

session_start()
  Show Answer
2 .
Which of the following is used to check that a cookie is set or not ?

Correct Answer : Option (B)

isset() function
  Show Answer
3 .
How do you create a cookie in PHP?

Correct Answer : Option (A)

setcookie()
  Show Answer
4 .
In PHP which of the following is not a session function ?

Correct Answer : Option (D)

session_pw
  Show Answer
5 .
In PHP the function setcookie( ) is used to ?

Correct Answer : Option (B)

Store data in cookie variable 
  Show Answer
6 .
What is the purpose of $_SESSION[]?

Correct Answer : Option (A)

Used to store variables of the current session
  Show Answer
7 .
What is the default execution time set in set_time_limit()?

Correct Answer : Option (B)

30 secs
  Show Answer
8 .
Which statement about the code below is correct?
<?php 
  class A {}
  class B {}
  class C extends A, B {}
?>‚Äč

Correct Answer : Option (C)

class C can not extend both A and B
  Show Answer
9 .
Which of the following is true about php.ini file ?

Correct Answer : Option (C)

All of the above
  Show Answer
10 .
Which function returns an array consisting of associative key/value pairs ?

Correct Answer : Option (A)

array_count_values()
  Show Answer