zend 200-710 practice test

Exam Title: Zend Certified Engineer

Last update: Nov 27 ,2025
Question 1

CORRECT TEXT
Which value will be assigned to the key 0 in the following code?

Answer:

1

vote your answer:
Comments
Question 2

What is the output of the following code?
echo '1' . (print '2') + 3;

  • A. 123
  • B. 213
  • C. 142
  • D. 214 E: Syntax error
Answer:

D

vote your answer:
A
B
C
D
A 0 B 0 C 0 D 0
Comments
Question 3

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
Answer:

C

vote your answer:
A
B
C
D
A 0 B 0 C 0 D 0
Comments
Question 4

What is "instanceof" an example of?

  • A. a boolean
  • B. an operator
  • C. a function
  • D. a language construct E: a class magic
Answer:

B

vote your answer:
A
B
C
D
A 0 B 0 C 0 D 0
Comments
Question 5

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
Answer:

D

vote your answer:
A
B
C
D
A 0 B 0 C 0 D 0
Comments
Question 6

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
Answer:

B

vote your answer:
A
B
C
A 0 B 0 C 0
Comments
Question 7

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";
Answer:

B, C, E

vote your answer:
A
B
C
D
A 0 B 0 C 0 D 0
Comments
Question 8

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
Answer:

D

vote your answer:
A
B
C
D
A 0 B 0 C 0 D 0
Comments
Question 9

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
Answer:

B

vote your answer:
A
B
C
D
A 0 B 0 C 0 D 0
Comments
Question 10

What is the output of the following code?
echo "1" + 2 * "0x02";

  • A. 1
  • B. 3
  • C. 5
  • D. 20 E: 7
Answer:

C

vote your answer:
A
B
C
D
A 0 B 0 C 0 D 0
Comments
Page 1 out of 23
Viewing questions 1-10 out of 232
Go To
page 2