Easter Sale Special 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: exams65

Zend PHP 5.3 Certification Question and Answers

Zend PHP 5.3 Certification

Last Update May 14, 2024
Total Questions : 254

We are offering FREE 200-530 Zend exam questions. All you do is to just go and sign up. Give your details, prepare 200-530 free exam questions and then go for complete pool of Zend PHP 5.3 Certification test questions that will help you more.

200-530 pdf

200-530 PDF

$35  $99.99
200-530 Engine

200-530 Testing Engine

$42  $119.99
200-530 PDF + Engine

200-530 PDF + Testing Engine

$56  $159.99
Questions 1

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

Discussion 0
Questions 2

Consider the following table data and PHP code. What is the outcome?

Table data (table name "users" with primary key "Id"):

PHP code (assume the PDO connection is correctly established):

Options:

A.  

The database will return no rows

B.  

The value of $result will be an array

C.  

The value of $result will be empty

D.  

The value of $result will be 'gamma@exmple.net'.

Discussion 0
Questions 3

What is the output of the following code?

try {

class MyException extends Exception {};

try {

throw new MyException;

}

catch (Exception $e) {

echo "1:";

throw $e;

}c

atch (MyException $e) {

echo "2:";

throw $e;

}}

catch (Exception $e) {

echo get_class($e);

}

Options:

A.  

A parser error, try cannot be followd by multiple catch

B.  

1:

C.  

2:

D.  

1:Exception

E.  

1:MyException

F.  

2:MyException

G.  

MyException

Discussion 0
Questions 4

What is the maximum size of the VARCHAR column type?

Options:

A.  

255 Bytes

B.  

255 Characters

C.  

512 Bytes

D.  

512 Characters

E.  

No Limit

Discussion 0
Questions 5

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)

Options:

A.  

Option A

B.  

Option B

C.  

Option C

D.  

Option D

Discussion 0
Questions 6

What is the return value of the following code?

strpos("me myself and I", "m", 2)

Options:

A.  

2

B.  

3

C.  

4

D.  

0

E.  

1

Discussion 0
Questions 7

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

Options:

A.  

$_GET['ALL']

B.  

$_SERVER['QUERY']

C.  

$_SERVER['QUERY_STRING']

D.  

$_ENV['QUERY']

E.  

$QUERY_STRING

Discussion 0
Questions 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?

Options:

A.  

Option A

B.  

Option B

C.  

Option C

D.  

Option D

Discussion 0
Questions 9

Under which circumstances is the $_SESSION super-global available? (Choose 2)

Options:

A.  

If session_start() was called.

B.  

If session.auto_start INI setting is enabled.

C.  

Always available in PHP 5.

D.  

If a valid session id is passed via GET, POST or COOKIE.

E.  

If register_globals are enabled.

Discussion 0
Questions 10

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

Options:

A.  

Since 5.1 reflection is an extension that can be disabled

B.  

Reflection is present in any installation of PHP 5 or later

C.  

Reflection only allows to reflect on built-in classes

D.  

Built-in classes can be reflected on command line using php –rc

Discussion 0
Questions 11

You want to access the 3rd character of a string, contained in the variable $test. Which of the following possibilities work?(Choose 2)

Options:

A.  

echo $test(3)

B.  

echo $test[2];

C.  

echo $test(2);

D.  

echo $test{2};

E.  

echo $test{3}

Discussion 0
Questions 12

What is the output of the following code?

Options:

A.  

An error

B.  

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

C.  

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

D.  

Nothing

Discussion 0
Questions 13

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

Discussion 0
Questions 14

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

Discussion 0
Questions 15

Do constants have global scope or local scope?

Options:

A.  

They have global scope

B.  

They have local scope

C.  

They have both global and local scope

D.  

They have neither global nor local scope

Discussion 0
Questions 16

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

Options:

A.  

WSDL

B.  

UDDI

C.  

SOAP

D.  

XLANG

Discussion 0
Questions 17

Which of the following rules must every correct XML document adhere to? (Choose 2)

Options:

A.  

It has to be well-formed.

B.  

It has to be valid.

C.  

It has to be associated to a DTD.

D.  

It may only contain UTF-8 encoded characters.

Discussion 0
Questions 18

What is the output of the following code?

Options:

A.  

0

B.  

1

C.  

2

D.  

3

Discussion 0
Questions 19

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

Discussion 0
Questions 20

What function should be used to escape command line arguments that are passed to commands executed from PHP?

Options:

A.  

addslashes()

B.  

quotemeta()

C.  

escapeshellarg()

D.  

escapeshellcmd()

E.  

passthru()

Discussion 0
Questions 21

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

Options:

Discussion 0
Questions 22

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.

Discussion 0
Questions 23

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.

Discussion 0
Questions 24

Is the following code piece E_STRICT compliant?

final class Testing {

var $test = 0;

public function tester() {

return "Tested!";

}}

Options:

A.  

Yes

B.  

No

Discussion 0
Questions 25

Is the following code piece E_STRICT compliant?

final class Testing {

private $test;

public function tester() {

return "Tested!";

}}

Options:

A.  

Yes

B.  

No

Discussion 0
Questions 26

Which sentence describes the following regular expression match?

preg_match('/^\d*(?:\.[0-9]+)?$/', $test);

Options:

A.  

It matches float numbers with thousand separators.

B.  

It matches float numbers without thousand separators.

C.  

It matches binary integer numbers.

D.  

It matches any string.

E.  

It does not match anything

Discussion 0
Questions 27

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

Options:

A.  

header()

B.  

$_COOKE

C.  

setcookie()

D.  

setrawcookie()

Discussion 0
Questions 28

Which string will be returned by the following function call?

$test = '/etc/conf.d/wireless';

substr($test, strrpos($test, '/'));

Options:

A.  

""

B.  

"/wireless"

C.  

"wireless"

D.  

"/conf.d/wireless"

E.  

"/etc"

Discussion 0
Questions 29

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.

Discussion 0
Questions 30

What is the output of the following code?

Options:

Discussion 0
Questions 31

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.

Discussion 0
Questions 32

What is the difference between isset() and other is_*() functions (is_alpha(), is_number(), etc.)?

Options:

A.  

isset() is a function call and is_*() are not function calls

B.  

is_*() are language constructs and isset() is not a language construct

C.  

c) isset() is a language construct and is_*() are not language constructs

D.  

d) is_*() return a value whereas isset() does not

Discussion 0
Questions 33

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.

Discussion 0
Questions 34

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

Options:

A.  

symlink()

B.  

stat()

C.  

fstat()

D.  

lstat()

E.  

readlink()

Discussion 0
Questions 35

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.

Discussion 0
Questions 36

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

Discussion 0
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

Discussion 0
Questions 38

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

Discussion 0