19 Years of Excellence 99% Hiring Rate

PHP Basic Quiz

A PHP Quiz for beginners to check basic PHP knowledge.
admec rating   4.5/5 (Rated by 575+ Students on Google)

This is a PHP basic quiz of 20 questions. This is the best PHP quiz for beginners those are learning PHP and want to check their level of PHP knowledge achieved.

Please provide your email address to send your quiz results.

Please enter your email:

1. We can write PHP within the html code?

 
 

2. PHP is a server side scripting language?

 
 

3. How do we create array in PHP?

 
 
 
 

4. Include and Include_once are not similar?

 
 

5. What will be the output of below code?

$var = ‘false’;

if ($var) {

echo ‘True’;

} else {

echo ‘False’;

}

 
 

6. Get and Post method are same in php?

 
 

7. Which method is used to link files?

 
 
 
 

8. PHP is an open source platform?

 
 

9. How to declare variable in PHP?

 
 
 
 

10. What is fullform of PHP?

 
 
 
 

11. Which of the following are the correct way to write comments in PHP?

 
 
 
 

12. How to define a constant in PHP?

 
 
 
 

13. We can view the PHP code in browser?

 
 

14. PHP can only be written with HTML?

 
 

15. Which method is used to print string on document?

 
 
 
 

16. We can run PHP directly in the browser?

 
 

17. Which of the following is not valid operator?

 
 
 
 

18. Which function is used to Strip whitespace (or other characters) from the beginning and end of a string?

 
 
 
 

19. We can include(“header.php”) file two times in a file named index.php?

 
 

20. What is the difference between echo and print?

 
 
 
 

CHECKOUT ALL QUIZZES

Click to check our all the quizzes on various topics.

All Quizzes

Visit Quiz Category

Go back to your quiz category to explore more quizzes

Quiz Category

Quizzes Designed by Experts

These quizzes are designed by highly experienced professionals.

Get Results on Your Email

Receive your quiz results on your email instantly.

Kickstart your career and get certified with our PHP Course

Similar Quizzes

Checkout more similar quizzes to test your knowledge with ADMEC Multimedia Institute. You can checkout our courses too if in case interested in joining any.

java courses rohini delhi

Core Java Quiz

Talk to Us