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

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

Which PHP function is used to validate whether the contents of $_FILES['name'] ['tem_name'] have really been uploaded via HTTP'?

Your application needs to handle file uploads performed with HTTP PUT. How can you retrieve this data?

A.

php://input stream

B.

php://upload stream

C.

$_FILES superglobal

D.

$_PUT superglobal

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

A.

Yes

B.

No

C.

Only if the class is defined as an abstract

In a typical web application the most used database action is...

A.

INSERT

B.

UPDATE

C.

SELECT

D.

CREATE

E.

ALTER

When you need to process the values of columns in a database, you should:

A.

Only use built-in database functions

B.

Always use read the values as-is from the database and then process them with PHP

C.

Use built-in database functions for simple processing, and perform more complicated logic in PHP

D.

Use built-in database functions for complicated logic, and perform simpler functions in PHP

Which of the following configuration directives increase the risk of remote code injection when enabled? (Choose 2)

A.

allow_url_fopen

B.

register_globals

C.

magic_quotes_gpc

D.

safe_mode

What is the output of the following code?

1

2 for ($i = 0; $i < 1.02; $i += 0.17) {

3 $a[$i] = $i;

4 }

5 echo count($a);

6 ?>

A.

0

B.

1

C.

2

D.

6

E.

7

Given the following code, what is correct?

function f(stdClass &$x = NULL) { $x = 42;

}

$z = new stdClass;

f($z);

var_dump($z);

A.

Error: Typehints cannot be NULL

B.

Error: Typehints cannot be references

C.

Result is NULL

D.

Result is object of type stdClass

E.

Result is 42

Do constants have global scope or local scope?

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