Quiz 4
1. How do you access a global variable inside a function?
2. Which function is used to define a constant?
3. Which operator is used for 'identical' (value and type)?
4. What is the correct way to write 'else if' in PHP?
5. Which statement is used to select one of many blocks of code to be executed?
6. How do you generate a random number in PHP?
7. Which superglobal variable holds headers, paths, and script locations?
8. Which function rounds a float to the nearest integer?
9. Which function displays the data type and value of a variable?
10. What is the difference between single and double quotes?
Previous Next