nerdexam
Zend

200-530 · Question #406

Fred works as a Web developer in Fastech Inc. He writes the following script: 1. <?php 2. $s = 2; 3. switch ($s) { 4. case 1: 5. print("Fred"); 6. break; 7. case 2: 8. print("Fast"); 9. case 3: 10…

The correct answer is A. Fast Tech default. See the full explanation below for the reasoning.

Question

Fred works as a Web developer in Fastech Inc. He writes the following script: 1. <?php 2. $s = 2; 3. switch ($s) { 4. case 1: 5. print("Fred"); 6. break; 7. case 2: 8. print("Fast"); 9. case 3: 10. print("Tech"); 11. default: 12. print("default"); Zend 200-530 Exam 13. } 14. ?> What will be displayed as output when Fred attempts to run this PHP script?

Options

  • AFast Tech default
  • BFast
  • CFast Tech
  • Ddefault

How the community answered

(41 responses)
  • A
    73% (30)
  • B
    15% (6)
  • C
    10% (4)
  • D
    2% (1)

Community Discussion

No community discussion yet for this question.

Full 200-530 Practice