Weekend Special 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: sale65best

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

Questions 61

What will the following code print?

echo addslashes('I am a small "HTML" string, which is

\'invalid\'.');

Options:
A.

I am a small "HTML" string, which is 'invalid'.

B.

I am a small \"HTML\" string, which is \'invalid\'.

C.

I am a small \"HTML\" string, which is \\'invalid\\'.

D.

I am a small \"HTML\" string, which is \\\'invalid\\\'.

E.

I am a \small\<\/b\> "HTML" string, which is 'invalid'\<\/u\>.

Zend 200-530 Premium Access
Questions 62

What can NOT be used to send a cookie from within a PHP application?

Options:
A.

header()

B.

$_COOKE

C.

setcookie()

D.

setrawcookie()

Questions 63

Is the following code piece E_STRICT compliant?

final class Testing {

private $test;

public function tester() {

return "Tested!";

}}

Options:
A.

Yes

B.

No

Questions 64

How can the id attribute of the 2nd baz element from the XML string below be retrieved from the SimpleXML object found inside $xml?

<?xml version='1.0'?>

<foo>

<bar>

<baz id="1">One</baz>

<baz id="2">Two</baz>

</bar>

</foo>

Options:
A.

$xml->getElementById('2');

B.

$xml->foo->bar->baz[2]['id']

C.

$xml->foo->baz[2]['id']

D.

$xml->foo->bar->baz[1]['id']

E.

$xml->bar->baz[1]['id']

Questions 65

Which of the following functions are used to escape data within the context of HTML?

(Choose 2)

Options:
A.

htmlentities()

B.

addslashes()

C.

stripslashes()

D.

strip_tags()

E.

htmlspecialchars()

Questions 66

What is the output of the following code:

str_replace(array("Apple","Orange"), array("Orange","Apple"), "Oranges are orange and Apples are green");

Options:
A.

Apples are orange and Oranges are green

B.

Apples are orange and Apples are green

C.

Apples are apple and Oranges are green

D.

Apples are apple and Apples are green

Questions 67

Where does the session extension store the session data by default?

Options:
A.

SQLite Database

B.

MySQL Database

C.

Shared Memory

D.

File system

E.

Session Server

Questions 68

You want to extract the pieces of a date string, which looks like this:

"2005-11-02". Which of the following pieces of code will properly assign $year,

$month and $day with their respective values?

Options:
A.

sscanf("2005-11-02", '%d-%d-%d', $year, $month, $day);

B.

scan("2005-11-02", '%d-%d-%d', $year, $month, $day);

C.

sscanf('%d-%d-%d', "2005-11-02", $year, $month, $day);

D.

sscan($year, $month, $date '%d-%d-%d', "2005-11-02");

Questions 69

What is the output of the following code?

200-530 Question 69

Options:
Questions 70

What visibility denies access to properties and methods outside of the class?

Options:
A.

static

B.

protected

C.

private

D.

public

E.

const

Exam Code: 200-530
Certification Provider: Zend
Exam Name: Zend PHP 5.3 Certification
Last Update: Jan 15, 2025
Questions: 254

Zend Related Exams

Zend Free Exams

Zend Free Exams
Enhance your Zend exam prep with free resources and practice tests from Examstrack. Achieve Zend certification success by exploring Examstrack.