Zend 200-710 - Zend Certified Engineer Exam
Page: 1 / 18
Total 87 questions
Question #1 (Topic: Topic 1)
Consider the following two files. When you run test.php, what would the output look like?
[Zend-200-710-1.0/xmlfile-2_1.png]
[Zend-200-710-1.0/xmlfile-2_1.png]
A. 12,12
B. 12,24
C. 24,12
D. 24,24
E. PHP Fatal error: Cannot redeclare strlen()
Answer: C
Question #2 (Topic: Topic 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
Answer: D
Question #3 (Topic: Topic 1)
What is the method used to execute XPath queries in the SimpleXML extension?
A. xpathQuery()
B. xpath()
C. simpleXMLXpath()
D. query()
E. evaluate()
Answer: B
Question #4 (Topic: Topic 1)
What function allows resizing of PHP’s file write buffer?
A. ob_start()
B. set_write_buffer()
C. stream_set_write_buffer()
D. Change the output_buffering INI setting via ini_set() function
Answer: C
Question #5 (Topic: Topic 1)
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?
*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: B