New Year Special Limited Time Flat 70% Discount offer - Ends in 0d 00h 00m 00s - Coupon code: 70spcl

Zend 200-710 Zend Certified Engineer Exam Practice Test

Page: 1 / 23
Total 232 questions

Zend Certified Engineer Questions and Answers

Question 1

What can prevent PHP from being able to open a file on the hard drive? (Choose two.)

Options:

A.

File system permissions

B.

File is outside of open_basedir

C.

File is inside the /tmp directory

D.

PHP is running in CGI mode

Question 2

What is the output of the following code?

Question # 2

Options:

A.

A parser error, try cannot be followed by multiple catch

B.

1:Exception

C.

1:MyExeption

D.

2:MyException

E.

MyException

Question 3

Which of the following are valid code snippets? (Choose three.)

Options:

A.

function 4You(){}

B.

function_4You(){}

C.

function object(){}

D.

$1 = “Hello”;

E.

$_1 = ”Hello World”;

Question 4

What is the output of the following code?

Question # 4

Options:

A.

22333

B.

33222

C.

33322

D.

22233

Question 5

Given a php.ini setting of

default_charset = utf-8

what will the following code print in the browser?

Question # 5

Options:

A.

Three Unicode characters, or unreadable text, depending on the browser

B.

& # 9986 ; & # 10004 ; & # 10013

C.

A blank line due to charset mismatch

Question 6

Consider 3 PHP files that are called asynchronously via XmlHttpRequest:

Question # 6

Which of the following statements is true? (Choose two.)

Options:

A.

The total execution time for all 3 requests will be the maximum of the longest sleep() call

B.

The requests may be processed out of order

C.

The requests are guaranteed to be executed in order

D.

Concurrent requests will be blocked until the session lock is released

Question 7

How should class MyObject be defined for the following code to work properly? Assume $array is an array and MyObject is a user-defined class.

Question # 7

Options:

A.

MyObject should extend class Closure

B.

MyObject should implement interface Callable

C.

MyObject should implement method__call

D.

MyObject should implement method__invoke

Question 8

What is the output of this code?

Question # 8

Options:

A.

hello world

B.

hello $world

C.

PHP Parser error

Question 9

Under what condition may HTTP headers be set from PHP if there is content echoed prior to the header function being used?

Options:

A.

headers_sent() returns true

B.

Output buffering is enabled

C.

The client supports local buffering

D.

The webserver uses preemptive mode

Question 10

What exception type will catch the error raised by the expression 2 / 0?

Options:

A.

LogicException

B.

RangeException

C.

DivisionByZeroError

D.

ArithmeticError

Question 11

What is the output of the following code?

Question # 11

Options:

A.

This is text

B.

$text

C.

$text1

D.

$text2

Page: 1 / 23
Total 232 questions