PHP Certification Quiz

Test your knowledge to earn your official course certificate!

1. Which superglobal variable holds information about headers, paths, and script locations?
2. All variables in PHP start with which symbol?
3. Which variable is used to collect form data sent with both the GET and POST methods?
4. What is the correct way to create a function in PHP?
5. In PHP you can use both single quotes and double quotes for strings:
6. Which function is used to output the data type and value of a variable?
7. Which operator is used to concatenate strings in PHP?
8. What is the correct way to include the file "time.inc"?
9. How do you write "Hello World" in PHP?
10. Which function is used to redirect a user to another page?
11. What is the correct way to open the file "time.txt" as readable?
12. What does PHP stand for?
13. Include files must have the file extension ".inc":
14. When using the POST method, variables are displayed in the URL:
15. The PHP syntax is most similar to:
16. How do you get information from a form that is submitted using the "get" method?
17. How do you add a single-line comment in PHP?
18. Which is the correct way to define an array in PHP?
19. What is the correct way to end a PHP statement?
20. PHP server scripts are surrounded by delimiters, which?