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

200-500 Zend PHP 5 Certification Questions and Answers

Questions 4

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 5

What function returns the filename component of the file's path:

Options:

A.

dirname()

realpath()

B.

basename()

C.

pathinfo()

D.

parse_url()

Buy Now
Questions 6

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 7

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 8

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 9

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 10

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 11

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 12

What is the length of a string returned by: md5(rand(), TRUE);

Options:

A.

Depends on the value returned by rand() function

B.

32

C.

24

D.

16

E.

64

Buy Now
Questions 13

What is the output of the following code?

$first = "second";

$second = "first";

echo $$$first;

Options:

A.

first

B.

second

C.

an empty string

D.

an error

Buy Now
Questions 14

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

Buy Now
Questions 15

Webservices are primarily meant to support

Options:

A.

business-to-business communication

B.

machine-to-machine interaction

C.

improved accessibility for websites

Buy Now
Questions 16

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 17

What is the purpose of the open_basedir directive?

Options:

A.

Provide a list of directories where PHP should search for files.

B.

Provide a list of directories from which PHP can open files.

C.

Provide a list of directories from which PHP cannot open files.

D.

Directory where the PHP extensions can be found.

Buy Now
Questions 18

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 19

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.

Options:

A.

a)

B.

b)

C.

c)

D.

d)

E.

e)

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

What is the result of the following code?

$a = 1;

$b = "1";

var_dump($a === $b);

Options:

A.

bool(true

B.

bool(false)

C.

Parser error

D.

NULL

Buy Now
Questions 22

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

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

Buy Now
Questions 25

What is the output of the following code?

class test {

public $value = 0;

function test() {

$this->value = 1;

} function __construct() {

$this->value = 2;

}}

$object = new test();

echo $object->value;

Options:

A.

2

B.

1

C.

0

D.

3

E.

No Output, PHP will generate an error message.

Buy Now
Questions 26

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

Buy Now
Questions 27

The following form is loaded in a recent browser and submitted, with the second list element selected:

In the server-side PHP code to deal with the form data, what is the value of $_POST['list']?

Options:

A.

1

B.

2

C.

two

D.

null (since the value attribute of the list has not been set)

Buy Now
Questions 28

How do you allow the caller to submit a variable number of arguments to a function?

Options:

A.

Using a prototype like function test(... $parameters).

B.

Using a prototype like function test() and the function func_get_args() inside the function body.

C.

Using a prototype like function test($parameters[]).

D.

Using a prototype like function test() and the function get_variable_args() inside the function body.

E.

This is not possible in PHP.

Buy Now
Questions 29

What visibility denies access to properties and methods outside of the class?

Options:

A.

static

B.

protected

C.

private

D.

public

E.

const

Buy Now
Questions 30

Which of the following configuration directives increase the risk of remote code injection when enabled? (Choose 2)

Options:

A.

allow_url_fopen

B.

register_globals

C.

magic_quotes_gpc

D.

safe_mode

Buy Now
Questions 31

What is the output of the following code?

1

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

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

4 ?>

Options:

A.

abc

B.

cd

C.

0d

Buy Now
Questions 32

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

200-500 PDF

$28  $80
200-500 Engine

200-500 Testing Engine

$33.25  $95
200-500 PDF + Engine

200-500 PDF + Testing Engine

$45.5  $130