Zend-Technologies Zend Certified Engineer - 200-710 Exam Practice Test

How many times will the function counter() be executed in the following code?
function counter($start, &$stop)
{
if ($stop> $start)
{
return;
}
counter($start--, ++$stop);
$ start= 5;
$ stop= 2;
counter($start, $stop);
Correct Answer: D Vote an answer
Which of the following statements are FALSE?
Correct Answer: A Vote an answer
You want to allow your users to submit HTML code in a form, which will then be displayed as real code
and not affect your page layout. Which function do you apply to the text, when displaying it? (Choose 2)
Correct Answer: A,C Vote an answer
An HTML form contains this form element:
<input type="file" name="myFile" />
When this form is submitted, the following PHP code gets executed:
move_uploaded_file(
$ _FILES['myFile']['tmp_name'],
'uploads/' . $_FILES['myFile']['name']
);
Which of the following actions must be taken before this code may go into production? (Choose 2)
Correct Answer: B,C Vote an answer
The following form is loaded in a browser and submitted, with the checkbox activated:
<form method="post">
<input type="checkbox" name="accept" />
</form>
In the server-side PHP code to deal with the form data, what is the value of $_POST['accept'] ?
Correct Answer: D Vote an answer
What is the name of the function that allows you register a set of functions that implement user-defined
session handling?
Correct Answer: C Vote an answer
Which PHP function is used to validate whether the contents of $_FILES['name']['tmp_name'] have really
been uploaded via HTIP, and also save the contents into another folder?
Correct Answer:
move_uploaded_file(), move_uploaded_file
Which of the following statements is correct?
Correct Answer: A Vote an answer
You'd like to use the class MyDBConnection that's defined in the
MyGreatFramework\MyGreatDatabaseAbstractionlayer namespace, but you want to minimize *as much
as possible* the length of the class name you have to type. What would you do?
Correct Answer: D Vote an answer
What is the output of the following code?
$ a= 3;
switch ($a) {
}
case 1: echo 'one'; break;
case 2: echo 'two'; break;
default: echo 'four'; break;
case 3: echo 'three'; break;
Correct Answer: D Vote an answer
What is the output of the following code?
var dump(boolval(-1));
Correct Answer: B Vote an answer
What is the result of the following code?
define('PI', 3.14);
class T
{
canst Pl = Pl;
}
class Math
{
canst Pl = T::PI;
}
echo Math::PI;
Correct Answer: C Vote an answer
You want to access the 3rd character of a string, contained in the variable $test. Which of the following
possibilites work? (Choose 2)
Correct Answer: C,D Vote an answer