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

200-710 Questions and Answers

Question # 6

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

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

Full Access
Question # 7

What is the method used to execute XPath queries in the SimpleXML extension?

A.

xpathQuery()

B.

xpath()

C.

simpleXMLXpath()

D.

query()

E.

evaluate()

Full Access
Question # 8

What is the output of the following code?

A.

123

B.

213

C.

142

D.

214

E.

Syntax error

Full Access
Question # 9

What exception type will catch the error raised by the expression 2 / 0?

A.

LogicException

B.

RangeException

C.

DivisionByZeroError

D.

ArithmeticError

Full Access
Question # 10

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

Full Access
Question # 11

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

A.

E_ERROR

B.

E_NOTICE

C.

E_PARSE

D.

E_WARNING

Full Access