Labour Day Special - 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: c4sdisc65

200-530 PDF

$38.5

$109.99

3 Months Free Update

  • Printable Format
  • Value of Money
  • 100% Pass Assurance
  • Verified Answers
  • Researched by Industry Experts
  • Based on Real Exams Scenarios
  • 100% Real Questions

200-530 PDF + Testing Engine

$61.6

$175.99

3 Months Free Update

  • Exam Name: Zend PHP 5.3 Certification
  • Last Update: May 5, 2024
  • Questions and Answers: 254
  • Free Real Questions Demo
  • Recommended by Industry Experts
  • Best Economical Package
  • Immediate Access

200-530 Engine

$46.2

$131.99

3 Months Free Update

  • Best Testing Engine
  • One Click installation
  • Recommended by Teachers
  • Easy to use
  • 3 Modes of Learning
  • State of Art Technology
  • 100% Real Questions included

200-530 Practice Exam Questions with Answers Zend PHP 5.3 Certification

Question # 6

You'd like to use the class MyDBConnection that's defined in the MyGreatFrarnework\GreafDatabaseAbstractionLayer namespace, but you want to minimize *as much as possible* the length of the class name you have to type. What would you do?

A.

Import the MyGreatFramework namespace

B.

Import the MyGreatFrarnework\GreafDatabaseAbstractionLayer namespace

C.

Alias MyGreatFrarnework\GreafDatabaseAbstractionLayer\MyDBConnection to a shorter name

D.

Alias MyGreatFrarnework\GreafDatabaseAbstractionLayer to a shorter name

Full Access
Question # 7

Which kind of encryption is provided by PHP's crypt functions'?

A.

One-way

B.

Two-way

C.

All of the above

D.

None of the above

Full Access
Question # 8

Given the following DateTime objects, what can you use to compare the two dates and indicate that $date2 is the later of the two dates?

200-530 question answer

200-530 question answer

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Full Access
Question # 9

Which of the following statements is correct?

A.

Interfaces can extend only one interface

B.

Interfaces can extend more than one interface

C.

Interfaces can inherit a method from different interfaces

D.

Interfaces can redeclare inherited methods

Full Access
Question # 10

What DOMElement method should be used to check for availability of a non-namespaced attribute?

A.

getAttributeNS()

B.

getAttribute()

C.

hasAttribute()

D.

hasAttributeNS()

Full Access
Question # 11

What is the method used to execute XPath queries in the SimpleXML extension?

A.

xpathQuery()

B.

xpath()

C.

simpleXMLXpath()

D.

query()

E.

evaluate()

Full Access
Question # 12

What will the following function call print?

printf('%010.6f', 22);

A.

22

B.

22.00

C.

022.000000

D.

22.000000

Full Access
Question # 13

What will the following code piece print?

echo strtr('Apples and bananas', 'ae', 'ea')

A.

Applas end benenes

B.

Epplas end benenes

C.

Apples and bananas

D.

Applas end bananas

Full Access
Question # 14

What piece of code would you use to obtain an array of response headers for a given URL, indexed by their respective names?

A.

get_headers($url);

B.

get_header($url);

C.

stream_context_get_headers($url);

D.

get_headers($url, 1);

E.

get_headers($url, ASSOC_HEADERS);

Full Access
Question # 15

You want to allow your users to submit HTML code in a form, which will then be displayed as real code and not affect your site layout. Which function do you apply to the text, when displaying it? (Choose 2)

A.

strip_tags()

B.

htmlentities()

C.

htmltidy()

D.

htmlspecialchars()

E.

showhtml()

Full Access
Question # 16

Consider the following code:

strspn($test, 'aeiou', 1);

The variable $test contains the string "You get certified".

What will the function call return?

A.

true

B.

false

C.

0

D.

1

E.

2

F.

3

Full Access
Question # 17

You need to escape special characters to use user input inside a regular expression. Which functions would you use? (Choose 2)

A.

addslashes()

B.

htmlentities()

C.

preg_quote()

D.

regex_quote()

E.

quotemeta()

Full Access
Question # 18

The following code piece should print "PHP is cool", but unexpectedly, it just prints "cool". How would you correct it?

echo str_replace('PHP is a pain.', 'a pain', 'cool');

A.

str_replace('PHP is a pain.', 'cool', 'a pain');

B.

str_replace('a pain', 'cool', 'PHP is a pain.');

C.

str_replace('cool', 'a pain', 'PHP is a pain.');

Full Access
Question # 19

Which 2.17of the following formats is used to describe web services?

A.

WSDL

B.

UDDI

C.

SOAP

D.

XLANG

Full Access
Question # 20

Identify the security vulnerability in the following example:

1

2 mail('feedback@example.org',

3 'Feddback',

4 'Here is my feedback.',

5 "From: {$_COOKIE['email']}");

6 ?>

A.

Remote Code Injection

B.

Cross-Site Request Forgeries

C.

Email Injection

D.

None of the above

Full Access
Question # 21

Which of these protocols are NOT governed by the W3C in their latest versions? (Choose 2)

A.

XML-RPC

B.

SOAP

C.

WSDL

D.

UDDI

Full Access
Question # 22

Which of the following XML declarations is NOT valid?

A.

B.

C.

D.

Full Access
Question # 23

What does the chown() function do?

A.

Change the file permissions.

B.

Change the owner of the file.

C.

Change the group of the file.

D.

Checks if the file is accessible.

Full Access
Question # 24

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?

A.

Adapter

B.

Factory

C.

MVC

D.

Singleton

Full Access
Question # 25

Which piece of code will return the ASCII value of a character?

A.

(int)'t';

B.

ord('t');

C.

to_ascii('t');

D.

chr('t');

Full Access
Question # 26

Which of the following describes a PHP extension?

A.

A collection of PHP files that expose a unified API

B.

A collection of functions and classes that allow PHP to interact with external data sources, protocols or APIs

C.

A plugin that changes the way PHP behaves

D.

A multitude of classes that extend from a single parent class

Full Access
Question # 27

How many array elements will be found in the return value of:

split(".", "

A.

B.C")

B.

2

C.

3

D.

1

E.

6

F.

4

Full Access
Question # 28

Which of the following statements is NOT correct?

A.

Only methods can have type hints

B.

Typehints can be optional

C.

Typehints can be references

Full Access
Question # 29

What PHP function can be used to remove a local file?

A.

A) rmdir()

B.

B) unlink()

C.

C) rm()

D.

D) delete()

E.

E) delete_file()

Full Access
Question # 30

What XML component does the following XPath query try to match?

//foo[bar/@id=5]

A.

bar element with an id attribute whose value is equal to 5

B.

foo element containing a child node bar tag

C.

id attribute whose value is equal to 5

D.

foo element with a child note bar whose id attribute is equal to 5

E.

all of the foo elements that have a child node bar, whose id attribute is equal to 5

Full Access
Question # 31

Which one of the following technologies was not built into PHP before version 5?

A.

XSL

B.

SOAP

C.

DOM

D.

SAX

Full Access
Question # 32

Which DOMElement property provides a reference to the list of Element's children?

Full Access
Question # 33

You want to test if a string matches a relatively complex pattern. Which of the following functions can you use? (Choose 2)

A.

match()

B.

preg_match()

C.

ereg()

D.

regex()

Full Access
Question # 34

Which function can help prevent cross-site scripting? (Choose 2)

A.

addslashes()

B.

htmlentities()

C.

htmlspecialchars()

D.

strip_tags()

E.

quotemeta()

Full Access
Question # 35

What will be the value of $b after running the following code?

$a = array('c', 'b', 'a');

$b = (array)$a;

A.

TRUE

B.

array('c', 'b', 'a')

C.

array(array('c', 'b', 'a'))

D.

None of the above

Full Access
Question # 36

In a typical web application the most used database action is...

A.

INSERT

B.

UPDATE

C.

SELECT

D.

CREATE

E.

ALTER

Full Access
Question # 37

What function can reverse the order of values in an array without the loss of key information?

A.

array_flip()

B.

array_reverse()

C.

rsort()

D.

krsort()

E.

array_multisort()

Full Access
Question # 38

What is the output of the following code?

str_pad('PHP', 10, 'P', STR_PAD_BOTH);

A.

H

B.

PHPPPPPPPP

C.

PPPPHPPPPP

D.

PPPPPPPPHP

Full Access