PHP MCQ Quiz & Online Test

Take PHP Quiz To test your Knowledge 

Below are few PHP MCQ test that checks your basic knowledge of PHP Framework. This PHP Test contains around 12 questions of multiple choice type with 4 options. You have to select the right answer to a question. You can see the correct answer by clicking view answer link.

Also, Read Best PHP interview questions.

1. PHP is a ________________________

  • Loosely typed language
  • Tightly typed language
  • Server typed language
  • Client typed language
View Answer

2. _______________ is cocatenation operator in PHP ?

  • . (dot)
  • + (plus)
  • ^
  • -
View Answer

3. What does date_sunset() function returns

  • Returns the date of sunset for a given day / location
  • Returns the time of sunset for a given day / location
View Answer

4. Which of following is used to add multiple line comments in PHP ?

  • //
  • /* */
  • {{ }}
  • {/ \}
View Answer

5. PHP is a case sensitive

  • True
  • False

6. Which sign is used to access variable of variable in PHP?

  • $
  • $$
  • #@
  • $|
View Answer

7. Which of following is not a Superglobals in PHP?

  • $_SERVER
  • $_ENV
  • $_FILES
  • $_PUT
View Answer

8. Which function is used to get ASCII value of a character in PHP ?

  • asc()
  • chr( )
  • ascii()
  • val( )
View Answer

9. ______ is used to unset a variable in PHP ?

  • unset()
  • delete()
  • unlink()
  • delete();
View Answer

10. How many error levels are available in PHP ?

  • 20
  • 4
  • 19
  • 16
View Answer

11. In which version of PHP E_STRICT Error level is introduced ?

  • PHP 4
  • PHP 5
  • PHP 5.2
  • PHP 7
View Answer

12. Which function in PHP is used to get the length of string variable?

  • count()
  • strcount
  • strlen
  • len
View Answer

Write For Us.

Contribute the Community.