Question 6
Which of the following are valid identifiers? (Choose 3)
- function 4You() { }
- function _4You() { }
- function object() { }
- $1 = "Hello";
- $_1 = "Hello World";
Question 7
What super-global should be used to access information about uploaded files via a POST request?
- $_SERVER
- $_ENV
- $_POST
- $_FILES
- $_GET
Question 8
What is the difference between "print" and "echo"?
- There is no difference.
- Print has a return value, echo does not
- Echo has a return value, print does not
- Print buffers the output, while echo does not
- None of the above
Question 9
What is the output of the following code? echo "1" + 2 * "0x02";
- 1
- 3
- 5
- 20
- 7
Question 10
What is the result of the following bitwise operation in PHP? 1 ^ 2
- 1
- 3
- 2
- 4
- -1