<<< Previous question <<< Question ID#0337.md >>> Next question >>>
What is the output of the following script?
$x = 5;
$y = $x << 1;
switch ($x + $y) {
case 5:
echo "a";
break;
case 10:
echo "b";
break;
case 15:
echo "c";
case 20:
echo "d";
break;
default:
echo "e";
}
- A) cd
- B) b
- C) ac
- D) bd
Answer
Answer: A