Skip to content

200-710 Zend Certified Engineer Practice Questions

Prepare for 200-710 with more than an answer.

262 questions in the full set20 sample questionsUpdated Sep 16, 2021
Exam fee
$200 USD
Time limit
90 minutes
Questions on the exam
70
Passing score
Not disclosed (scale Not disclosed)
Level
Professional
Valid for
No expiration
Domains covered on the exam 11
  1. PHP Basics10%
  2. Functions10%
  3. Data Format & Types10%
  4. Web Features10%
  5. Object Oriented Programming15%
  6. Security10%
  7. I/O8%
  8. Strings & Patterns10%
  9. Databases & SQL10%
  10. Arrays10%
  11. Error Handling7%
  1. 1

    After performing the following operations:

    What will be the value of $a?

    Question exhibit
    Show answer details

    Correct answer: C

    C

  2. 2

    True or false: you can catch fatal errors (e.g., parse errors, out of memory errors, compilation errors) in PHP 7 using try/catch.

    Show answer details

    Correct answer: B

    B

  3. 3

    What is the output of the following code?

    Question exhibit
    Show answer details

    Correct answer: A

    A

  4. 4

    Which of the following are valid code snippets? (Choose three.)

    Show answer details

    Correct answer: B, C, E

    B, C, E

    B, C, E

    B, C, E

  5. 5

    Case Study: E-Commerce Platform Upgrade

    An e-commerce company is upgrading its platform from a legacy PHP 5.4 system to PHP 7.1. The system has a central Product class and several specialized product types like Book, Apparel, and Electronic, which all inherit from Product. A key task is to refactor the product comparison logic.

    Current Situation: The Product class has a compare() method that uses complex if/else logic to compare two products. This method has become difficult to maintain. The system also frequently crashes due to type errors, as data from the database is not always in the expected format.

    Requirements:

    1. Refactor Comparison Logic: Replace the compare() method with a more modern, concise solution for use in sorting functions like usort().
    2. Improve Type Safety: All methods that interact with the database must use strict type declarations for parameters and return values. For example, a method fetching a product by ID might not find it and should indicate this in a type-safe way.
    3. Add a New Feature: A new Shippable interface must be created with methods getWeight() and getDimensions(). The Apparel and Electronic classes must implement this interface, but the Book class (which could represent an ebook) should not.

    Which code snippet most effectively implements all of these requirements using PHP 7.1 features?

    classDiagram class Product{ +int id +string name +float price +compareTo(Product other) } class Book extends Product class Apparel extends Product class Electronic extends Product interface Shippable{ > +getWeight() : float +getDimensions() : array } Apparel ..|> Shippable Electronic ..|> Shippable

    Show answer details

    Correct answer: B

    This solution correctly uses the spaceship operator ( ) for concise comparison logic. It uses a nullable return type (?Product) to safely handle cases where a product is not found, a key feature of PHP 7.1. It also correctly implements the Shippable interface on the specified classes, fulfilling all requirements.

  6. 6

    What is the output of the following code?

    Question exhibit
    Show answer details

    Correct answer: B

    B

  7. 7

    An unbuffered database query will (choose two):

    Show answer details

    Correct answer: A, D

    A, D

    A, D

  8. 8

    One common security risk is exposing error messages directly in the browser. Which PHP configuration directive can be disabled to prevent this?

    Show answer details

    Correct answer: C

    C

  9. 9

    What is the output of the following code?

    Show answer details

    Correct answer: C

    C

  10. 10

    What is the difference between the spaceship operator ( ) and the strcmpO function?

    Show answer details

    Correct answer: D

    D

Create an account to continue.