nerdexam
Zend

200-550 · Question #107

What is the result of the following code? class T { const A = 42 + 1; } echo T::A;

The correct answer is C. Parse error. See the full explanation below for the reasoning.

Question

What is the result of the following code? class T { const A = 42 + 1; } echo T::A;

Options

  • A42
  • B43
  • CParse error

How the community answered

(25 responses)
  • A
    8% (2)
  • B
    8% (2)
  • C
    84% (21)

Community Discussion

No community discussion yet for this question.

Full 200-550 Practice