Skip to content

Latest commit

 

History

History
35 lines (31 loc) · 556 Bytes

0337.md

File metadata and controls

35 lines (31 loc) · 556 Bytes

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