Home > PHP & Programming > Quizzes > Practice Test: Control Structures and Loops in PHP
Practice Test: Control Structures and Loops in PHP
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 61% Most missed: “in PHP ,A variable starts with the $ sign, followed by the name of the variable”
Practice Test: Control Structures and Loops in PHP
Time left 00:00
25 Questions

1. PHP is compatible with almost all servers used today (Apache, IIS, etc.)
2. _______ is the assignment operator it is used to to assign the value of right hand side to left hand side.
3. In PHP, we have the following loop types:
4. ______ loops through a block of code as long as the specified condition is true
5. PHP runs on various platforms (Windows, Linux, Unix, Mac OS X, etc.)
6. PHP is an acronym for:
7. PHP is a server scripting language, and a powerful tool for making _____and ________Web pages.
8. In PHP, ______in this loop we check show true statement first then check the condition :
9. The default file extension for PHP files is _________
10. in PHP ,A variable starts with the $ sign, followed by the name of the variable
11. A ________ script can be placed anywhere in the document.
12. in PHP , Variable names are case-sensitive ($age and $AGE are two different
13. __________ is used to show the out put …or give message..same as printf in c language…
14. An array is a special variable, which can hold more than one value at a time with different data types.
15. the _________ statement is used to check the action on each step and perform different actions based on different conditions
16. PHP supports the following data types:
17. _________this operator is used to concatenate the two world or with variable.
18. Php is a___________, it is used to create the object…
19. in php var key word is used to declare the array...
20. Use the ____ statement to select one of many blocks of code to be executed.
21. PHP code is executed on the server, and the result is returned to the browser as plain html
22. PHP is compatible with almost all servers used today (Apache, IIS, etc.)
23. PHP does not supports the following data types:
24. _____ loops through a block of code a specified number of times
25. The _______keyword is used to access a global variable from within a function.