nerdexam
CIW

1D0-437 · Question #68

Consider the following program code: 1.$x = 100; 2.$y = "-25"; 3.$sum = $x + $y; 4. 5.print $sum; What is the result of executing this program code?

The correct answer is B. The code will output the following. See the full explanation below for the reasoning.

Question

Consider the following program code:

1.$x = 100; 2.$y = "-25"; 3.$sum = $x + $y; 4. 5.print $sum; What is the result of executing this program code?

Options

  • AThe code will output the following:
  • BThe code will output the following:
  • CThe code will fail at line 3 because $y contains string data.
  • DThe code will output the following:

How the community answered

(30 responses)
  • A
    7% (2)
  • B
    77% (23)
  • C
    13% (4)
  • D
    3% (1)

Community Discussion

No community discussion yet for this question.

Full 1D0-437 Practice