How many elements does the array $pieces contain after the following piece of code has been executed? $pieces = explode("/", "///");
A. 0
B. 3
C. 4
D. 5
What will the $array array contain at the end of this script?
function modifyArray (and$array)
{
foreach ($array as and$value)
{
$value = $value + 1;
}
$value = $value + 2;
}
$array = array (1, 2, 3);
modifyArray($array);
A. 2, 3, 4
B. 2, 3, 6
C. 4, 5, 6
D. 1, 2, 3
What is the output of the following code?
$text = 'This is text';
$text1 = <<<'TEXT'
$text
TEXT;
$text2 = << $text1 TEXT; echo "$text2"; A. This is text B. $text C. $text1 D. $text2
Which options do you have in PHP to set the expiry date of a session?
A. Set the session.duration directive in php.ini
B. Set session cookie expiry date locally via session_set_cookie_params()
C. Set session expiry date locally via session_cache_expire()
D. None of the above
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";
Which of the following statements are FALSE?
A. SimpleXML allows removal of attributes.
B. SimpleXML allows addition of new attributes.
C. SimpleXML allows removal of nodes.
D. SimpleXML allows addition of new nodes.
E. None of the above
When using password_hash() with the PASSWORD_DEFAULT algorithm constant, which of the following is true? (Choose 2)
A. The algorithm that is used for hashing passwords can change when PHP is upgraded.
B. The salt option should always be set to a longer value to account for future algorithm requirements.
C. The string length of the returned hash can change over time.
D. The hash algorithm that's used will always be compatible with crypt() .
Which of the following expressions will evaluate to a random value from an array below? $array = array("Sue","Mary","John","Anna");
A. array_rand($array);
B. array_rand($array, 1);
C. shuffle($array);
D. $array[array_rand($array)];
E. array_values($array, ARRAY_RANDOM);
Which of the following PHP functions can be used to set the HTTP response code? (Choose 2)
A. header_add()
B. header()
C. http_set_status()
D. http_response_code()
E. http_header_set()
How should you track errors on your production website?
A. Enabling display_errors
B. Enabling log_errors
C. Having a site-wide exception handler
D. Setting error_reporting to E_ALL and ~E_NOTICE
Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Zend exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your 200-710 exam preparations and Zend certification application, do not hesitate to visit our Vcedump.com to find your solutions here.