PHP Skill Test – 02 Posted on June 20, 2020June 20, 2020 by admin 4 Created on June 20, 2020 By admin PHP Skill Test - 02 1 / 10 Which of the below statements is equivalent to $add += $add ? $add = $add $add = $add +$add $add = $add + 1 $add = $add + $add + 1 2 / 10 What will be the output of the following PHP code?<?php $a = 5; $b = 5; echo ($a === $b); ?> 5 === 5 Error 1 False 3 / 10 Which of the below symbols is a newline character? \r \n /n /r 4 / 10 What will be the output of the following PHP code?<?php $team = "arsenal"; switch ($team) { case "manu": echo "I love man u"; case "arsenal": echo "I love arsenal"; case "manc": echo "I love manc"; } ?> I love arsenal Error I love arsenalI love manc I love arsenalI love mancI love manu 5 / 10 If $a = 12 what will be returned when ($a == 12) ? 5 : 1 is executed? 12 1 Error 5 6 / 10 Who is the father of PHP? Rasmus Lerdorf Willam Makepiece Drek Kolkevi List Barely 7 / 10 Which one of the following is the right way of defining a function in PHP? function { function body } data type functionName(parameters) { function body } functionName(parameters) { function body } function fumctionName(parameters) { function body } 8 / 10 What will be the output of the following PHP code?<?php function a() { function b() { echo "I am b"; } echo "I am a"; } b(); a(); ?> I am b I am bI am a Error I am a Error 9 / 10 A function in PHP which starts with __ (double underscore) is know as. Magic Function Inbuilt Function Default Function User Defined Function 10 / 10 What will be the output of the following PHP code ?<?php $one = 1; print($one); print $one; ?> 01 11 10 Error Your score is The average score is 38% LinkedIn Facebook Twitter 0% Restart quiz