Review 85 200-710 practice questions with answer explanations and community insights.
Question 1
Consider the following two files. When you run test.php, what would the output look like?
12,12
12,24
24,12
24,24
PHP Fatal error: Cannot redeclare strlen()
Question 2
What is the difference between the spaceship operator ( ) and the strcmp() function?
There is no difference in functionality
strcmp() returns a Boolean value, the spaceship operator a number
strcmp() does a case-intensive comparison, the spaceship operator does not
The spaceship operator returns -1, 0 or 1; strcmp() may return any integer
Question 3
What is the method used to execute XPath queries in the SimpleXML extension?
xpathQuery()
xpath()
simpleXMLXpath()
query()
evaluate()
Question 4
What function allows resizing of PHP’s file write buffer?
ob_start()
set_write_buffer()
stream_set_write_buffer()
Change the output_buffering INI setting via ini_set() function
Question 5
Youd like to use the class MyDBConnection thats 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?
Import the MyGreatFramework namespace
Import the MyGreatFramework\MyGreatDatabaseAbstractionLayer namespace
Alias MyGreatFramework\MyGreatDatabaseAbstractionLayer\MyDBConnection to a shorter name
Alias MyGreatFramework\MyGreatDatabaseAbstractionLayer to a shorter name
We are moving to a new platform
CertificationTest is being migrated. Some pages may be slow or briefly unavailable; everything will be back to normal within a few hours. If you run into any issue, email support@certificationtest.net.