Skip to content

Latest commit

History

History
29 lines (26 loc) 路 687 Bytes

File metadata and controls

29 lines (26 loc) 路 687 Bytes

Fred works as a Web developer in Fastech Inc. He writes the following script:

$s聽=聽2;
switch聽($s)聽{
聽聽聽聽聽聽case1:
聽聽聽聽聽聽聽聽聽print("Fred");
聽聽聽聽聽聽聽聽聽break;
聽聽聽聽聽聽case2:
聽聽聽聽聽聽聽聽聽print("Fast");
聽聽聽聽聽聽case3:
聽聽聽聽聽聽聽聽聽print("Tech");
聽聽聽聽聽聽default:聽print("default");
}

What will be displayed as output when Fred attempts to run this PHP script?

  • A) FastTechdefault
  • B) Fast Tech
  • C) default
  • D) Fast
Answer

Answer: A