What is the output of the following code?
class a
{
public $val;
}
function renderVal (a $a)
{
if ($a) {
echo $a->val;
}
}
renderVal (null);
A. A syntax error in the function declaration line
B. An error, because null is not an instance of 'a'
C. Nothing, because a null value is being passed to renderVal()
D. NULL
What is the output of the following code?
echo 0x33, ' monkeys sit on ', 011, ' trees.';
A. 33 monkeys sit on 11 trees.
B. 51 monkeys sit on 9 trees.
C. monkeys sit on trees.
D. 0x33 monkeys sit on 011 trees.
What is the output of the following code?
class test {
public $value = 0;
function test() {
$this->value = 1;
}
function __construct() {
$this->value = 2;
}
}
$object = new test();
echo $object->value;
A. 2
B. 1
C. 0
D. 3
E. No Output, PHP will generate an error message.
Which of the following parts must a XML document have in order to be well-formed?
A. An XML declaration
B. A root element
C. A specified encoding
D. A reference to either a DTD or an XML schema definition
What is the name of the function that allows you register a set of functions that implement user-defined session handling?
A. session_set_handler()
B. session_set_storage_handler()
C. session_register_handler()
D. session_set_save_handler()
What method can be used to find the tag
A. getElementById()
B. getElementsByTagName()
C. getElementsByTagNameNS()
D. getElementByName()
E. findTag()
Which of the following does NOT help to protect against session hijacking and fixation attacks?
A. Use SSL and set the $secure cookie parameter to true .
B. Set the session.use_only_cookies php.ini parameter to 1 .
C. Set the session.cookie_lifetime php.ini parameter to 0 .
D. Protect against XSS vulnerabilities in the application.
E. Rotate the session id on successful login and logout using session_regenerate_id()
What is the length of a string returned by: md5(rand(), TRUE);
A. Depends on the value returned by rand() function
B. 32
C. 24
D. 16
E. 64
What is the output of the following code?
A. string(0) ""
B. bool(false)
C. string(1) "!"
D. string(2) "k!"
What will the following code print out?
$str = 'and#10004; one of the following';
echo str_replace('and#10004;', 'Check', $str);
A. Check one of the following
B. one of the following
C. and#10004; one of the following
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.