Zend-Technologies Zend Certified PHP Engineer - 200-550 Exam Practice Test
What can prevent PHP from being able to open a file on the hard drive (Choose 2)?
Correct Answer: A,B
Vote an answer
Which of the following expressions will evaluate to a random value from an array below?
$array = array("Sue","Mary","John","Anna");
$array = array("Sue","Mary","John","Anna");
Correct Answer: D
Vote an answer
An object can be counted with count() and sizeof() if it...
Correct Answer: D
Vote an answer
Your application uses PHP to accept and process file uploads. It fails to upload a file that is 5 MB in size, although upload_max_filesize is set to "10M". Which of the following configurations could be responsible for this outcome? (Choose 2)
Correct Answer: B,D
Vote an answer
CORRECT TEXT
What is the output of the following code?
function increment ($val) {
$_GET['m'] = (int) $_GET['m'] + 1; }
$_GET['m'] = 1;
echo $_GET['m'];
What is the output of the following code?
function increment ($val) {
$_GET['m'] = (int) $_GET['m'] + 1; }
$_GET['m'] = 1;
echo $_GET['m'];
Correct Answer:
1
Before the headers are sent, how can you remove a previously set header?
Correct Answer: A
Vote an answer
In order to create an object storage where each object would be stored only once, you may use which of the following? (Choose 2)
Correct Answer: B,C
Vote an answer
CORRECT TEXT
Please provide the value of the $code variable in the following statement to set an HTTP status code that signifies that the requested resource was not found.
http_response_code($code);
Please provide the value of the $code variable in the following statement to set an HTTP status code that signifies that the requested resource was not found.
http_response_code($code);
Correct Answer:
404, 404 Not Found