nerdexam
National_Instruments

200-500 · Question #76

Which of the following did not result in an output error in PHP 4 but does in PHP 5?

The correct answer is B. Assigning a new object instance to $this in a constructor. See the full explanation below for the reasoning.

Question

Which of the following did not result in an output error in PHP 4 but does in PHP 5?

Options

  • AUsing 'var' as an access modifier.
  • BAssigning a new object instance to $this in a constructor.
  • CPassing an object by-reference.
  • DPassing an object by-value.

How the community answered

(32 responses)
  • A
    6% (2)
  • B
    75% (24)
  • C
    16% (5)
  • D
    3% (1)

Community Discussion

No community discussion yet for this question.

Full 200-500 Practice