zend 200-710 practice test

Zend Certified Engineer

Last exam update: Nov 27 ,2025
Page 1 out of 16. Viewing questions 1-15 out of 232

Question 1

What is the difference between the spaceship operator (<=>) and the strcmp() function?

  • A. There is no difference in functionality
  • B. strcmp() returns a Boolean value, the spaceship operator a number
  • C. strcmp() does a case-intensive comparison, the spaceship operator does not
  • D. The spaceship operator returns -1, 0 or 1; strcmp() may return any integer
Mark Question:
Answer:

D

User Votes:
A
50%
B
50%
C
50%
D
50%
Discussions
vote your answer:
A
B
C
D
0 / 1000

Question 2

Which of these error types may be handled by a user defined error handler function? (Choose two.)

  • A. E_ERROR
  • B. E_NOTICE
  • C. E_PARSE
  • D. E_WARNING
Mark Question:
Answer:

A,C

User Votes:
A
50%
B
50%
C
50%
D
50%
Discussions
vote your answer:
A
B
C
D
0 / 1000

Question 3

CORRECT TEXT
What is the output of the following code?

Mark Question:
Answer:

1

User Votes:
Discussions
vote your answer:
0 / 1000

Question 4

What is the output of the following code?

  • A. string(0) “”
  • B. bool(false)
  • C. string(1) “!”
  • D. string(2) “k!”
Mark Question:
Answer:

C

User Votes:
A
50%
B
50%
C
50%
D
50%
Discussions
vote your answer:
A
B
C
D
0 / 1000

Question 5

Consider 3 PHP files that are called asynchronously via XmlHttpRequest:

Which of the following statements is true? (Choose two.)

  • A. The total execution time for all 3 requests will be the maximum of the longest sleep() call
  • B. The requests may be processed out of order
  • C. The requests are guaranteed to be executed in order
  • D. Concurrent requests will be blocked until the session lock is released
Mark Question:
Answer:

A

User Votes:
A
50%
B
50%
C
50%
D
50%
Discussions
vote your answer:
A
B
C
D
0 / 1000

Question 6

What is the output of the following code?

  • A. 1
  • B. 2
  • C. null
Mark Question:
Answer:

A

User Votes:
A
50%
B
50%
C
50%
Discussions
vote your answer:
A
B
C
0 / 1000

Question 7

What is the benefit of using persistent database connections in PHP? (Choose two.)

  • A. Reduces the connection & authentication overhead of connecting to the database
  • B. Ensures that only a single connection is open to the database from PHP
  • C. Allows connection settings such as character set encoding to persist
  • D. Allows for resumption of transactions across multiple requests.
Mark Question:
Answer:

C,D

User Votes:
A
50%
B
50%
C
50%
D
50%
Discussions
vote your answer:
A
B
C
D
0 / 1000

Question 8

What is the output of the following code?

  • A. MyNamespace\Test
  • B. empty string
  • C. parse error
  • D. Test
Mark Question:
Answer:

B

User Votes:
A
50%
B
50%
C
50%
D
50%
Discussions
vote your answer:
A
B
C
D
0 / 1000

Question 9

What function is best suited for extracting data from a formatted string into an array?

  • A. fgetcsv
  • B. sscanf
  • C. sprintf
  • D. strtok
Mark Question:
Answer:

C

User Votes:
A
50%
B
50%
C
50%
D
50%
Discussions
vote your answer:
A
B
C
D
0 / 1000

Question 10

What exception type will catch the error raised by the expression 2 / 0?

  • A. LogicException
  • B. RangeException
  • C. DivisionByZeroError
  • D. ArithmeticError
Mark Question:
Answer:

C

User Votes:
A
50%
B
50%
C
50%
D
50%
Discussions
vote your answer:
A
B
C
D
0 / 1000

Question 11

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

Mark Question:
Answer:

1

User Votes:
Discussions
vote your answer:
0 / 1000

Question 12

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

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

D

User Votes:
A
50%
B
50%
C
50%
D
50%
Discussions
vote your answer:
A
B
C
D
0 / 1000

Question 13

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

C

User Votes:
A
50%
B
50%
C
50%
D
50%
Discussions
vote your answer:
A
B
C
D
0 / 1000

Question 14

What is "instanceof" an example of?

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

B

User Votes:
A
50%
B
50%
C
50%
D
50%
Discussions
vote your answer:
A
B
C
D
0 / 1000

Question 15

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

D

User Votes:
A
50%
B
50%
C
50%
D
50%
Discussions
vote your answer:
A
B
C
D
0 / 1000
To page 2