Pass the Zend Zend Certification 200-500 Questions and answers with CertsForce

Viewing page 3 out of 7 pages
Viewing questions 21-30 out of questions
Questions # 21:

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

Options:

A.

static


B.

protected


C.

private


D.

public


E.

const


Questions # 22:

What tags can always be used to begin a PHP script (Choose 2)?

Options:

A.

<?php


B.


C.

<%


D.

<%php


E.

<script language="php">


Questions # 23:

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


Questions # 24:

How can you redirect a client to another page using PHP?

Options:

A.

header('Location: /another_page.php');


B.

header('Content-Location: /another_page.php');


C.

header('Redirect: /another_page.php');


D.

header('Redirect: /another_page.php', 1, 302);


E.

header('HTTP/1.1 302 /another_page.php');


Questions # 25:

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.


Questions # 26:

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

<form method="post">

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)


Questions # 27:

Which of the following statements about SOAP is NOT true?

Options:

A.

SOAP is a request-/response-based protocol.


B.

SOAP can be transported using SMTP, HTTP and other protocols.


C.

SOAP requires developers to use WSDL.


D.

SOAP traffic via HTTP can be encrypted and compressed just like other HTTP requests.


Questions # 28:

What method can be used to find a tag with the name "foo" via the DOM extension?

Options:

A.

getElementById()


B.

getElementsByTagName()


C.

getElementsByTagNameNS()


D.

getElementByName()


E.

findTag()


Questions # 29:

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


Questions # 30:

You analyze the code of a colleague and see a call to the function quotemeta(). You give the string "Holy $%&[. What's going on?" as a parameter to it. What will it output?

Options:

A.

Holy $%&[. What's going on?


B.

Holy \$%&\[\. What's going on\?


C.

Holy $%&[. What\'s going on?


D.

Holy \$\%\&\[\. What\'s going on\?


Viewing page 3 out of 7 pages
Viewing questions 21-30 out of questions