Black Friday Special 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: best70

200-710 Zend Certified Engineer Questions and Answers

Questions 4

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.

Buy Now
Questions 5

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

Buy Now
Questions 6

After performing the following operations:

What will be the value of $a?

Options:

A.

array(‘c’, ’b’, ’a’)

B.

array(2, 1, 0)

C.

array(‘a’, ’b’, ’c’)

D.

None of the above

Buy Now
Questions 7

Which of the following statements about Reflection are correct?

Options:

A.

Reflection is an extension that can be disabled

B.

Reflection is a new extension present only in PHP 7.0+

C.

Reflection only allows to reflect on built-in classes

D.

Built-in classes can be reflected on command line using php --rc

Buy Now
Questions 8

Which of the following techniques ensures that a value submitted in a form can only be yes or no?

Options:

A.

Use a select list that only lets the user choose between yes and no.

B.

Use a hidden input field that has a value of yes or no.

C.

Enable the safe_mode configuration directive.

D.

None of the above.

Buy Now
Questions 9

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.

Buy Now
Questions 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.

Buy Now
Questions 11

Which of the following expressions will evaluate to a random value from an array below?

$array = [“Sue”,”Mary”,”John”,”Anna”];

Options:

A.

array_rand($array);

B.

array_rand($array, 1);

C.

shuffle($array);

D.

$array[array_rand($array)];

E.

array_value($array, ARRAY_RANDOM);

Buy Now
Exam Code: 200-710
Exam Name: Zend Certified Engineer
Last Update: Nov 23, 2024
Questions: 75

PDF + Testing Engine

$134.99

Testing Engine

$99.99

PDF (Q&A)

$84.99