Consider the following program code: $x = 10; LOOP: while ($x < 15) { print ($x ); if ($x >= 14 && $x <= 20) { $x += 2; redo LOOP; } else { $x++; }} What is the result of executing this program code?

  1. The code will output the following: 11 12 13 14 15 16 17 18 19

  2. The code will output the following: 10 11 12 13 14 16 18 20 22

  3. The code will output the following: 10 11 12 13 14 16 18 20

  4. The code will output the following: 10 11 12 13 14 15 16 17 18 19 20


Correct Option: B

Find more quizzes: