Zend Certified Engineer v8.0 (200-710)

Page:    1 / 16   
Total 232 questions

Which of the following parts must a XML document have in order to be well-formed?

  • A. An XML declaration
  • B. A root element
  • C. A specified encoding
  • D. A reference to either a DTD or an XML schema definition

Answer : B

What is the output of this code?
$world = 'world';
echo <<<'TEXT'
hello $world

  • A. hello world
  • B. hello $world
  • C. PHP Parser error

Answer : C

You'd like to use the class MyDBConnection that's defined in the
MyGreatFramework\MyGreatDatabaseAbstractionLayer namespace, but you want to minimize *as much as possible* the length of the class name you have to type. What would you do?

  • A. Import the MyGreatFramework namespace
  • B. Import the MyGreatFramework\MyGreatDatabaseAbstractionLayer namespace
  • C. Alias MyGreatFramework\MyGreatDatabaseAbstractionLayer\MyDBConnection to a shorter name
  • D. Alias MyGreatFramework\MyGreatDatabaseAbstractionLayer to a shorter name

Answer : C

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

Answer : A

What is the output of the following code?
class Number {
private $v = 0;
public function __construct($v) { $this->v = $v; }
public function mul() {
return function ($x) { return $this->v * $x; };
$one = new Number(1);
$two = new Number(2);
$double = $two->mul()->bindTo($one);
echo $double(5);

Answer : 5

Which technique should be used to speed up joins without changing their results?

  • A. Add indices on joined columns
  • B. Add a WHERE clause
  • C. Add a LIMIT clause
  • D. Use an inner join

Answer : A

Assuming UTF-8 encoding, what is the value of $count?

  • A. 0
  • B. 4
  • C. 5
  • D. 7

Answer : C

When uploading a file to a PHP script using the HTTP PUT method, where would the file data be found?

  • A. the $_FILES super-global
  • B. the input stream php://input
  • C. the $_POST super-global
  • D. the global variable scope

Answer : B

Which of the following is true about stream contexts? (Choose 2)

  • A. A context can modify or enhance the behavior of a stream
  • B. A context indicates what session the stream is part of
  • C. A context is a set of parameters and stream wrapper specific options
  • D. Contexts are created with new Stream_Context();

Answer : A,C

Which PHP function sets a cookie whose value does not get URL encoded when sending it to the browser?

Answer : setrawcookie, setrawcookie()

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

Answer : 1

Which one of the following XML declarations is NOT valid?

  • A. <?xml version="1.0" ?>
  • B. <?xml version="1.1" encoding="UTF-8" ?>
  • C. <?xml standalone="no" ?>
  • D. <?xml standalone="1" ?>

Answer : D

What is the name of the method that can be used to provide read access to virtual properties in a class?

  • A. __call()
  • B. __get()
  • C. __set()
  • D. __wakeup()
  • E. __fetch()

Answer : B

SimpleXML provides the ability to iterate over items in an XML document, as well as access items within it as if they were object properties. When creating your own classes to access data, implementing which of the following would NOT achieve this goal?

  • A. __toString
  • B. Iterator
  • C. __get/__set
  • D. ArrayAccess

Answer : A

Which of the following is used to find all PHP files under a certain directory?

  • A. PHPIterator
  • B. RecursiveTreeIterator
  • C. RecursiveDirectoryIterator
  • D. SplTempFileObject

Answer : C

Page:    1 / 16   
Total 232 questions