nerdexam
Zend

200-550 · Question #16

What would be the output of the following code? namespace MyFramework\DB; class MyClass { static function myName() { return __METHOD__; } } print MyClass::myName();

The correct answer is C. MyFramework\DB\MyClass::myName. See the full explanation below for the reasoning.

Question

What would be the output of the following code? namespace MyFramework\DB; class MyClass { static function myName() { return METHOD; } } print MyClass::myName();

Options

  • AMyFramework\DB\myName
  • BMyFramework\DB\MyClass\myName
  • CMyFramework\DB\MyClass::myName
  • DMyClass::myName

How the community answered

(67 responses)
  • A
    6% (4)
  • B
    13% (9)
  • C
    78% (52)
  • D
    3% (2)

Community Discussion

No community discussion yet for this question.

Full 200-550 Practice