CIW
1D0-437 · Question #88
Consider the following program code: $x = 150; $y = "250"; if (($x + 100) == $y) { print("1 "); } if ("250" == $y) { print("2 "); } if ("250" eq $y) { print("3 "); } if ($x lt $y) { print("4 "); }…
The correct answer is A. The code will output the following. See the full explanation below for the reasoning.
Question
Consider the following program code:
$x = 150; $y = "250"; if (($x + 100) == $y) { print("1 "); } if ("250" == $y) { print("2 "); } if ("250" eq $y) { print("3 "); } if ($x lt $y) { print("4 "); } if ($x ge $y) { print("5 "); } 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 output the following:
- DThe code will output the following:
How the community answered
(49 responses)- A82% (40)
- B10% (5)
- C4% (2)
- D4% (2)
Community Discussion
No community discussion yet for this question.