What is the output of the following code?
try {
class MyException extends Exception {};
try {
throw new MyException;
}
catch (Exception $e) {
echo "1:";
throw $e;
}
catch (MyException $e) {
echo "2:";
throw $e;
}
}
catch (Exception $e) {
echo get_class($e);
}
A. A parser error, try cannot be followed by multiple catch
B. 1:
C. 2:
D. 1:Exception
E. 1:MyException
F. 2:MyException
G. MyException
Which of the following statements is NOT correct?
A. Only methods can have type hints
B. Typehints can be optional
C. Typehints can be references
Which of the following statements is correct?
A. Interfaces can extend only one interface
B. Interfaces can extend more than one interface
C. Interfaces can inherit a method from different interfaces
D. Interfaces can redeclare inherited methods
Which of the following statements about exceptions is correct? (Choose 2)
A. you can only throw classes derived from Exception
B. a try block can have multiple catch blocks
C. a try block must not be followed by a catch block
D. try blocks cannot contain nested try blocks
What is the result of the following code?
define('PI', 3.14); class T { const PI = PI; } class Math { const PI = T::PI; } echo Math::PI;
A. Parse error
B. 3.14
C. PI
D. T::PI
Given the following code, what is correct?
function f(stdClass and$x = NULL) { $x = 42; }
$z = new stdClass; f($z); var_dump($z);
A. Error: Typehints cannot be NULL
B. Error: Typehints cannot be references
C. Result is NULL
D. Result is object of type stdClass
E. Result is 42
Which of the following statements is NOT true?
A. Class constants are public
B. Class constants are being inherited
C. Class constants can omit initialization (default to NULL)
D. Class constants can be initialized by const
What is the result of the following code?
class T { const A = 42 + 1; } echo T::A;
A. 42
B. 43
C. Parse error
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()
Which of these statements about PDO is NOT true?
A. PDO has built-in support for Large Objects (LOBs).
B. Placeholders within PDO prepared statements need to be named.
C. When something goes wrong, PDO can throw an instance of its own exception class.
D. PDO does not emulate missing database features.
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-550 exam preparations and Zend certification application, do not hesitate to visit our Vcedump.com to find your solutions here.