Easter Sale Special 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: exams65

Zend Certified Engineer Question and Answers

Zend Certified Engineer

Last Update May 15, 2024
Total Questions : 75

We are offering FREE 200-710 Zend exam questions. All you do is to just go and sign up. Give your details, prepare 200-710 free exam questions and then go for complete pool of Zend Certified Engineer test questions that will help you more.

200-710 pdf

200-710 PDF

$35  $99.99
200-710 Engine

200-710 Testing Engine

$42  $119.99
200-710 PDF + Engine

200-710 PDF + Testing Engine

$56  $159.99
Questions 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.

Discussion 0
Questions 2

Is the following code vulnerable to SQL Injection where ($mysqli is an instance of the MySQLi class)?

Options:

A.  

No, the code is fully protected from SQL Injection.

B.  

Yes, because the $name variable is improperly escaped.

C.  

Yes, because the $name variable and the $age variable is improperly escaped.

D.  

Yes. because the $age variable is improperly escaped.

E.  

Yes, because you cannot prevent SQL Injection when using MySQLi

Discussion 0
Questions 3

Which of the following is NOT true about PHP traits? (Choose two.)

Options:

A.  

Multiple traits can be used by a single class

B.  

A trait can implement an interface

C.  

A trait can declare a private variable.

D.  

Traits are able to be auto-loaded.

E.  

Traits automatically resolve conflicts based on definition order.

Discussion 0
Questions 4

What will the following function call print?

Options:

A.  

22

B.  

22.00

C.  

022.000000

D.  

22.000000

Discussion 0
Questions 5

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

Options:

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

Discussion 0
Questions 6

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’?

Options:

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

Discussion 0
Questions 7

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.

Discussion 0
Questions 8

Which of the following items in the $_SERVER superglobal are important for authenticating the client when using HTTP Basic authentication? (Choose two.)

Options:

A.  

PHP_AUTH_TYPE

B.  

PHP_AUTH_PASSWORD

C.  

PHP_AUTH_DIGEST

D.  

PHP_AUTH_PW

E.  

PHP_AUTH_USER

Discussion 0
Questions 9

You work for a shared hosting provider, and your supervisor asks you do disable user scripts to dynamically load PHP extensions using the d1() function. How can you do this? (Choose two.)

Options:

A.  

Set enable_d1 to off in the server’s php.ini configuration file

B.  

Add d1 to the current value of disable_functions in the server’s php.ini configuration file.

C.  

Add d1 to the current value of disable_classes in the server’s php.ini configuration file.

D.  

Write a custom function called d1(), save it under the name prepend.inc and then set the auto_prepend_file directive to prepend.inc in php.ini.

Discussion 0
Questions 10

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

Discussion 0
Questions 11

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

Discussion 0