nerdexam
Zend

200-550 · Question #109

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;

The correct answer is B. 3.14. See the full explanation below for the reasoning.

Question

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;

Options

  • AParse error
  • B3.14
  • CPI
  • DT::PI

How the community answered

(16 responses)
  • A
    6% (1)
  • B
    88% (14)
  • D
    6% (1)

Community Discussion

No community discussion yet for this question.

Full 200-550 Practice