Winter Sale - Special Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: dpm65

Hot Vendors

200-530 Zend PHP 5.3 Certification Questions and Answers

Questions 4

Which of the following statements about SOAP is NOT true?

Options:

A.

SOAP is a request-/response-based protocol.

B.

SOAP can be transported using SMTP, HTTP and other protocols.

C.

SOAP requires developers to use WSDL.

D.

SOAP traffic via HTTP can be encrypted and compressed just like other HTTP requests.

Buy Now
Questions 5

What tags can always be used to begin a PHP script? (Choose 2)

Options:

A.

B.

C.

<%

D.

<%php

E.

<script language="php">

Buy Now
Questions 6

What is the output of the following code?

$first = "second";

$second = "first";

echo $$$first;

Options:

A.

first

B.

second

C.

an empty string

D.

an error

Buy Now
Questions 7

An HTML form has two buttons. After submitting the form, how could you determine with PHP which button was clicked?

Options:

A.

An HTML form may only have one button.

B.

Hook up JavaScript the form to add a value to the URL depending on which button has been clicked.

C.

Put the two buttons in individual form elements with different action attribute.

D.

Assign name and value attributes to each button and use $_GET or $_POST to find out which button has been clicked.

Buy Now
Questions 8

An object can be counted with count() and sizeof() if it…..

Options:

A.

implements ArrayAccess

B.

has a public__count() method

C.

was cast to an object from an array

D.

None of the above

Buy Now
Questions 9

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

//foo[bar/@id=5]

Options:

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

Buy Now
Questions 10

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

Options:

Buy Now
Questions 11

What is the output of the following code?

200-530 Question 11

Options:

Buy Now
Questions 12

What is the file locking mode that should be used when writing to a file?

Options:

A.

LOCK_UN

B.

LOCK_SH

C.

LOCK_EX

D.

LOCK_NB

Buy Now
Questions 13

How can you redirect a client to another page using PHP?

Options:

A.

header('Location: /another_page.php');

B.

header('Content-Location: /another_page.php');

C.

header('Redirect: /another_page.php');

D.

header('Redirect: /another_page.php', 1, 302);

E.

header('HTTP/1.1 302 /another_page.php');

Buy Now
Questions 14

How can the line on which HTTP headers were sent inside a script be determined?

Options:

A.

Using the headers_sent() function.

B.

Using the output_start() function.

C.

Using the ob_start() function.

D.

Cannot be determined

Buy Now
Questions 15

What function is ideal for outputting contents of a static file to screen?

Options:

A.

file_get_contents()

B.

readfile()

C.

fread()

D.

include()

E.

require()

F.

file()

Buy Now
Questions 16

A/hen comparing prepared statements and regular, application-constructed SQL statements, which of the following is true?

Options:

A.

Prepared statements are faster

B.

Prepared statements are always shorter

C.

Prepared statements are more secure

D.

Prepared statements are easier to develop

E.

None of the above

Buy Now
Questions 17

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 18

What happens if you try to access a property whose name is defined in a parent class as private, and is not declared in the current class?

Options:

A.

An E_NOTICE error will be triggered.

B.

An E_ERROR error will be triggered.

C.

An E_WARNING error will be triggered.

D.

No errors will be triggered

Buy Now
Questions 19

What function returns the filename component of the file's path:

Options:

A.

dirname()

realpath()

B.

basename()

C.

pathinfo()

D.

parse_url()

Buy Now
Questions 20

What is the output of the following code?

200-530 Question 20

Options:

Buy Now
Questions 21

Which is the most efficient way to determine if a key is present in an array, assuming the array has no NULL values?

Options:

A.

in_array('key', array_keys($a))

B.

isset($a['key'])

C.

array_key_exists('key', $a)

D.

None of the above

Buy Now
Questions 22

Consider the following XML code:

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];

Buy Now
Questions 23

After executing a SELECT query on a database server,

Options:

A.

All data is immediately transmitted to PHP

B.

All data will be transmitted on-demand to PHP

C.

None of the above

Buy Now
Questions 24

An HTML form contains this form element

<input type="file" name="myFile" />

When this form is submitted, the following PHP code gets executed:

move_uploaded_file(

$_FILES['myFile']['tmp_name'],

'uploads/' . $_FILES['myFile']['name']);

Which of the following actions must be taken before this code may go into production?

(Choose 2)

Options:

A.

Check with is_uploaded_file() whether the uploaded file $_FILES['myFile']['tmp_name'] is valid

B.

Sanitize the file name in $_FILES['myFile']['name'] because this value is not consistent among web browsers

C.

Check the charset encoding of the HTTP request to see whether it matches the encoding of the uploaded file

D.

Sanitize the file name in $_FILES['myFile']['name'] because this value could be forged

E.

Use $HTTP_POST_FILES instead of $_FILES to maintain upwards compatibility

Buy Now
Questions 25

How can XML parsing errors be suppressed in the SimpleXML extension?

Options:

A.

error_reporting(E_ALL^E_NOTICE);

B.

simplexml_disable_errors(TRUE);

C.

simplexml_ignore_errors(TRUE);

D.

libxml_use_internal_errors(TRUE);

E.

simplexml_load_file("file.xml", LIBXML_NOERROR);

Buy Now
Questions 26

Which technique should be used to speed up joins without changing their results?

Options:

A.

Add indices on joined columns

B.

Add a WHERE clause

C.

Add a LIMIT clause

D.

Use an inner join

Buy Now
Questions 27

Given the following code, what is correct?

function f(stdClass &$x = NULL) { $x = 42;

}

$z = new stdClass;

f($z);

var_dump($z);

Options:

A.

Error: Typehints cannot be NULL

B.

Error: Typehints cannot be references

C.

Result is NULL

D.

Result is object of type stdClass

E.

Result is 42

Buy Now
Questions 28

Given a JSON-encoded string, which code sample correctly indicates how to decode the string to native PHP values?

200-530 Question 28

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Buy Now
Questions 29

What is the ideal method of copying data between two opened files?

Options:

A.

copy($source_file, $destination_file);

B.

copy(destination_file, $source_file);

C.

stream_copy_to_stream($source_file, $destination_file);

D.

stream_copy_to_stream($destination_file, $source_file);

E.

stream_bucket_prepend($source_file, $destination_file);

Buy Now
Questions 30

You analyze the code of a collegue and see, it uses the function strcasecmp. You try it out to see what it does and use the following function call:

strcasecmp('hello my dear!', 'Hello my DEAR!');

The function call returns "0". What does that mean?

Options:

A.

String 1 is less than string 2.

B.

The strings are considered equal.

C.

String 2 is less than string 1.

D.

The strings have equal length.

Buy Now
Questions 31

When retrieving data from URLs, what are valid ways to make sure all file_get_contents calls send a certain user agent string? (Choose 2)

200-530 Question 31

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Buy Now
Questions 32

What does the __FILE__ constant contain?

Options:

A.

The filename of the current script.

B.

The full path to the current script.

C.

The URL of the request made.

D.

The path to the main script.

Buy Now
Questions 33

When a browser requests an image identified by an img tag, it never sends a Cookie header.

Options:

A.

TRUE

B.

FALSE

Buy Now
Questions 34

Consider the following code. What can be said about the call to file_get_contents?

200-530 Question 34

Options:

A.

A GET request will be performed on https://example.com/submit.php

B.

A POST request will be performed on https://example com/submit.php

C.

An error will be displayed

Buy Now
Questions 35

What is the output of the following code?

200-530 Question 35

Options:

A.

0

B.

An integer overflow error

C.

A warning, because $x1 is not set

D.

A warning, because $x2 is not set

E.

A floating-point overflow error

F.

Nothing

Buy Now
Questions 36

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\?

Buy Now
Questions 37

Your application needs to handle file uploads performed with HTTP PUT. How can you retrieve this data?

Options:

A.

php://input stream

B.

php://upload stream

C.

$_FILES superglobal

D.

$_PUT superglobal

Buy Now
Questions 38

What will the following code piece print?

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

Options:

A.

Applas end benenes

B.

Epplas end benenes

C.

Apples and bananas

D.

Applas end bananas

Buy Now
Exam Code: 200-530
Exam Name: Zend PHP 5.3 Certification
Last Update: Nov 16, 2024
Questions: 254

PDF + Testing Engine

$56  $159.99

Testing Engine

$42  $119.99
buy now 200-530 testing engine

PDF (Q&A)

$35  $99.99
buy now 200-530 pdf
dumpsmate guaranteed to pass
24/7 Customer Support

DumpsMate's team of experts is always available to respond your queries on exam preparation. Get professional answers on any topic of the certification syllabus. Our experts will thoroughly satisfy you.

Site Secure

mcafee secure

TESTED 21 Nov 2024