Labour Day Sale - Limited Time 60% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 575363r9

Welcome To DumpsPedia

200-530 Sample Questions Answers

Questions 4

Transactions are used to:

Options:

A.

guarantee high performance

B.

secure data consistency

C.

secure access to the database

D.

reduce the database server overhead

E.

reduce code size in PHP

Buy Now
Questions 5

When setting HTTP headers from PHP, how can you make sure that your application sends the same header twice, with different values?

Options:

A.

Set the second argument of the header() function to false

B.

PHP does that automatically

C.

One kind of header may only be sent once

D.

Use the header_add() function

Buy Now
Questions 6

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 7

You want to parse a URL into its single parts. Which function do you choose?

Options:

A.

parse_url()

B.

url_parse()

C.

get_url_parts()

D.

geturlparts()

Buy Now
Questions 8

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

Options:

A.

xpathQuery()

B.

xpath()

C.

simpleXMLXpath()

D.

query()

E.

evaluate()

Buy Now
Questions 9

What is the output of the following code?

Options:

Buy Now
Questions 10

What is the result of the following code?

Options:

A.

Parse error

B.

3.14

C.

PI

D.

T::PI

Buy Now
Questions 11

What type of class definition can be used to define multiple inheritance?

Options:

A.

Class

B.

Abstract

C.

Interface

D.

Final

Buy Now
Questions 12

Which of the following is correct? (Choose 2)

1) A class can extend more than one class.

2) A class can implement more than one class.

3) A class can extend more than one interface.

4) A class can implement more than one interface.

5) An interface can extend more than one interface.

6) An interface can implement more than one interface.

Options:

A.

1)

B.

2)

C.

3)

D.

4)

E.

5)

F.

6)

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

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

Options:

A.

It is possible to specify more than one __autoload function

B.

__autoload receives the missing class name all lowercased

C.

__autoload is being called for missing interfaces

D.

Inside __autoload missing classes trigger __autoload

Buy Now
Questions 15

What is the best way to run PHP 4 and PHP 5 side-by-side on the same Apache server?

Options:

A.

Run one as an Apache module, the other as a CGI binary.

B.

Run both as a CGI binary.

C.

Just use .php4 for PHP 4, and .php for PHP 5.

D.

Use .php for both but use different document roots.

Buy Now
Questions 16

What function allows resizing of PHP's file write buffer?

Options:

A.

ob_start()

B.

set_write_buffer()

C.

stream_set_write_buffer()

D.

Change the output_buffering INI setting via ini_set() function

Buy Now
Questions 17

What will the following function call print?

printf('%010.6f', 22);

Options:

A.

22

B.

22.00

C.

022.000000

D.

22.000000

Buy Now
Questions 18

What is the name of the PHP function used to automatically load non-yet defined classes?

Options:

A.

Autoload()

B.

__autoload()

C.

__catch()

D.

Load()

E.

loadClass()

Buy Now
Questions 19

What is the function of backtick (`) characters in PHP?

Options:

A.

Same as single-quotes, used to enclose strings.

B.

Escape operators.

C.

No special meaning.

D.

Execute the enclosed string as a command.

E.

Error control operators.

Buy Now
Questions 20

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 21

An HTML form contains this form element

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 22

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 23

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 24

Which combination of the following filtering techniques prevents cross-site scripting (XSS) vulnerabilities?

Options:

A.

Strip all occurrences of the string $lt; script.

B.

Strip all occurrences of the string javascript.

C.

Enable magic_quotes_gpc .

D.

None of the above.

Buy Now
Questions 25

What is the output of the following code?

Options:

A.

false-false

B.

false-true

C.

true-false

D.

true-true

Buy Now
Questions 26

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

Options:

A.

Remote Code Injection

B.

Cross-Site Request Forgeries

C.

Email Injection

D.

None of the above

Buy Now
Questions 27

Which of the following data types cannot be directly manipulated by the client?

Options:

A.

Cookie Data

B.

Session Data

C.

Remote IP Address

D.

User Agent

Buy Now
Questions 28

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 29

Which of the following did not result in an output error in PHP 4 but does in PHP 5?

Options:

A.

Using 'var' as an access modifier.

B.

Assigning a new object instance to $this in a constructor.

C.

Passing an object by-reference.

D.

Passing an object by-value.

Buy Now
Questions 30

What is the output of the following code?

1

2 function append($str)

3 {

4 $str = $str.'append';

5 }

6

7 function prepend(&$str)

8 {

9 $str = 'prepend'.$str;

10 }

11

12 $string = 'zce';

13 append(prepend($string));

14 echo $string;

15 ?>

Options:

A.

zceappend

B.

prependzceappend

C.

prependzce

D.

zce

Buy Now
Questions 31

What is the result of the following bitwise operation in PHP?

1 ^ 2

Options:

A.

1

B.

3

C.

2

D.

4

Buy Now
Questions 32

Which options do you have in PHP to set the expiry date of a session?

Options:

A.

Set the session.duration directive in php.ini

B.

Set session cookie expiry date locally via session_set_cookie_params()

C.

Set session expiry date locally via session_cache_expire()

D.

None of the above

Buy Now
Questions 33

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 34

What is the result of the following code?

Options:

A.

42

B.

43

C.

Parse error

Buy Now
Questions 35

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 36

Is the following code piece E_STRICT compliant?

final class Testing {

var $test = 0;

public function tester() {

return "Tested!";

}}

Options:

A.

Yes

B.

No

Buy Now
Questions 37

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 38

In the function setcookie() what does the 3rd parameter specify?

Options:

A.

The name of the cookie.

B.

The expiration time of the cookie.

C.

The value of the cookie.

D.

The IP address of the cookie's client.

Buy Now
Exam Code: 200-530
Exam Name: Zend PHP 5.3 Certification
Last Update: Apr 23, 2024
Questions: 254
$64  $159.99
$48  $119.99
$40  $99.99
buy now 200-530