Weekend Sale Special Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: suredis

Zend 200-710 Zend Certified Engineer Exam Practice Test

Page: 1 / 23
Total 232 questions

Zend Certified Engineer Questions and Answers

Testing Engine

  • Product Type: Testing Engine
$42  $119.99

PDF Study Guide

  • Product Type: PDF Study Guide
$36.75  $104.99
Question 1

Consider the following table data and PHP code. What is the outcome?

Table data (table name “users” with primary key “id”):

PHP code (assume the PDO connection is correctly established):

Options:

A.

the database will return no rows.

B.

The value of $row will be an array.

C.

The value of $result will be empty.

D.

The value of $result will be ‘gamma@example.net’.

Question 2

Which of the following is NOT possible using reflection?

Options:

A.

Analysing of nearly any aspect of classes and interfaces

B.

Analysing of nearly any aspect of functions

C.

Adding class methods

D.

Implement dynamic construction (new width variable class name)

Question 3

What is the output of the following code?

Options:

A.

“first”

B.

“second”

C.

an empty string

D.

an error

Question 4

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 5

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

Options:

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.

Question 6

One common security risk is exposing error messages directly in the browser. Which PHP configuration directive can be disabled to prevent this?

Options:

A.

html_display

B.

error_reporting

C.

display_errors

D.

error_log

E.

ignore_repeated_errors

Question 7

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

Options:

Question 8

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.

Question 9

What is the output of the following code?

Options:

A.

MyNamespace\Test

B.

empty string

C.

parse error

D.

Test

Question 10

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

Question 11

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.

Page: 1 / 23
Total 232 questions