200-710 practice question 1 of 30

What is the output of the following code? $a = 3; switch ($a) { case 1: echo 'one'; break; case 2: echo 'two'; break; default: echo 'four'; break…

Choose your answer, then check it against the explanation.

What is the output of the following code? $a = 3; switch ($a) { case 1: echo 'one'; break; case 2: echo 'two'; break; default: echo 'four'; break; case 3: echo 'three'; break; }
Answer options
Question 1 of 30

Keep practicing

Take the free 200-710 practice test

Ten exam-style questions with answers and explanations, plus the exam facts and study guides.

Start the free practice test

More questions

Other 200-710 practice questions

Scroll to Top