Pass the Zend Zend Certification 200-500 Questions and answers with CertsForce

Viewing page 1 out of 7 pages
Viewing questions 1-10 out of questions
Questions # 1:

What is the output of the following code?

class test {

public $value = 0;

function test() {

$this->value = 1;

} function __construct() {

$this->value = 2;

}}

$object = new test();

echo $object->value;

Options:

A.

2


B.

1


C.

0


D.

3


E.

No Output, PHP will generate an error message.


Questions # 2:

What is the difference between isset() and other is_*() functions (is_alpha(), is_number(), etc.)?

Options:

A.

isset() is a function call and is_*() are not function calls


B.

is_*() are language constructs and isset() is not a language construct


C.

c) isset() is a language construct and is_*() are not language constructs


D.

d) is_*() return a value whereas isset() does not


Questions # 3:

What is the function of backtick (`) characters in PHP?

Options:

A.

Same as single-quotes, used to enclose strings.


B.

Escape operators.


C.

No special meaning.


D.

Execute the enclosed string as a command.


E.

Error control operators.


Questions # 4:

What is the output of the following code?

$first = "second";

$second = "first";

echo $$$first;

Options:

A.

first


B.

second


C.

an empty string


D.

an error


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


Questions # 6:

Type hinting in PHP allows the identification of the following variable types: (Choose 2)

Options:

A.

String


B.

Integer


C.

Array


D.

Any class or interface type


Questions # 7:

Transactions can be used to: (Choose 2)

Options:

A.

Recover from errors in case of a power outage or a failure in the SQL connection


B.

Ensure that the data is properly formatted


C.

Ensure that either all statements are performed properly, or that none of them are.


D.

Recover from user errors


Questions # 8:

When working with the MVC paradigma, the business logic should be implemented in which of the following components?

Options:

A.

Model


B.

View


C.

Controller


Questions # 9:

When checking whether two English words are pronounced alike, which function should be used for the best possible result?

Options:

A.

levenshtein()


B.

metaphone()


C.

similar_text()


D.

soundex()


Questions # 10:

When a class is defined as final it:

Options:

A.

Can no longer be extended by other classes.


B.

Means methods in the class are not over-loadable.


C.

Cannot be defined as such, final is only applicable to object methods.


D.

Is no longer iteratable.


Viewing page 1 out of 7 pages
Viewing questions 1-10 out of questions