Which of the following statements about PHP is false? (Choose 2)
A. A final class can be derived.
B. A final class may be instantiated.
C. A class with a final function may be derived.
D. Static functions can be final.
E. Properties can be final.
Which php.ini setting is usually required to use an opcode cache?
A. extension
B. zend_extension
C. optimizer
D. dl
How should class MyObject be defined for the following code to work properly? Assume $array is an array and MyObject is a user-defined class.
$obj = new MyObject();
array_walk($array, $obj);
A. MyObject should extend class Closure
B. MyObject should implement interface Callable
C. MyObject should implement method __call
D. MyObject should implement method __invoke
Which is the most efficient way to determine if a key is present in an array, assuming the array has no NULL values?
A. in_array('key', array_keys($a))
B. isset($a['key'])
C. array_key_exists('key', $a)
D. None of the above
Given a php.ini setting of
default_charset = utf-8
what will the following code print in the browser?
header('Content-Type: text/html; charset=iso-8859-1');
echo 'and#9986;and#10004;and#10013;';
A. Three Unicode characters, or unreadable text, depending on the browser
B. and#9986;and#10004;and#10013;
C. A blank line due to charset mismatch
What is the output of the following code?
class C {
public $x = 1;
function __construct() { ++$this->x; }
function __invoke() { return ++$this->x; }
function __toString() { return (string) --$this->x; }
}
$obj = new C();
echo $obj();
A. 0
B. 1
C. 2
D. 3
What exception type will catch the error raised by the expression 2 / 0?
A. LogicException
B. RangeException
C. DivisionByZeroError
D. ArithmeticError
Which methods can be used to overload object properties? (Choose 2)
A. set(), get()
B. __set(), __get()
C. __put(), __receive(), __exists()
D. set(), get(), isset()
E. __isset(), __unset()
How many elements does the $matches array contain after the following function call is performed? preg_match('/^(\d{1,2}([a-z]+))(?:\s*)\S+ (?=201[0-9])/', '21st March 2014', $matches);
A. 1
B. 2
C. 3
D. 4
When tracking upload progress with sessions, the values of 2 INI settings are needed to determine the key in $_SESSION of the upload progress data. What are the INI settings? (Choose 2)
A. session.upload_progress.file
B. session.upload_progress.key
C. session.upload_progress.prefix
D. session.upload_progress.freq
E. session.upload_progress.name
Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Zend exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your 200-710 exam preparations and Zend certification application, do not hesitate to visit our Vcedump.com to find your solutions here.