SIMULATION
What is the name of the key for the element in $_FILES['name'] that contains the provisional name of the uploaded file?
Answer is in the explanation below.
Loading demo links...
Showing 1–15 of 15 questions
SIMULATION
What is the name of the key for the element in $_FILES['name'] that contains the provisional name of the uploaded file?
Answer is in the explanation below.
SIMULATION
Your supervisor wants you to disallow PHP scripts to open remote HTTP and FTP resources using PHP's file functions. Which php.ini setting should you change accordingly?
Answer is in the explanation below.
Which of the following methods are available to limit the amount of resources available to PHP through php.ini? (Choose 2)
Select all that apply, then click Submit answer.
Limit the amount of memory a script can consume
Limit the total amount of memory PHP uses on the entire server
Limit the maximum execution time of a script
Limit the maximum number of concurrent PHP processes
Limit the maximum number of concurrent PHP threads
An unbuffered database query will: (Choose 2)
Select all that apply, then click Submit answer.
Return the first data faster
Return all data faster
Free connection faster for others scripts to use
Use less memory
Which methods can be used to overload object properties? (Choose 2)
Select all that apply, then click Submit answer.
set(), get()
__set(), __get()
__put(), __receive(), __exists()
set(), get(), isset()
__isset(), __unset()
Which function can NOT help prevent cross-site scripting? (Choose 2)
Select all that apply, then click Submit answer.
addslashes()
htmlentities()
htmlspecialchars()
strip_tags()
quotemeta()
When retrieving data from URLs, what are valid ways to make sure all file_get_contents calls send a certain user agent string? (Choose 2)
Select all that apply, then click Submit answer.
$default_opts = array('http'=>array('user_agent'=>"My Cool Browser"));
$default = stream_context_set_default($default_opts);
stream_context_set_option("user_agent", "My Cool Browser");
ini_set('user_agent', "My Cool Browser");
stream_context_set_option($context, "http", "user_agent", "My Cool Browser");
Which of the following PHP functions can be used to set the HTTP response code? (Choose 2)
Select all that apply, then click Submit answer.
header_add()
header()
http_set_status()
http_response_code()
http_header_set()
Which of the following functions will allow identifying unique values inside an array?
Select an option, then click Submit answer.
array_unique_values
array_distinct
array_count_values
array_intersect
array_values
What will the following code print out? $str = '✔ one of the following'; echo str_replace('✔', 'Check', $str);
Select an option, then click Submit answer.
Check one of the following
one of the following
✔ one of the following
What is the output of the following code?
class a
{
public $val;
}
function renderVal (a $a)
{
if ($a) { echo $a->val;
}
} renderVal (null);
Select an option, then click Submit answer.
A syntax error in the function declaration line
An error, because null is not an instance of 'a'
Nothing, because a null value is being passed to renderVal()
NULL
Which of the following superglobals does not necessarily contain data from the client?
Select an option, then click Submit answer.
$_POST
$_SESSION
$_GET
$_SERVER
What is the recommended method of copying data between two opened files?
Select an option, then click Submit answer.
copy($source_file, $destination_file);
copy($destination_file, $source_file);
stream_copy_to_stream($source_file, $destination_file);
stream_copy_to_stream($destination_file, $source_file);
stream_bucket_prepend($source_file, $destination_file);
What is the output of the following code? class A { public $a = 1;
public function __construct($a) { $this->a = $a; }
public function mul() { return function($x) {
return $this->a*$x;
};
}
}
$a = new A(2); $a->mul = function($x) {
return $x*$x;
};
$m = $a->mul(); echo $m(3);
Select an option, then click Submit answer.
9
6
0
3
After performing the following operations:
$a = array('a', 'b', 'c');
$a = array_keys(array_flip($a));
What will be the value of $a?
Select an option, then click Submit answer.
array('c', 'b', 'a')
array(2, 1, 0)
array('a', 'b', 'c')
None of the above
This free practice test covers the Zend Certified PHP Engineer (200-550) exam from Zend. You will find 15 free questions, drawn from the full Study4Pass practice set of 223 questions for this exam. The free sample includes 7 single-answer, 6 multiple-answer and 2 hands-on lab questions — the same mix of formats you will meet in the full set. The questions follow the same topic balance as the real exam: Such as PHP basics, Object-oriented programming, Security and Performance. The Zend 200-550 exam is an exam that tests a candidate's knowledge and skills in developing and deploying PHP-based web applications.
The target audience of the Zend 200-550 exam is experienced PHP developers who have a working knowledge of the Zend Framework, Zend Server, and Zend Studio. The prerequisites for the Zend 200-550 exam are a basic understanding of object-oriented programming, web development, and the PHP language.
Use the sample the way you would use the real thing: answer each question on your own first, then open the explanation and make sure you understand why the right answer is right. That habit — reasoning instead of memorizing — is what carries over to exam day. When a topic keeps tripping you up, that is your study plan telling you where to go next.
When you finish the sample, do not just count the score — read it. Every missed question names a topic, and the full set lets you train that topic on its own until it stops costing you marks. That loop of test, review and targeted practice is how this set is designed to be used, from the first free question to the last simulation.
Inside the full 200-550 practice set:
Pick an answer for each question and check it straight away — the correct answer and a full explanation appear under the question. There is no time limit and nothing to sign up for. When an explanation is not enough, use Ask AI: this is an AI-Enabled practice test, and Ask AI explains the concept behind the question in plain language. Ready for more? The full 223-question set adds a timed Exam Simulation mode, topic training for your weak areas, and a flagged-question review, so you can practise the way the real exam feels.
Yes — the 15 questions on this page are completely free, with no signup and no payment details needed.
223 questions. The 15 free questions above are a sample of that full set, in the same style and topic balance.
Yes — every question shows the correct answer with an explanation, and Ask AI can explain the concept behind a question in plain words if you want to go deeper.
No. This is a practice test: the questions are written to mirror the real 200-550 exam’s topics and difficulty, not copied from it.