nerdexam
National_Instruments

200-500 · Question #124

What is the output of the following code: echo "1" + 2 * "0x02";

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

Question

What is the output of the following code: echo "1" + 2 * "0x02";

Options

  • A1
  • B3
  • C5
  • D20
  • E7

How the community answered

(36 responses)
  • A
    3% (1)
  • B
    14% (5)
  • C
    75% (27)
  • D
    3% (1)
  • E
    6% (2)

Community Discussion

No community discussion yet for this question.

Full 200-500 Practice