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: 2 / 8
Total 254 questions

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"

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

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

What will the following code print?

echo addslashes('I am a small "HTML" string, which is

\'invalid\'.');

A.

I am a small "HTML" string, which is 'invalid'.

B.

I am a small \"HTML\" string, which is \'invalid\'.

C.

I am a small \"HTML\" string, which is \\'invalid\\'.

D.

I am a small \"HTML\" string, which is \\\'invalid\\\'.

E.

I am a \small\<\/b\> "HTML" string, which is 'invalid'\<\/u\>.

How can XML parsing errors be suppressed in the SimpleXML extension?

A.

error_reporting(E_ALL^E_NOTICE);

B.

simplexml_disable_errors(TRUE);

C.

simplexml_ignore_errors(TRUE);

D.

libxml_use_internal_errors(TRUE);

E.

simplexml_load_file("file.xml", LIBXML_NOERROR);

What function can be used to retrieve an array of current options for a stream context?

A.

stream_context_get_params

B.

stream_context_get_default

C.

stream_context_get_options

D.

The 'options' element of the stream_get_rneta_data return value

What DOM method is used to load HTML files?

A.

load()

B.

loadXML()

C.

loadHTML()

D.

loadHTMLFile()

You are creating an application that generates invoices in a variety of formats, including PDF, ODS and HTML. Each of these formats is represented as a PHP class in your application. While some of the operations can be performed on all of the different formats (such as saving and loading), other operations may be specific to one or two of the formats (such as setting as read only). Which design pattern should you use for this application?

A.

Adapter

B.

Factory

C.

MVC

D.

Singleton

How can precisely one byte be read from a file, pointed by $fp? (Choose 2)

A.

fread($fp, 1);

B.

fgets($fp, 1);

C.

fgetss($fp, 1);

D.

fgetc($fp);

E.

All of the above

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

Is the following code piece E_STRICT compliant?

final class Testing {

private $test;

public function tester() {

return "Tested!";

}}

A.

Yes

B.

No