Summer Sale Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: ecus65

Zend 200-530 - Zend PHP 5.3 Certification

Page: 3 / 8
Total 254 questions

Which of the following statements about database connections are commonly true? (Choose 2)

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

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

A.

Cookie Data

B.

Session Data

C.

Remote IP Address

D.

User Agent

How can the constant defined below be accessed from within PHP?

class myClass {

const FOO = 'BAR';

}

A.

myClass::$FOO

B.

myClass::$$FOO

C.

myClass::FOO

D.

myClass::foo

E.

$foo::myClass

What does the __FILE__ constant contain?

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.

What will be the result of the following operation?

array_combine(array("A","B","C"), array(1,2,3));

A.

array("A","B",C",1,2,3)

B.

array(1,2,3,"A","B",C")

C.

array("A"=>1,"B"=>2,"C"=>3)

D.

array(1=>"A",2=>"B",3=>"C")

E.

array(1,2,3)

What is the difference between "print" and "echo"?

A.

There is no difference.

B.

Print returns length of data printed and echo does not

C.

Echo returns length of the data printed and print does not

D.

Print buffers the output, while echo does not

E.

None of the above

What is the output of the following code?

$a = 3;

switch ($a) {

case 1: echo 'one'; break;

case 2: echo 'two'; break;

default: echo 'four'; break;

case 3: echo 'three'; break;

}

A.

one

B.

two

C.

three

D.

four

What is the output of the following code?

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

A.

you can only throw classes derived from Exception

B.

a try block can have multiple catch blocks

C.

a try block must not be followed by a catch block

D.

try blocks cannot contain nested try blocks

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

A.

A) rmdir()

B.

B) unlink()

C.

C) rm()

D.

D) delete()

E.

E) delete_file()