CIW
1D0-437 · Question #22
Consider the following program code: $y=l; $x = 2; $z = 3; do { print ($y); } while ($y eq 2); do { print ($x); } until ($x eq 2); print ($z); What is the result of executing this program code?
The correct answer is A. The code will output the following: 1 23. See the full explanation below for the reasoning.
Question
Consider the following program code:
$y=l; $x = 2; $z = 3; do { print ($y); } while ($y eq 2); do { print ($x); } until ($x eq 2); print ($z); What is the result of executing this program code?
Options
- AThe code will output the following: 1 23
- BThe code will output the following 3
- CThe code will output the following 23
- DThe code will output the following 32 1
How the community answered
(44 responses)- A75% (33)
- B14% (6)
- C7% (3)
- D5% (2)
Community Discussion
No community discussion yet for this question.