Zend
200-530 · Question #506
Mark works as a Web Developer for Unicorn Inc. He develops an application in PHP using the following code: <?php Zend 200-530 Exam switch(1) { case 1: print("Book Details<br>"); case 2: print("Book…
The correct answer is D. It will display all the three lines. See the full explanation below for the reasoning.
Question
Mark works as a Web Developer for Unicorn Inc. He develops an application in PHP using the following code: <?php Zend 200-530 Exam switch(1) { case 1: print("Book Details<br>"); case 2: print("Book Author<br>"); default: print("Missing Book<br>"); } ?> What will be the output of the script?
Options
- ABook Author
- BThe script will throw an error.
- CMissing Book
- DIt will display all the three lines.
- EBook Details
How the community answered
(42 responses)- A2% (1)
- B2% (1)
- C7% (3)
- D83% (35)
- E5% (2)
Community Discussion
No community discussion yet for this question.