nerdexam
National_Instruments

200-500 · Question #5

What is the output of the following code? echo 0x33, ' monkeys sit on ', 011, ' trees.';

The correct answer is B. 51 monkeys sit on 9 trees. See the full explanation below for the reasoning.

Question

What is the output of the following code? echo 0x33, ' monkeys sit on ', 011, ' trees.';

Options

  • A33 monkeys sit on 11 trees.
  • B51 monkeys sit on 9 trees.
  • Cmonkeys sit on trees.
  • D0x33 monkeys sit on 011 trees.

How the community answered

(32 responses)
  • A
    9% (3)
  • B
    81% (26)
  • C
    3% (1)
  • D
    6% (2)

Community Discussion

No community discussion yet for this question.

Full 200-500 Practice