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

200-530 Exam Dumps - Zend PHP 5.3 Certification

Question # 4

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

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

Full Access
Question # 5

What is the content of $c after the following code has executed?

$a = 2;

$b = 3;

$c = ($a++ * ++$b);

A.

0

B.

5

C.

8

D.

4

Full Access
Question # 6

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

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.

Full Access
Question # 7

Which of the following statements about PHP is true? (Choose 3)

A.

A final class can be derived.

B.

A final class may be instantiated.

C.

A class with a final function may be derived.

D.

Static functions can be final.

E.

Properties can be final.

Full Access
Question # 8

What will the $array array contain at the end of this script?

1

2 function modifyArray (&$array)

3 {

4 foreach ($array as &$value)

5 {

6 $value = $value + 1;

7 }

8

9 $value = $value + 2;

10 }

11

12 $array = array (1, 2, 3);

13 modifyArray($array);

14 ?>

A.

2, 3, 4

B.

2, 3, 6

C.

4, 5, 6

D.

1, 2, 3

Full Access
Question # 9

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 # 10

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?

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

Full Access
Question # 11

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 # 12

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 # 13

What can NOT be used to send a cookie from within a PHP application?

A.

header()

B.

$_COOKE

C.

setcookie()

D.

setrawcookie()

Full Access
Question # 14

What is the output of the following script?

1

2 function fibonacci ($x1, $x2)

3 {

4 return $x1 + $x2;

5 }

6

7 $x1 = 0;

8 $x2 = 1;

9

10 for ($i = 0; $i < 10; $i++) {

11 echo fibonacci($x1, $x2) . ',';

12 }

13 ?>

A.

1,2,3,4,5,6,7,8,9

B.

1,2,3,4,5,6,7,8,9,10,

C.

1,2,3,5,8,13,21,34,55,89,

D.

1,1,1,1,1,1,1,1,1,1,

Full Access
Question # 15

Where does the session extension store the session data by default?

A.

SQLite Database

B.

MySQL Database

C.

Shared Memory

D.

File system

E.

Session Server

Full Access
Question # 16

Given the default PHP configuration, how can all of the parameters provided via GET be accessed in a form of a string?

A.

$_GET['ALL']

B.

$_SERVER['QUERY']

C.

$_SERVER['QUERY_STRING']

D.

$_ENV['QUERY']

E.

$QUERY_STRING

Full Access
Question # 17

Consider the following two files. When you run test.php, what would the output look like?

A.

12, 12

B.

12, 24

C.

24, 12

D.

24, 24

E.

PHP Fetal error. Cannot redeclare strlen()

Full Access
Question # 18

When a transaction reports no affected rows, it means that: (Choose 2)

A.

The transaction failed

B.

The transaction affected no lines

C.

The transaction was rolled back

D.

The transaction was committed without error

Full Access
Question # 19

Which of the following is NOT possible using reflection?

A.

Analysing of nearly any aspect of classes and interfaces

B.

Analysing of nearly any aspect of functions

C.

Adding class methods

D.

Implement dynamic construction (new with variable class name)

Full Access
Question # 20

You have a variable $test that contains sub-strings divided by a dash ("-"). How can you put every sub-string into an array element easily?

A.

extract($test, "-");

B.

explode("-", $test);

C.

to_array($test, "-");

D.

explode($test, "-");

Full Access
Question # 21

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

A.

$_SERVER

B.

$_ENV

C.

$GLOBALS

D.

$_POST

E.

$_ARGV

Full Access
Question # 22

What is the output of the following code?

$a = 'a'; $b = 'b';

echo isset($c) ? $a.$b.$c : ($c = 'c').'d';

A.

abc

B.

cd

C.

0d

Full Access
Question # 23

Some databases support the LIMIT clause. It is a method to ensure that ...

A.

only certain rows are deleted in DELETE queries.

B.

only a defined subset of rows are read in SELECT queries.

C.

only certain users can access the database.

Full Access
Question # 24

What function is used to retrieve all available information about a symbolic link?

A.

symlink()

B.

stat()

C.

fstat()

D.

lstat()

E.

readlink()

Full Access
Question # 25

Which of the following are valid SoapClient calls? (Choose 2)

A.

$client = new SoapClient("weather.wsdl");

B.

$client = new SoapClient;

C.

$client = new SoapClient(null, array("location" =>

"http://example.com/weather ", "uri" => "http://test-uri.com/ "));

D.

$client = new SoapClient(null, array());

Full Access
Question # 26

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 # 27

What is the output of the following code?

A.

false-false

B.

false-true

C.

true-false

D.

true-true

Full Access
Question # 28

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?

A.

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

B.

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

C.

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

D.

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

Full Access
Question # 29

Which of the following data types is implicitly passed by reference in PHP 5 while it is passed by value in PHP 4?

A.

Class

B.

String

C.

Object

D.

Array

Full Access
Question # 30

What is the output of the following code?

echo "22" + "0.2", 23 . 1;

A.

220.2231

B.

22.2231

C.

22.2,231

D.

56.2

Full Access
Question # 31

Which requirements need NOT be met so that file uploads work?

A.

The PHP directive file_uploads must be set to on

B.

The form's method attribute must be set to "post"

C.

Sate mode must be turned off so that the uploaded file an be written to the server

D.

The form's enctype attribute must be set to "multipart/form-data"

Full Access
Question # 32

Which of the following is used to find all PHP files under a certain directory?

A.

PHPIterator

B.

RecursiveTreelterator

C.

RecursiveDirectorylterator

D.

SplTempFileObject

Full Access
Question # 33

You want to run the following PHP 4 code with PHP 5. In the following example, which access modifier in PHP 5 is equivalent to "var"?

class Test {

var $tester;

}

A.

protected

B.

invisible

C.

public

D.

private

E.

outofscope

Full Access
Question # 34

What is the output of the following code?

Full Access
Question # 35

What is the output of the following code?

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

Full Access
Question # 36

Given the following array:

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

Which function will remove the value 28 from $a?

A.

array_shift()

B.

array_pop()

C.

array_pull()

D.

array_unshift()

Full Access
Question # 37

You work for a shared hosting provider, and your supervisor asks you to disable user scripts to dynamically load PHP extensions using the dl() function. How can you do this? (Choose 2)

A.

Set enable_dl to Off in the server's php.ini configuration file.

B.

Add dl to the current value of disable_functions in the server's php.ini configuration file.

C.

Add dl to the current value of disable_classes in the server's php.ini configuration file.

D.

Write a custom function called dl(), save it under the name prepend.inc and then set the auto_prepend_file directive to prepend.inc in php.ini.

Full Access
Question # 38

An unbuffered query will: (Choose 2)

A.

Return the first data faster

B.

Return all data faster

C.

Free connection faster for others scripts to use

D.

Use less memory

Full Access