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

An unbuffered database query will: (Choose 2)

A.

Return the first data faster

B.

Return all data faster

C.

Free connection faster for others scripts to use

D.

Use less memory

When using password_hash() with the PASSWORD_DEFAULT algorithm constant, which of the following is true? (Choose 2)

A.

The algorithm that is used for hashing passwords can change when PHP is upgraded.

B.

The salt option should always be set to a longer value to account for future algorithm requirements.

C.

The string length of the returned hash can change over time.

D.

The hash algorithm that's used will always be compatible with crypt() .

Which php.ini setting is usually required to use an opcode cache?

A.

extension

B.

zend_extension

C.

optimizer

D.

dl

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

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

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

Which of the following tasks can be achieved by using magic methods? (Choose 3)

A.

Initializing or uninitializing object data

B.

Creating a new stream wrapper

C.

Creating an iterable object

D.

Processing access to undefined methods or properties

E.

Overloading operators like +, *, etc.

F.

Converting objects to string representation

What is the result of the following code?

define('PI', 3.14);

class T

{

const PI = PI;

}

class Math

{

const PI = T::PI;

}

echo Math::PI;

A.

Parse error

B.

3.14

C.

PI

D.

T::PI

Which of the following functions will allow identifying unique values inside an array?

A.

array_unique_values

B.

array_distinct

C.

array_count_values

D.

array_intersect

E.

array_values

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

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.

What is the output of the following code?

$first = "second";

$second = "first";

echo $$$first;

A.

"first"

B.

"second"

C.

an empty string

D.

an error