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. Which method is used to link files?

 
 
 
 

2. We can run PHP directly in the browser?

 
 

3. PHP can only be written with HTML?

 
 

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

 
 
 
 

5. What is fullform of PHP?

 
 
 
 

6. Get and Post method are same in php?

 
 

7. How to declare variable in PHP?

 
 
 
 

8. We can write PHP within the html code?

 
 

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

 
 
 
 

10. Which of the following is not valid operator?

 
 
 
 

11. What will be the output of below code?

$var = ‘false’;

if ($var) {

echo ‘True’;

} else {

echo ‘False’;

}

 
 

12. How to define a constant in PHP?

 
 
 
 

13. What is the difference between echo and print?

 
 
 
 

14. PHP is a server side scripting language?

 
 

15. Include and Include_once are not similar?

 
 

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

 
 
 
 

17. PHP is an open source platform?

 
 

18. We can view the PHP code in browser?

 
 

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

 
 

20. How do we create array in PHP?

 
 
 
 

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