Zend-Technologies 200-710 Actual Free Exam Questions & Community Discussion
Which of the following can NOT be used to send a cookie from within a PHP application?
Correct Answer: C
Vote an answer
Which of the following is true about stream contexts? (Choose 2)
Correct Answer: A,C
Vote an answer
Which of the following PHP functions can be used to set the HTTP response code? (Choose 2)
Correct Answer: C,E
Vote an answer
When a browser requests an image identified by an img tag, it never sends a Cookie header.
Correct Answer: B
Vote an answer
Consider the following table data and PHP code. What is the outcome?
Table data (table name "users" with primary key "id"):

PHP code (assume the PDO connection is correctly established):
$ dsn = 'mysql:host=localhost;dbname=exam';
$ user= 'username';
$ pass='********';
$ pdo = new PD0($dsn, $user, $pass);
try {
$ cmd = "INSERT INTO users (id, name, email) VALUES (:id, :name, :email)";
$ stmt = $pdo->prepare($cmd);
$ stmt->bindValue('id', 1);
$ stmt->bindValue('name', 'anna');
$ stmt->bindValue('email', '[email protected]');
$ stmt->execute();
echo "Success!";
} catch (PDOException $e) {
echo "Failure!";
throw $e;
Table data (table name "users" with primary key "id"):

PHP code (assume the PDO connection is correctly established):
$ dsn = 'mysql:host=localhost;dbname=exam';
$ user= 'username';
$ pass='********';
$ pdo = new PD0($dsn, $user, $pass);
try {
$ cmd = "INSERT INTO users (id, name, email) VALUES (:id, :name, :email)";
$ stmt = $pdo->prepare($cmd);
$ stmt->bindValue('id', 1);
$ stmt->bindValue('name', 'anna');
$ stmt->bindValue('email', '[email protected]');
$ stmt->execute();
echo "Success!";
} catch (PDOException $e) {
echo "Failure!";
throw $e;
Correct Answer: C
Vote an answer
What will the following function call print?
printf('%010.6f', 22);
printf('%010.6f', 22);
Correct Answer: D
Vote an answer
Which of the following methods are available to limit the amount of resources available to PHP through
php.ini? (Choose 2)
php.ini? (Choose 2)
Correct Answer: A,B
Vote an answer
What is the length of a string returned by: mdS(rand(), TRUE);
Correct Answer: C
Vote an answer
What is the output of the following code?
class a
{
public $val;
function renderVal (a $a)
{
if ($a) {
echo $a->val;
renderVal (null);
class a
{
public $val;
function renderVal (a $a)
{
if ($a) {
echo $a->val;
renderVal (null);
Correct Answer: B
Vote an answer
What is the output of the following code?
$ f = function () { return "hello";};
echo gettype($f);
$ f = function () { return "hello";};
echo gettype($f);
Correct Answer: A
Vote an answer
0
0
0
10

