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

200-530 Zend PHP 5.3 Certification Questions and Answers

Questions 4

After running this sort, what will be the value of $b?

$a = array('_!', 'def', 0);

$b = sort($a);

Options:

A.

array(0, 'def', '_!')

B.

array('_!', 0, 'def')

C.

array('def', 0, '_!)

D.

None of the above

Buy Now
Questions 5

What super-global should be used to access information about uploaded files via a POST request?

Options:

A.

$_SERVER

B.

$_ENV

C.

$_POST

D.

$_FILES

E.

$_GET

Buy Now
Questions 6

How can precisely one byte be read from a file, pointed by $fp? (Choose 2)

Options:

A.

fread($fp, 1);

B.

fgets($fp, 1);

C.

fgetss($fp, 1);

D.

fgetc($fp);

E.

All of the above

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

Which methods can be used to overload object properties? (Choose 2)

Options:

A.

set(), get()

B.

__set(), __get()

C.

__put(), __receive(), __exists()

D.

set(), get(), isset()

E.

__isset(), __unset()

Buy Now
Questions 9

Which of the following statements are NOT true?

Options:

A.

SimpleXML allows removal of attributes.

B.

SimpleXML allows addition of new attributes.

C.

SimpleXML allows removal of nodes.

D.

SimpleXML allows addition of new nodes.

E.

None of the above

Buy Now
Questions 10

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

Options:

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

Buy Now
Questions 11

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 12

Transitions can be used to: (Choose 2)

Options:

A.

Recover from errors in case of a power outage or a failure in the SQL connection

B.

Ensure that the data is properly formatted

C.

Ensure that either all statements are performed properly, or that none of them are.

D.

Recover from user errors

Buy Now
Questions 13

You want to present the following formatted number: "999.000.000,00". Which function call is correct?

Options:

A.

print format_number(999000000);

B.

print number_format(999000000);

C.

print number_format(999000000, 2, ',', '.');

D.

print number_format(999000000, 2);

E.

print_number(999000000, 2, ',', '.')

Buy Now
Questions 14

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

Options:

A.

array_flip()

B.

array_reverse()

C.

rsort()

D.

krsort()

E.

array_multisort()

Buy Now
Questions 15

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

Options:

A.

WSDL

B.

UDDI

C.

SOAP

D.

XLANG

Buy Now
Questions 16

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

Options:

A.

XML-RPC

B.

SOAP

C.

WSDL

D.

UDDI

Buy Now
Questions 17

Which of the following statements is NOT correct?

Options:

A.

Only methods can have type hints

B.

Typehints can be optional

C.

Typehints can be references

Buy Now
Questions 18

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");

Buy Now
Questions 19

Which SPL class implements fixed-size storage?

Options:

Buy Now
Questions 20

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

One

Two

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

Buy Now
Questions 21

What parsing methodology is utilized by the SimpleXML extension?

Options:

A.

SAX

B.

DOM

C.

XPath

D.

Push/Pull Approach

E.

Expat

Buy Now
Questions 22

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 23

Which of the following statements about database connections are commonly true? (Choose 2)

Options:

A.

Database connections are closed after each SQL statement is executed

B.

Database connections are closed at the end of each request

C.

Database connections are only closed when the Web server shuts down

D.

A single database connection may serve more than one PHP application at the same time

Buy Now
Questions 24

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 25

Given the following array:

$a = array(28, 15, 77, 43);

Which function will remove the value 28 from $a?

Options:

A.

array_shift()

B.

array_pop()

C.

array_pull()

D.

array_unshift()

Buy Now
Questions 26

What is the output of the following code?

Options:

A.

false-false

B.

false-true

C.

true-false

D.

true-true

Buy Now
Questions 27

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 28

What is the output of the following code?

Options:

A.

A syntax error in the function declaration line

B.

An error, because null is not an instance of 'a'

C.

Nothing, because a null value is being passed to renderVal()

D.

NULL

Buy Now
Questions 29

Which session function can help to avoid session fixation?

Options:

A.

session_is_registered()

B.

session_register()

C.

session_unregister()

D.

session_regenerate_id()

E.

None of the above.

Buy Now
Questions 30

After performing the following operations:

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

$a = array_keys(array_flip($a));

What will be the value of $a?

Options:

A.

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

B.

array(2, 1, 0)

C.

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

D.

None of the above

Buy Now
Questions 31

Which parts of the text are matched in the following regular expression?

Options:

A.

bang bong bung

B.

bang bonged bung

C.

big bang bong bung

D.

big bang bung

Buy Now
Questions 32

Which of the following statements about exceptions are correct? (Choose 2)

Options:

A.

you can only throw classes derived from Exception

B.

a try block can have multiple catch blocks

C.

a try block must not be followed by a catch block

D.

try blocks cannot contain nested try blocks

Buy Now
Questions 33

What is the output of the following code?

1

2 for ($i = 0; $i < 1.02; $i += 0.17) {

3 $a[$i] = $i;

4 }

5 echo count($a);

6 ?>

Options:

A.

0

B.

1

C.

2

D.

6

E.

7

Buy Now
Questions 34

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)

Options:

A.

strip_tags()

B.

htmlentities()

C.

htmltidy()

D.

htmlspecialchars()

E.

showhtml()

Buy Now
Questions 35

Which of the following encryption standards provides symmetric key encryption? (Choose 2)

Options:

A.

AES

B.

Blowfish

C.

DES

D.

RSA

Buy Now
Questions 36

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

Buy Now
Questions 37

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 38

Which of the following code snippets writes the content of the “source.txt” to “target.txt”?

Options:

A.

file_put_contents("target.txt", fopen("source.txt", "r"));

B.

file_put_contents("target.txt", readfile("source.txt"));

C.

file_put_contents("target.txt", join(file("source.txt"), ""));

D.

file_put_contents("target.txt", file_get_contents("source.txt"));

E.

$handle = fopen("target.txt", "w+"); fwrite($handle,

file_get_contents("source.txt")); fclose($handle);

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

PDF + Testing Engine

$130

Testing Engine

$95

PDF (Q&A)

$80