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

Viewing page 4 out of 8 pages
Viewing questions 31-40 out of questions
Questions # 31:

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.


Expert Solution
Questions # 32:

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

Options:

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


Expert Solution
Questions # 33:

Which one of the following technologies was not built into PHP before version 5?

Options:

A.

XSL


B.

SOAP


C.

DOM


D.

SAX


Expert Solution
Questions # 34:

What is the output of the following code?

try {

class MyException extends Exception {};

try {

throw new MyException;

}

catch (Exception $e) {

echo "1:";

throw $e;

}c

atch (MyException $e) {

echo "2:";

throw $e;

}}

catch (Exception $e) {

echo get_class($e);

}

Options:

A.

A parser error, try cannot be followd by multiple catch


B.

1:


C.

2:


D.

1:Exception


E.

1:MyException


F.

2:MyException


G.

MyException


Expert Solution
Questions # 35:

What is the output of the following code?

$a = 1;

++$a;

$a*=$a;

echo $a--;

Options:

A.

4


B.

3


C.

5


D.

0


E.

1


Expert Solution
Questions # 36:

Identify the security vulnerability in the following example:

1 <?php

2 echo "Welcome, {$_POST['name']}.";

3 ?>

Options:

A.

SQL Injection


B.

Cross-Site Scripting


C.

Remote Code Injection


D.

None of the above


Expert Solution
Questions # 37:

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


Expert Solution
Questions # 38:

What will the following function call return?

strstr('http://example.com/test/file.php ', '/');

Options:

A.

/example.com/


B.

/file.php


C.

file.php


D.

//example.com/test/file.php


Expert Solution
Questions # 39:

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)


Expert Solution
Questions # 40:

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

Options:

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


Expert Solution
Viewing page 4 out of 8 pages
Viewing questions 31-40 out of questions