Pass the Zend ZCE 200-710 Questions and answers with CertsForce

Viewing page 1 out of 3 pages
Viewing questions 1-10 out of questions
Questions # 1:

An HTML form contains this form element:

Question # 1

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

Question # 1

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.


Questions # 2:

Which of the following functions are used to escape data within the context of HTML? (Choose two.)

Options:

A.

htmlentities()


B.

addslashes()


C.

stripslashes()


D.

strip_tags()


E.

htmlspecialchars()


Questions # 3:

What is the output of the following code?

Question # 3

Options:

A.

5


B.

10


C.

50


D.

Fatal error


Questions # 4:

Which of the following statements about anonymous functions in PHP are NOT true? (Choose two.)

Options:

A.

Anonymous functions can be bound to objects


B.

Anonymous functions created within object context are always bound to that object


C.

Assigning closure to a property of an object binds it to that object


D.

Methods bind() and bindTo() of the Closure object provide means to create closures with different binding and scope


E.

Binding defines the value of $this and the scope for a closure


Questions # 5:

What is the output of the following code?

Question # 5

Options:

A.

220.2231


B.

22.2231


C.

22.2,231


D.

56.2


Questions # 6:

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


Questions # 7:

Which of these error types may be handled by a user defined error handler function? (Choose two.)

Options:

A.

E_ERROR


B.

E_NOTICE


C.

E_PARSE


D.

E_WARNING


Questions # 8:

What is the output of the following code?

Question # 8

Options:

A.

1


B.

2


C.

null


Questions # 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()


Questions # 10:

What is the output of the following code?

Question # 10


Viewing page 1 out of 3 pages
Viewing questions 1-10 out of questions