Zend
200-530 · Question #508
You run the following PHP script: 1. <?php 2. for($x = 1; $x <= 2; $x++){ 3. for($y = 1; $y <= 3; $y++){ 4. if ($x == $y) continue; 5. print("x = $x y = $y<br>"); 6. } 7. } 8. ?> What will be the…
Sign in or unlock 200-530 to reveal the answer and full explanation for question #508. The question stem and answer options stay visible for context.
PHP Basics
Question
You run the following PHP script: 1. <?php 2. for($x = 1; $x <= 2; $x++){ 3. for($y = 1; $y <= 3; $y++){ 4. if ($x == $y) continue; 5. print("x = $x y = $y<br>"); 6. } 7. } 8. ?> What will be the output? Each correct answer represents a part of the solution. Choose all that apply.
Options
- Ax = 2 y = 1
- Bx = 2 y = 3
- Cx = 1 y = 2
- Dx = 2 y = 2
- Ex = 1 y = 3
- Fx = 1 y = 1
Unlock 200-530 to see the answer
You've previewed enough free 200-530 questions. Unlock 200-530 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
Topics
#continue statement#nested loops#control flow#loop tracing