Exit demo 200-550 Zend Certified PHP Engineer PDF format · free preview

Zend 200-550 - Questions & Answers

Free preview · every answer includes a full explanation

Product page: https://prepkeys.com/200-550.html

Question 1
Single choice

What is the output of the following code?

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

A.

123

B.

213

C.

142

D.

214

E.

Syntax error

Question 2
Single choice

What is the output of the following code?

$a = 3;
switch ($a) {
case 1: echo 'one'; break;
case 2: echo 'two'; break;
default: echo 'four'; break;
case 3: echo 'three'; break;
}

A.

one

B.

two

C.

three

D.

four

Question 3
Single choice

What is "instanceof" an example of?

A.

a boolean

B.

an operator

C.

a function

D.

a language construct

E.

a class magic

Question 4
Single choice

Which of the following may be used in conjunction with CASE inside a SWITCH statement?

A.

A scalar

B.

An expression

C.

A boolean

D.

All of the above

Question 5
Single choice

What is the output of the following code?

$a = 'a'; $b = 'b';
echo isset($c) ? $a.$b.$c : ($c = 'c').'d';

A.

abc

B.

cd

C.

0d

Question 6
Multiple choice

Which of the following are valid identifiers? (Choose 3)

A.

function 4You() { }

B.

function _4You() { }

C.

function object() { }

D.

$1 = "Hello";

E.

$_1 = "Hello World";

Question 7
Single choice

What super-global should be used to access information about uploaded files via a POST request?

A.

$_SERVER

B.

$_ENV

C.

$_POST

D.

$_FILES

E.

$_GET

Question 8
Single choice

What is the difference between "print" and "echo"?

A.

There is no difference.

B.

Print has a return value, echo does not

C.

Echo has a return value, print does not

D.

Print buffers the output, while echo does not

E.

None of the above

Question 9
Single choice

What is the output of the following code?

echo "1" + 2 * "0x02";

A.

1

B.

3

C.

5

D.

20

E.

7

Question 10
Single choice

What is the result of the following bitwise operation in PHP?

1 ^ 2

A.

1

B.

3

C.

2

D.

4

E.

-1

Showing 10 of 223 questions · Unlock the full set