nerdexam
Zend

200-710 · Question #131

What is the result of the following code? ``php 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

(26 responses)
  • A
    19% (5)
  • B
    12% (3)
  • C
    69% (18)

Community Discussion

No community discussion yet for this question.

Full 200-710 Practice