MCQs
Total Questions : 53
| Page 2 of 6 pages
Answer: Option A. -> I like Toyota, BMW and Volvo
Answer: Option D. -> Array ( [A] => 5 [Cat] => 2 [Dog] => 2 [Tiger] => 1 )
Answer: Option A. -> Array ( [a] => red [b] => green [c] => blue [d] => yellow )
Question 14. What will be the output of the following PHP code?$a1 = array("a" => "red", "b" => "green", "c" => "blue", "d" => "yellow");$a2 = array("e" => "red", "f" => "green", "g" => "blue", "h" => "orange");$a3 = array("i" => "orange");$a4 = array_combine($a2, $a3);$result = array_diff($a4, $a2);print_r($result);
Answer: Option C. -> Array ( [d] => yellow )
Answer: Option A. -> Array ( [35] => Peter [37] => Ben [43] => Joe )
Answer: Option C. -> Sam is the brother of Bob and Bob)
Answer: Option D. -> Array ( [HARRY] => 21 [RON] => 23 )
Answer: Option B. -> Array ( [0] => LA [1] => Paris [2] => Paris )
Answer: Option A. -> Error
Answer: Option A. -> Array ( [red] => a [green] => b [blue] => c [yellow] => d )