nerdexam
Zend

200-530 · Question #531

You run the following PHP script: <?php function calc() { $x=10; $b=++$x; Zend 200-530 Exam print($b); } ?> What will be the value of the variable b?

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

Question

You run the following PHP script: <?php function calc() { $x=10; $b=++$x; Zend 200-530 Exam print($b); } ?> What will be the value of the variable b?

Options

  • A9
  • BThe script will throw an error message.
  • C11
  • D10

How the community answered

(48 responses)
  • A
    15% (7)
  • B
    2% (1)
  • C
    75% (36)
  • D
    8% (4)

Community Discussion

No community discussion yet for this question.

Full 200-530 Practice