Basic PHP If $a = 12 what will be returned when ($a == 12) ? 5 : 1 is executed? 1 5 Error 12 1 5 Error 12 ANSWER DOWNLOAD EXAMIANS APP
Basic PHP What will be the output of the following PHP code?$total = "25 students";$more = 10;$total = $total + $more;echo "$total"; 35 students Error 25 students 35 35 students Error 25 students 35 ANSWER DOWNLOAD EXAMIANS APP
Basic PHP What will be the output of the following PHP code?$user = array("Ashley", "Bale", "Shrek", "Blank");for ($x=0; $x < count($user); $x++){if ($user[$x] == "Shrek")continue;printf ($user[$x]);} AshleyBaleBlank ShrekBlank Shrek AshleyBale AshleyBaleBlank ShrekBlank Shrek AshleyBale ANSWER DOWNLOAD EXAMIANS APP
Basic PHP What will be the output of the following PHP code?$team = "arsenal";switch ($team) {case "manu":echo "I love man u";case "arsenal":echo "I love arsenal";case "manc":echo "I love manc"; } Error I love arsenal I love arsenalI love manc I love arsenalI love mancI love manu Error I love arsenal I love arsenalI love manc I love arsenalI love mancI love manu ANSWER DOWNLOAD EXAMIANS APP
Basic PHP Which version of PHP introduced Try/catch Exception? PHP 5 PHP 4 PHP 6 PHP 5.3 PHP 5 PHP 4 PHP 6 PHP 5.3 ANSWER DOWNLOAD EXAMIANS APP
Basic PHP Under what circumstance is it impossible to assign a default value to a parameter while declaring a function? Never When the function is being declared as a member of a class When the function contains only one parameter When the parameter is being declared as passed by reference When the parameter is Boolean Never When the function is being declared as a member of a class When the function contains only one parameter When the parameter is being declared as passed by reference When the parameter is Boolean ANSWER DOWNLOAD EXAMIANS APP