Black Friday Special 60% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: bestdeal

Zend 200-500 Exam Made Easy: Step-by-Step Preparation Guide

Questions 1

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

<form method="post">

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

<form>

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

Buy Now
Questions 2

An HTML form contains this form element:

<input type="image" name="myImage" src="image.png" />

The user clicks on the image to submit the form. How can you now access the relative coordinates of the mouse click?

Options:

A.

$_IMAGE['myImage']['x'] and $_IMAGE['myImage']['y']

B.

$_POST['myImage']['x'] and $_POST['myImage']['x']

C.

$_POST['myImage.x'] and $_POST['myImage.y']

D.

$_POST['myImage_x'] and $_POST['myImage_y']

Buy Now
Questions 3

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

Buy Now
Questions 4

A script residing at http://example.com/phpcert/cookies.php contains the following code:

1

2 setcookie('name1', 'value1', time() + 60*60*24, '/');

3 setcookie('name1', 'value2');

4 ?>

The web browser is configured to accept all cookies. How many cookies will be set by this script?

Options:

A.

0

B.

1

C.

2

D.

3

Buy Now
Questions 5

You want to run the following PHP 4 code with PHP 5. In the following example, which access modifier in PHP 5 is equivalent to "var"?

class Test {

var $tester;

}

Options:

A.

protected

B.

invisible

C.

public

D.

private

E.

outofscope

Buy Now
Questions 6

What function is used to retrieve all available information about a symbolic link?

Options:

A.

symlink()

B.

stat()

C.

fstat()

D.

lstat()

E.

readlink()

Buy Now
Questions 7

Which of the following statements is NOT true?

a) Class constants are public

b) Class constants are being inherited

c) Class constants can omit initialization (default to NULL)

d) Class constants can be initialized by consts

Options:

A.

a)

B.

b)

C.

c)

D.

d)

Buy Now
Questions 8

What is the content of $c after the following code has executed?

$a = 2;

$b = 3;

$c = ($a++ * ++$b);

Options:

A.

0

B.

5

C.

8

D.

4

Buy Now
Questions 9

Which of the following filtering techniques prevents cross-site scripting (XSS) vulnerabilities?

Options:

A.

Strip all occurrences of the string script.

B.

Strip all occurrences of the string javascript.

C.

Enable magic_quotes_gpc.

D.

None of the above.

Buy Now
Questions 10

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

Buy Now
Exam Code: 200-500
Exam Name: Zend PHP 5 Certification
Last Update: Dec 12, 2024
Questions: 219

PDF + Testing Engine

$164.99
$66

Testing Engine

$124.99
$50

PDF (Q&A)

$104.99
$42