Weekend Sale - Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: xmaspas7

Easiest Solution 2 Pass Your Certification Exams

200-710 Zend Certified Engineer Free Practice Exam Questions (2025 Updated)

Prepare effectively for your Zend 200-710 Zend Certified Engineer certification with our extensive collection of free, high-quality practice questions. Each question is designed to mirror the actual exam format and objectives, complete with comprehensive answers and detailed explanations. Our materials are regularly updated for 2025, ensuring you have the most current resources to build confidence and succeed on your first attempt.

Page: 1 / 2
Total 75 questions

Which of the following are NOT acceptable ways to create a secure password hash in PHP? (Choose two.)

A.

md5()

B.

hash_pbkdf2()

C.

password_hash()

D.

crypt()

E.

openssl_digest()

Which PHP function sets a cookie and URL encodes its value when sending it to the browser?

Which methods can be used to overload object properties? (Choose two.)

A.

set(), get()

B.

__set(), __get()

C.

__put(), __receive(), __exist()

D.

set(), get(), isset()

E.

_isset(), __unset()

When would you use classes and when would you use namespaces?

A.

Use classes to encapsulate code and represent objects, and namespaces to avoid symbol name collisions

B.

Use classes for performance-sensitive code, and namespaces when readability matters more

C.

Use namespaces for performance-sensitive code, and classes when readability matters more

D.

Always use them; namespaces as always superior to classes

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

What function can reverse the order of values in an array so that keys are preserved?

A.

array_flip()

B.

array_reverse()

C.

rsort()

D.

krsort()

E.

array_multisort()

What method can be used to find the tag via the DOM extension?

A.

getElementById()

B.

getElementsByTagName()

C.

getElementsByTagNameNS()

D.

getElementByName()

E.

findTag()

Given a DateTime object that is set to the first second of the year 2017, which of the following samples will correctly return a date in the format ‘2017-01-01 00:00:01’?

A.

$datetime->format(‘%Y-%m-%d %h:%i:%s’)

B.

$datetime->format(‘%Y-%m-%d %h:%i:%s’, array(‘year’, ‘month’, ‘day’, ‘hour’, ‘minute’, ‘second’))

C.

$datetime->format(‘Y-m-d H:i:s’)

D.

$date = date(“Y-m-d H:i:s’, $datetime);

What is the output of the following code?

A.

“first”

B.

“second”

C.

an empty string

D.

an error

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

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.

What is the benefit of using persistent database connections in PHP? (Choose two.)

A.

Reduces the connection & authentication overhead of connecting to the database

B.

Ensures that only a single connection is open to the database from PHP

C.

Allows connection settings such as character set encoding to persist

D.

Allows for resumption of transactions across multiple requests.

Consider 3 PHP files that are called asynchronously via XmlHttpRequest:

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

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

Given a php.ini setting of

default_charset = utf-8

what will the following code print in the browser?

A.

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

B.

& # 9986 ; & # 10004 ; & # 10013

C.

A blank line due to charset mismatch

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.)

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.

What is the output of the following code?

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

A.

headers_sent() returns true

B.

Output buffering is enabled

C.

The client supports local buffering

D.

The webserver uses preemptive mode

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

A.

htmlentities()

B.

addslashes()

C.

stripslashes()

D.

strip_tags()

E.

htmlspecialchars()

What is the output of the following code?

A.

A parser error, try cannot be followed by multiple catch

B.

1:Exception

C.

1:MyExeption

D.

2:MyException

E.

MyException

Which options do you have in PHP to set the expiry date of a session?

A.

Set the session.duration directive in php.ini

B.

Set session cookie expiry date locally via session_set_cookie_params()

C.

Set session expiry date locally via session_cache_expire()

D.

None of the above

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

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

Page: 1 / 2
Total 75 questions
Copyright © 2014-2025 Solution2Pass. All Rights Reserved