Free Zend-Technologies 200-550 Practice Test & Real Exam Questions
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
Which string will be returned by the following function call?
$test = '/etc/conf.d/wireless';
substr($test, strrpos($test, '/')); // note that strrpos() is being called, and not strpos()
$test = '/etc/conf.d/wireless';
substr($test, strrpos($test, '/')); // note that strrpos() is being called, and not strpos()
Correct Answer: E
Vote an answer
What parsing methodology is utilized by the SimpleXML extension?
Correct Answer: E
Vote an answer
What is the output of the following code?
echo '1' . (print '2') + 3;
echo '1' . (print '2') + 3;
Correct Answer: E
Vote an answer
What super-global should be used to access information about uploaded files via a POST request?
Correct Answer: E
Vote an answer
Which interfaces could class C implement in order to allow each statement in the following code to work? (Choose 2) $obj = new C();
foreach ($obj as $x => $y) { echo $x, $y; }
foreach ($obj as $x => $y) { echo $x, $y; }
Correct Answer: B,D
Vote an answer
Which of the following are NOT acceptable ways to create a secure password hash in PHP? (Choose 2)
Correct Answer: A,B
Vote an answer
CORRECT TEXT
Which PHP function sets a cookie whose value does not get URL encoded when sending it to the browser?
Which PHP function sets a cookie whose value does not get URL encoded when sending it to the browser?
Correct Answer:
setrawcookie, setrawcookie()
Which of the following is used to find all PHP files under a certain directory?
Correct Answer: C
Vote an answer
How many elements does the array $pieces contain after the following piece of code has been executed?
$pieces = explode("/", "///");
$pieces = explode("/", "///");
Correct Answer: A
Vote an answer
