nerdexam
Zend

200-530 · Question #540

You run the following PHP script: <?php define ("USER", "Maria"); $USER="John"; print "Welcome ".USER; ?> What will be the output?

The correct answer is D. Welcome Maria. See the full explanation below for the reasoning.

Question

You run the following PHP script: <?php define ("USER", "Maria"); $USER="John"; print "Welcome ".USER; ?> What will be the output?

Options

  • AWelcome John
  • BScript will through an error.
  • CWelcome USER
  • DWelcome Maria

How the community answered

(50 responses)
  • A
    4% (2)
  • B
    12% (6)
  • C
    6% (3)
  • D
    78% (39)

Community Discussion

No community discussion yet for this question.

Full 200-530 Practice