PHP QUIZ

Instructions:

  • Total Number of Questions: 10
  • Score out of: 10
  • Time alloted: 30 seconds per question, total 30 minutes
  • Each question carry 1 mark
  • No negtive marking

NOTE:

Select one option as answer, for per question and then Click 'Submit and Next' button for next question

Click the 'Result' button after 10th question to get you score.

Do not refresh the Page.

1. Which of the following is not a valid directive for declare construct?

2. Which of the following is used to declare a constant?

3. If $a = 12 what will be returned when ($a == 12) ? 5 : 1 is executed?

4. PHP 5 support exceptions

5. Which one of the following is not an encryption method in PHP?

6. Which of the following method is used to tweak an object’s cloning behavior?

7. What is the use of $_SESSION[] in PHP?

8. Which of the following is used to validate and sanitize external input?

9. What is the correct way to destroy php session?

10. Which PHP statement will give output as $x on the screen?

Close