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

Free Zend 200-530 Practice Exam with Questions & Answers | Set: 4

Questions 31

You want to access the 3rd character of a string, contained in the variable $test. Which of the following possibilities work?(Choose 2)

Options:
A.

echo $test(3)

B.

echo $test[2];

C.

echo $test(2);

D.

echo $test{2};

E.

echo $test{3}

Zend 200-530 Premium Access
Questions 32

Which constant must be passed as the second argument to htmlentities () to convert single quotes (') to HTML entity?

Options:
A.

TRUE

B.

FALSE

C.

ENT_QUOTES

D.

ENT_NOQUOTES

E.

ENT_COMPAT

Questions 33

What is the output of the following code?

200-530 Question 33

Options:
Questions 34

When PHP is running on a command line, what super-global will contain the command line arguments specified?

Options:
A.

$_SERVER

B.

$_ENV

C.

$GLOBALS

D.

$_POST

E.

$_ARGV

Questions 35

You are creating an application that repeatedly connects to a database to retrieve order data for invoices. All data comes from the same database. In order to preserve resources, you have to ensure that only one database connection should be used at any time. The code also has to open as few new database connections as possible. Which design pattern should you use for this scenario?

Options:
A.

Adapter

B.

Factory

C.

MVC

D.

Singleton

Questions 36

Which elements can be encapsulated by namespaces?

Options:
A.

Only classes

B.

Classes, functions and constants

C.

Classes, functions, constants and variables

Questions 37

Consider the following XML code:

<?xml version="1.0" encoding="utf-8"?>

PHP 5 Power Programming

Learning PHP 5

Which of the following SimpleXML calls print the name of the second book?

(Let $xml=simplexml_load_file("books.xml");) (Choose 2)

Options:
A.

echo $xml->books->book[2];

B.

echo $xml->books->book[1];

C.

echo $xml->book[1];

D.

echo $xml->xpath("/books/book[@id=2]");

E.

$c = $xml->children(); echo $c[1];

Questions 38

What is the output of the following code?

200-530 Question 38

Options:
A.

false-false

B.

false-true

C.

true-false

D.

true-true

Questions 39

You analyze the code of a colleague and see a call to the function quotemeta(). You give the string "Holy $%&[. What's going on?" as a parameter to it. What will it output?

Options:
A.

Holy $%&[. What's going on?

B.

Holy \$%&\[\. What's going on\?

C.

Holy $%&[. What\'s going on?

D.

Holy \$\%\&\[\. What\'s going on\?

Questions 40

Which sentence describes the following regular expression match?

preg_match('/^\d*(?:\.[0-9]+)?$/', $test);

Options:
A.

It matches float numbers with thousand separators.

B.

It matches float numbers without thousand separators.

C.

It matches binary integer numbers.

D.

It matches any string.

E.

It does not match anything

Exam Code: 200-530
Certification Provider: Zend
Exam Name: Zend PHP 5.3 Certification
Last Update: Mar 28, 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.