PHP module 01 - Introduction to PHP and Web Development Basics

MCQ Paper

1. What does PHP stand for?





2. Which of the following is the correct way to start a PHP script?





3. PHP files have the default file extension:





4. Which of the following statements prints "Hello, World!" in PHP?





5. Which of the following is a valid variable name in PHP?





6. What is the correct way to comment in PHP?





7. Which function is used to display content on the web page in PHP?





8. PHP is a ____ language.





9. Which PHP function is used to get the type of a variable?





10. Which of the following data types does PHP support?





11. What will be the output of echo 5 + "10";?





12. Which function is used to check if a variable is set in PHP?





13. How do you declare a constant in PHP?





14. What is the default data type of a variable in PHP?





15. Which function is used to convert a string to lowercase in PHP?





16. What will echo strlen("PHP Course"); output?





17. What is the output of echo (true && false);?





18. PHP scripts are executed on:





19. Which PHP function is used to get the current date?





20. What will echo 10 / 2; output?





Wait for 20 seconds...

Post a Comment

Previous Post Next Post