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

Hot Vendors

200-500 Zend PHP 5 Certification Questions and Answers

Questions 4

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 5

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 6

When working with the MVC paradigma, the business logic should be implemented in which of the following components?

Options:

A.

Model

B.

View

C.

Controller

Buy Now
Questions 7

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 8

Which of the listed changes would you make to the following PHP 4 code in order to make it most compliant with PHP 5? (Choose 2)

class Car {

var $model;

function Car($model) {

$this->model = $model;

} function toString() {

return "I drive a $this->model.";

}}

$c = new Car('Dodge');

echo $c->toString();

?>

Options:

A.

Change var to public or private

B.

Change function Car to function_construct

C.

Change "I drive a $this->model." to "I drive a {$this->model}."

D.

Change function toString()to static function toString()

Buy Now
Questions 9

Is the following code piece E_STRICT compliant?

final class Testing {

private $test;

public function tester() {

return "Tested!";

}}

Options:

A.

Yes

B.

No

Buy Now
Questions 10

You need to escape special characters to use user input inside a regular expression. Which functions would you use? (Choose 2)

Options:

A.

addslashes()

B.

htmlentities()

C.

preg_quote()

D.

regex_quote()

E.

quotemeta()

Buy Now
Questions 11

What is the output of the folowing code?

1

2 echo '1' . (print '2') + 3;

3 ?>

Options:

A.

123

B.

213

C.

142

D.

214

E.

Syntax error

Buy Now
Questions 12

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 13

Which of the following parts must a XML document have in order to be well-formed?

Options:

A.

An XML declaration

B.

A root element

C.

A specified encoding

D.

A reference to either a DTD or an XML schema definition

Buy Now
Questions 14

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

Options:

A.

SQLite Database

B.

MySQL Database

C.

Shared Memory

D.

File system

E.

Session Server

Buy Now
Questions 15

What is the result of the following code:

class T

{ const A

=

42 + 1;

}

echo T::A;

Options:

A.

42

B.

43

C.

Parse error

Buy Now
Questions 16

Which of the following may be used in conjunction with CASE inside a SWITCH statement?

Options:

A.

A scalar

B.

An expression

C.

A boolean

D.

All of the above

Buy Now
Questions 17

Which one of the following technologies was not built into PHP before version 5?

Options:

A.

XSL

B.

SOAP

C.

DOM

D.

SAX

Buy Now
Questions 18

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

Buy Now
Questions 19

Which of the following XML declarations is NOT valid?

Options:

A.

B.

C.

D.

Buy Now
Questions 20

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
Questions 21

Which of the following keywords is not new in PHP 5?

Options:

A.

implements

B.

instanceof

C.

static

D.

abstract

Buy Now
Questions 22

What will the following function call return?

strstr('https://example.com/test/file.php ', '/');

Options:

A.

/example.com/

B.

/file.php

C.

file.php

D.

//example.com/test/file.php

Buy Now
Questions 23

How many array elements will be found in the return value of:

split(".", "

Options:

A.

B.C")

B.

2

C.

3

D.

1

E.

6

F.

4

Buy Now
Questions 24

Assume that you are using PHP s session management without cookies and want to make sure that session information does not get lost when redirecting the client to another URL. Which of the following functions do you need to achieve that? (Choose 3)

Options:

A.

header()

B.

session_id()

C.

session_info()

D.

session_name()

E.

session_write_close()

Buy Now
Questions 25

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 26

What PHP function can be used to remove a local file?

Options:

A.

A) rmdir()

B.

B) unlink()

C.

C) rm()

D.

D) delete()

E.

E) delete_file()

Buy Now
Questions 27

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 28

What is the purpose of the 4th argument to the file_get_contents() function?

Options:

A.

Indicate the number of bytes to read

B.

Specifies the stream context

C.

Indicates whether or not include_path should be used

D.

Identifies the starting offset

E.

None of the above

Buy Now
Questions 29

How to read a single line, no matter how long from an file opened in the example below?

$fp = fopen("my_file.txt", "w");

Options:

A.

fgets($fp);

B.

fgets($fp, -1);

C.

fread($fp, 1024);

D.

fgetss($fp);

E.

None of the above

Buy Now
Questions 30

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 31

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 32

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
Exam Code: 200-500
Exam Name: Zend PHP 5 Certification
Last Update: Nov 16, 2024
Questions: 219

PDF + Testing Engine

$56  $159.99

Testing Engine

$42  $119.99
buy now 200-500 testing engine

PDF (Q&A)

$35  $99.99
buy now 200-500 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