Zend Certified Engineer (200-710) - Zend Actual Exam Questions
Last updated on March 10, 2026
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);
A GET request will be performed on http://example.com/submit.php
A POST request will be performed on http://example.com/submit.php
An error will be displayed
to join the discussion
No discussions yet. Be the first to ask!
Delete Comment
Are you sure? This action cannot be undone.
Which of the following PHP functions can be used to set the HTTP response code? (Choose 2)
header_add()
header()
http_set_status()
http_response_code()
http_header_set()
to join the discussion
No discussions yet. Be the first to ask!
Delete Comment
Are you sure? This action cannot be undone.
What is the output of the following code? function increment (&$val) { return $val + 1; } $a = 1; echo increment ($a); echo increment ($a);
to join the discussion
No discussions yet. Be the first to ask!
Delete Comment
Are you sure? This action cannot be undone.
Is the following code vulnerable to SQL Injection ($mysqli is an instance of the MySQLi class)? $age = $mysqli->real_escape_string($_GET['age']); $name = $mysqli->real_escape_string($_GET['name']); $query = "SELECT * FROM `table` WHERE name LIKE '$name' AND age = $age"; $results = $mysqli->query($query);
No, the code is fully protected from SQL Injection.
Yes, because the $name variable is improperly escaped.
Yes, because the $name variable and the $age variable is improperly escaped.
Yes, because the $age variable is improperly escaped.
Yes, because you cannot prevent SQL Injection when using MySQLi
to join the discussion
No discussions yet. Be the first to ask!
Delete Comment
Are you sure? This action cannot be undone.
Which class of HTTP status codes is used for redirections?
2XX
3XX
4XX
5XX
to join the discussion
No discussions yet. Be the first to ask!
Delete Comment
Are you sure? This action cannot be undone.
Finish Practice?
Are you sure you want to finish? This will end your practice session.