Black Friday Sale - Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 65percent

Welcome To DumpsPedia

200-530 Sample Questions Answers

Questions 4

Which of the following are valid identifiers (Choose 3)

Options:

A.

function 4You() { }

B.

function _4You() { }

C.

function object() { }

D.

$1 = "Hello";

E.

$_1 = "Hello World";

Buy Now
Questions 5

Can a private static member be accessed from a public static method of the same class?

Options:

A.

Yes

B.

No

C.

Only if the class is defined as an abstract

Buy Now
Questions 6

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?

Options:

A.

extract($test, "-");

B.

explode("-", $test);

C.

to_array($test, "-");

D.

explode($test, "-");

Buy Now
Questions 7

What is the output of the following code?

str_pad('PHP', 10, 'P', STR_PAD_BOTH);

Options:

A.

H

B.

PHPPPPPPPP

C.

PPPPHPPPPP

D.

PPPPPPPPHP

Buy Now
Questions 8

What DOM method is used to load HTML files?

Options:

A.

load()

B.

loadXML()

C.

loadHTML()

D.

loadHTMLFile()

Buy Now
Questions 9

Which of these protocols are NOT governed by the W3C in their latest versions? (Choose 2)

Options:

A.

XML-RPC

B.

SOAP

C.

WSDL

D.

UDDI

Buy Now
Questions 10

Transactions are used to:

Options:

A.

guarantee high performance

B.

secure data consistency

C.

secure access to the database

D.

reduce the database server overhead

E.

reduce code size in PHP

Buy Now
Questions 11

PHP's array functions such as array_values() and array_key_exists() can be used on an object if the object...

Options:

A.

implements Traversable

B.

is an instance of ArrayObject

C.

implements ArrayAccess

D.

None of the above

Buy Now
Questions 12

When checking whether two English words are pronounced alike, which function should be used for the best possible result?

Options:

A.

levenshtein()

B.

metaphone()

C.

similar_text()

D.

soundex()

Buy Now
Questions 13

What is the output of the following code?

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

Options:

A.

123

B.

213

C.

142

D.

214

E.

Syntax error

Buy Now
Questions 14

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 15

Consider the following code:

strspn($test, 'aeiou', 1);

The variable $test contains the string "You get certified".

What will the function call return?

Options:

A.

true

B.

false

C.

0

D.

1

E.

2

F.

3

Buy Now
Questions 16

What does the __FILE__ constant contain?

Options:

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.

Buy Now
Questions 17

What is the output of the following code?

printf('%4$d %2$s sit on 2 trees and eat %3$3.2f %1$s', "bananas",

"monkeys", 9, 99);

Options:

A.

%4$d %2$s sit on 2 trees and eat %3$3.2f %1$s

B.

99 monkeys sit on 2 trees and eat 9.00 bananas

C.

Monkeys Bananas sit on 2 trees and eat 9 99

D.

9 monkeys sit on 2 trees and eat 99 bananas

Buy Now
Questions 18

Which combination of the following filtering techniques prevents cross-site scripting (XSS) vulnerabilities?

Options:

A.

Strip all occurrences of the string $lt; script.

B.

Strip all occurrences of the string javascript.

C.

Enable magic_quotes_gpc .

D.

None of the above.

Buy Now
Questions 19

Which of the following is NOT a valid function declaration?

Options:

A.

function x ($x1 = array())

B.

function x (A $x1)

C.

function x (A $x1 = null)

D.

function x ($x1 = $x2)

Buy Now
Questions 20

What is the output of the following code?

Options:

Buy Now
Questions 21

A/hen comparing prepared statements and regular, application-constructed SQL statements, which of the following is true?

Options:

A.

Prepared statements are faster

B.

Prepared statements are always shorter

C.

Prepared statements are more secure

D.

Prepared statements are easier to develop

E.

None of the above

Buy Now
Questions 22

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 23

How can you determine if magic_quotes_gpc is enabled? (Choose 2)

Options:

A.

Use the get_magic_quotes() function.

B.

Using the get_magic_quotes_runtime() function.

C.

Use the get_magic_quotes_gpc() function.

D.

Using ini_get('magic_quotes_gpc').

E.

Using ini_get('magic_quotes').

Buy Now
Questions 24

What function is ideal for outputting contents of a static file to screen?

Options:

A.

file_get_contents()

B.

readfile()

C.

fread()

D.

include()

E.

require()

F.

file()

Buy Now
Questions 25

What is the name of the method that can be used to provide read access to virtual properties in a class?

Options:

A.

__call()

B.

__get()

C.

__set()

D.

__wakeup()

E.

__fetch()

Buy Now
Questions 26

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.

Buy Now
Questions 27

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 28

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 29

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 30

Some databases support the LIMIT clause. It is a method to ensure that ...

Options:

A.

only certain rows are deleted in DELETE queries.

B.

only a defined subset of rows are read in SELECT queries.

C.

only certain users can access the database.

Buy Now
Questions 31

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

How can the id attribute of the 2nd baz element from the XML string below be retrieved from the SimpleXML object found inside $xml?

One

Two

Options:

A.

$xml->getElementById('2');

B.

$xml->foo->bar->baz[2]['id']

C.

$xml->foo->baz[2]['id']

D.

$xml->foo->bar->baz[1]['id']

E.

$xml->bar->baz[1]['id']

Buy Now
Questions 33

What is the ideal method of copying data between two opened files?

Options:

A.

copy($source_file, $destination_file);

B.

copy(destination_file, $source_file);

C.

stream_copy_to_stream($source_file, $destination_file);

D.

stream_copy_to_stream($destination_file, $source_file);

E.

stream_bucket_prepend($source_file, $destination_file);

Buy Now
Questions 34

When uploading a file to a PHP script using the HTTP PUT method, where would the information about this file be available?

Options:

A.

the $_FILES super-global

B.

the input stream php://stdin

C.

the $_POST super-global

D.

the global variable scope

Buy Now
Questions 35

What XML component does the following XPath query try to match?

//foo[bar/@id=5]

Options:

A.

bar element with an id attribute whose value is equal to 5

B.

foo element containing a child node bar tag

C.

id attribute whose value is equal to 5

D.

foo element with a child note bar whose id attribute is equal to 5

E.

all of the foo elements that have a child node bar, whose id attribute is equal to 5

Buy Now
Questions 36

What is "instanceof" an example of:

Options:

A.

a boolean

B.

an operator

C.

a function

D.

a language construct

E.

a class magic

Buy Now
Questions 37

Which PHP function relieves a 1st of HTTP headers that have been sent as part of the HTTP response or are ready to be sent?

Options:

A.

header()

B.

headers()

C.

header_list()

D.

header_sent()

E.

getresponseheaders0

Buy Now
Questions 38

What will be the result of the following operation?

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

Options:

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)

Buy Now
Questions 39

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 40

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 41

What parsing methodology is utilized by the SimpleXML extension?

Options:

A.

SAX

B.

DOM

C.

XPath

D.

Push/Pull Approach

E.

Expat

Buy Now
Questions 42

Which of the following code snippets is correct? (Choose 2)

a)

interface Drawable {

abstract function draw();

}

b)

interface Point {

function getX();

function getY();

}

c)

interface Line extends Point {

function getX2();

function getY2();

}

d)

interface Circle implements Point {

function getRadius();

}

Options:

A.

a)

B.

b)

C.

c)

D.

d)

Buy Now
Questions 43

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 44

Given a php.ini setting of:

default_charset = utf-8

What will the following code print in the browser?

Options:

A.

Garbled data

B.

& # 9986 ; & # 10004 ; & # 10013 ;

C.

A blank line due to charset mismatch

Buy Now
Questions 45

In a shared hosting environment, session data can be read by PHP scripts written by any user. How can you prevent this?

Options:

A.

Store session data in a different location with session. save_Path .

B.

Store session data in a database.

C.

Enable safe_mode .

D.

Set session.name to something unique.

Buy Now
Questions 46

Which elements can be encapsulated by namespaces?

Options:

A.

Only classes

B.

Classes, functions and constants

C.

Classes, functions, constants and variables

Buy Now
Questions 47

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

Options:

A.

header()

B.

$_COOKE

C.

setcookie()

D.

setrawcookie()

Buy Now
Questions 48

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

Buy Now
Questions 49

What is the result of the following code?

Options:

A.

42

B.

43

C.

Parse error

Buy Now
Questions 50

Consider the following code. Which keyword should be used in the line marked in bold to make this code work as intended?

Options:

Buy Now
Questions 51

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

Buy Now
Questions 52

Which of the following describes a PHP extension?

Options:

A.

A collection of PHP files that expose a unified API

B.

A collection of functions and classes that allow PHP to interact with external data sources, protocols or APIs

C.

A plugin that changes the way PHP behaves

D.

A multitude of classes that extend from a single parent class

Buy Now
Questions 53

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

Buy Now
Questions 54

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

Options:

A.

fread($fp, 1);

B.

fgets($fp, 1);

C.

fgetss($fp, 1);

D.

fgetc($fp);

E.

All of the above

Buy Now
Questions 55

Some databases support the LIMIT clause. ft is a method to ensure that

Options:

A.

only certain rows are deleted in DELETE queries.

B.

only a defined subset of rows are read in SELECT queries.

C.

only certain users can access the database.

Buy Now
Questions 56

What is the file locking mode that should be used when writing to a file?

Options:

A.

LOCK_UN

B.

LOCK_SH

C.

LOCK_EX

D.

LOCK_NB

Buy Now
Questions 57

What is the content of $c after the following code has executed?

$a = 2;

$b = 3;

$c = ($a++ * ++$b);

Options:

A.

0

B.

5

C.

8

D.

4

Buy Now
Questions 58

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

Buy Now
Questions 59

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

Buy Now
Questions 60

What is the method used to execute XPath queries in the SimpleXML extension?

Options:

A.

xpathQuery()

B.

xpath()

C.

simpleXMLXpath()

D.

query()

E.

evaluate()

Buy Now
Questions 61

You want to run the following PHP 4 code with PHP 5. In the following example, which access modifier in PHP 5 is equivalent to "var"?

class Test {

var $tester;

}

Options:

A.

protected

B.

invisible

C.

public

D.

private

E.

outofscope

Buy Now
Questions 62

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 63

What type of class definition can be used to define multiple inheritance?

Options:

A.

Class

B.

Abstract

C.

Interface

D.

Final

Buy Now
Questions 64

What is the output of the following code?

Options:

A.

false-false

B.

false-true

C.

true-false

D.

true-true

Buy Now
Questions 65

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

Options:

A.

Cookie Data

B.

Session Data

C.

Remote IP Address

D.

User Agent

Buy Now
Questions 66

What will the $array array contain at the end of this script?

1

2 function modifyArray (&$array)

3 {

4 foreach ($array as &$value)

5 {

6 $value = $value + 1;

7 }

8

9 $value = $value + 2;

10 }

11

12 $array = array (1, 2, 3);

13 modifyArray($array);

14 ?>

Options:

A.

2, 3, 4

B.

2, 3, 6

C.

4, 5, 6

D.

1, 2, 3

Buy Now
Questions 67

What object method specifies post-serialization behavior for an object?

Options:

A.

__sleep()

B.

__wakeup()

C.

__set_state()

D.

__get()

E.

__autoload()

Buy Now
Questions 68

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 69

REST is a(n) ...

Options:

A.

Web service protocol similar to SOAP with a strict XML schema.

B.

Principle to exchange information using XML and HTTP.

C.

API to get information from social networking sites.

Buy Now
Questions 70

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

Options:

Buy Now
Questions 71

What is the name of the key in $_FILES['name'] that contains the number of bytes of the uploaded file?

Options:

Buy Now
Questions 72

Given a JSON-encoded string, which code sample correctly indicates how to decode the string to native PHP values?

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Buy Now
Questions 73

What is the return value of the following code substr_compare("foobar", "bar", 3);

Options:

A.

-1

B.

1

C.

TRUE

D.

0

E.

FALSE

Buy Now
Questions 74

Which requirements need NOT be met so that file uploads work?

Options:

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"

Buy Now
Questions 75

Which constant must be passed as the second argument to htmlentities () to convert single quotes (') to HTML entity?

Options:

A.

TRUE

B.

FALSE

C.

ENT_QUOTES

D.

ENT_NOQUOTES

E.

ENT_COMPAT

Buy Now
Questions 76

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
Exam Code: 200-530
Exam Name: Zend PHP 5.3 Certification
Last Update: Nov 20, 2024
Questions: 254
$57.75  $164.99
$43.75  $124.99
$36.75  $104.99
buy now 200-530