Zend Certified Engineer 200-710 Exam Practice Test

Page: 1 / 14
Total 232 questions
Question 1

How can a SimpleXML object be converted to a DOM object?



Answer : A


Question 2

What is the difference between "print" and "echo"?



Answer : B


Question 3

What is the output of the following code?

function increment ($val)

{

$val = $val + 1;

}

$val = 1;

increment ($val);

echo $val;

See Below Explanation:




Answer : A


Question 4

Consider the following code. What can be said about the call to file_get_contents?

$getdata = "foo=bar";

$opts = array('http' =>

array(

'method' => 'POST',

'header' => 'Content-type: application/x-www-form-urlencoded',

'content' => $getdata

)

);

$context = stream_context_create($opts);

$result = file_get_contents('http://example.com/submit.php', false, $context);



Answer : B


Question 5

Which of the following is NOT true about PHP traits? (Choose 2)



Answer : B, E


Question 6

Under what condition may HTTP headers be set from PHP if there is content echoed prior to the header function being used?



Answer : B


Question 7

Which of the following does NOT help to protect against session hijacking and fixation attacks?



Answer : C


Page:    1 / 14   
Total 232 questions