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