Winter Special Flat 65% Limited Time Discount offer - Ends in 0d 00h 00m 00s - Coupon code: suredis

Zend 200-710 Zend Certified Engineer Exam Practice Test

Demo: 11 questions
Total 232 questions

Zend Certified Engineer Questions and Answers

Question 1

In a shared hosting environment, session data can be read by PHP scripts written by any user. How can you prevent this? (Choose two.)

Options:

A.

Store session data in a different location with session.save_path

B.

Store session data in a database

C.

Enable safe_mode

D.

Set session.name to something unique.

Question 2

Given a php.ini setting of

default_charset = utf-8

what will the following code print in the browser?

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 3

What is the output of the following code?

Options:

Question 4

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 5

Given the following array:

Which function will remove the value 28 from $a?

Options:

A.

array_shift()

B.

array_pop()

C.

array_pull()

D.

array_unshift()

Question 6

What is the output of the following code?

Options:

A.

A parser error, try cannot be followed by multiple catch

B.

1:Exception

C.

1:MyExeption

D.

2:MyException

E.

MyException

Question 7

What is the output of the following code?

Options:

A.

5

B.

10

C.

50

D.

Fatal error

Question 8

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.

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 9

What is the method used to execute XPath queries in the SimpleXML extension?

Options:

A.

xpathQuery()

B.

xpath()

C.

simpleXMLXpath()

D.

query()

E.

evaluate()

Question 10

An HTML form contains this form element:

When this form is submitted, the following PHP code gets executed:

Which of the following actions must be taken before this code may go into production? (Choose two.)

Options:

A.

Check with is_uploaded_file() whether the uploaded file $_FILES[‘myFile’][‘tmp_name’] is valid.

B.

Sanitize the file name in $_FILES[‘myFile’][‘name’] because this value is not consistent among web browsers.

C.

Check the charset encoding of the HTTP request to see whether it matches the encoding of the uploaded file.

D.

Sanitize the file name in $_FILES[‘myFile’][‘ name’] because this value could be forged.

E.

Use $HTTP_POST_FILES instead of $_FILES to maintain upwards compatibility.

Question 11

What is the length of a string returned by: md5(rand(). TRUE);

Options:

A.

Depends on the value returned by rand() function

B.

32

C.

24

D.

16

E.

64

Demo: 11 questions
Total 232 questions