Pass the Zend PHP and Zend Framework Certifications 200-550 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?

var_dump(boolval([]));

Options:

A.

bool(true)


B.

bool(false)


Questions # 2:

Which PHP function is used to validate whether the contents of $_FILES['name']['tmp_name'] have really been uploaded via HTTP?


Questions # 3:

Which of the following methods are available to limit the amount of resources available to PHP through php.ini? (Choose 2)

Options:

A.

Limit the amount of memory a script can consume


B.

Limit the total amount of memory PHP uses on the entire server


C.

Limit the maximum execution time of a script


D.

Limit the maximum number of concurrent PHP processes


E.

Limit the maximum number of concurrent PHP threads


Questions # 4:

What is the output of the following code?

class a

{

public $val;

}

function renderVal (a $a)

{

if ($a) {

echo $a->val;

}

}

renderVal (null);

Options:

A.

A syntax error in the function declaration line


B.

An error, because null is not an instance of 'a'


C.

Nothing, because a null value is being passed to renderVal()


D.

NULL


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:

Please provide the value of the $code variable in the following statement to set an HTTP status code that signifies that the requested resource was not found.

http_response_code($code);


Questions # 7:

What types of HTTP authentication are supported by PHP? (Choose 2)

Options:

A.

Basic


B.

Advanced


C.

Strict


D.

Digest


E.

Realm


Questions # 8:

What will be the result of the following operation?

$a = array_merge([1,2,3] + [4=>1,5,6]);

echo $a[2];

Options:

A.

4


B.

3


C.

2


D.

false


E.

Parse error


Questions # 9:

The following form is loaded in a browser and submitted, with the checkbox activated:

<form method="post">

<input type="checkbox" name="accept" />

In the server-side PHP code to deal with the form data, what is the value of $_POST['accept'] ?

Options:

A.

accept


B.

ok


C.

true


D.

on


Questions # 10:

Which of the following is NOT a requirement for file uploads to work?

Options:

A.

The PHP directive file_uploads must be set to On


B.

The form's method attribute must be set to "post"


C.

The form must include a hidden input element with the name set to "MAX_FILE_SIZE"


D.

The form's enctype attribute must be set to "multipart/form-data"


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