Pass4itsure > Zend > Zend Certifications > 200-710 > 200-710 Online Practice Questions and Answers

200-710 Online Practice Questions and Answers

Questions 4

FILL BLANK Which PHP function is used to validate whether the contents of $_FILES['name']['tmp_name'] have really been uploaded via HTTP?

Buy Now
Questions 5

CORRECT TEXT

What is the output of the following code?

function increment (and$val)

{

return $val + 1;

}

$a = 1;

echo increment ($a);

echo increment ($a);

Buy Now
Questions 6

Which of the following statements about exceptions is correct? (Choose 2)

A. you can only throw classes derived from Exception

B. a try block can have multiple catch blocks

C. a try block must not be followed by a catch block

D. try blocks cannot contain nested try blocks

Buy Now
Questions 7

What information can be used to reliably determine the type of an uploaded file?

A. MIME type

B. File name extension

C. Contents of the file

Buy Now
Questions 8

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 PDO($dsn, $user, $pass);

$cmd = "SELECT * FROM users WHERE id = :id";

$stmt = $pdo->prepare($cmd);

$id = 3;

$stmt->bindParam('id', $id);

$stmt->execute();

$stmt->bindColumn(3, $result);

$row = $stmt->fetch(PDO::FETCH_BOUND);

A. The database will return no rows.

B. The value of $row will be an array.

C. The value of $result will be empty.

D. The value of $result will be 'gamma@example.net'.

Buy Now
Questions 9

Consider the following two files. When you run test.php, what would the output look like?

test.php:

include "MyString.php";

print ",";

print strlen("Hello world!");

MyString.php:

namespace MyFramework\String;

function strlen($str)

{

return \strlen($str)*2; // return double the string length

}

print strlen("Hello world!")

A. 12,12

B. 12,24

C. 24,12

D. 24,24

E. PHP Fatal error: Cannot redeclare strlen()

Buy Now
Questions 10

What function is best suited for extracting data from a formatted string into an array?

A. fgetcsv

B. sscanf

C. sprintf

D. strtok

Buy Now
Questions 11

What does the __FILE__ constant contain?

A. The filename of the current script.

B. The full path to the current script.

C. The URL of the request made.

D. The path to the main script.

Buy Now
Questions 12

Which PHP function retrieves a list of HTTP headers that have been sent as part of the HTTP response or are ready to be sent?

A. header()

B. headers()

C. headers_list()

D. headers_sent()

E. getresponseheaders()

Buy Now
Questions 13

What is the output of the following code?

A. MyNamespace\Test

B. empty string

C. parse error

D. Test

Buy Now
Exam Code: 200-710
Exam Name: Zend Certified Engineer
Last Update: May 30, 2026
Questions: 233
10%OFF Coupon Code: SAVE10

PDF (Q&A)

$49.99

VCE

$55.99

PDF + VCE

$65.99