nerdexam
Zend

200-530 · Question #450

Consider the following code: <?php $a; for($a=0;$a<100;$a++) Zend 200-530 Exam { if($a==50) { continue; } print(a); } ?> What will be the output of the program?

The correct answer is B. A series from 1 to 100 will be printed. The number 50 will not be printed. See the full explanation below for the reasoning.

Question

Consider the following code: <?php $a; for($a=0;$a<100;$a++) Zend 200-530 Exam { if($a==50) { continue; } print(a); } ?> What will be the output of the program?

Options

  • AA series from 1 to 100 will be printed.
  • BA series from 1 to 100 will be printed. The number 50 will not be printed.
  • CA series from 51 to 100 will be printed.
  • DA series from 1 to 50 will be printed

How the community answered

(25 responses)
  • A
    12% (3)
  • B
    76% (19)
  • C
    8% (2)
  • D
    4% (1)

Community Discussion

No community discussion yet for this question.

Full 200-530 Practice