Which statement will output $x on the screen? echo “/$x”; echo “\$x”; echo “$x;”; echo “$$x”; TRUE ANSWER : ? YOUR ANSWER : ?
PHP runs on different platforms (Windows, Linux, Unix, etc.) False True TRUE ANSWER : ? YOUR ANSWER : ?
What is the limit of a PHP integer value? 16384 2147483647 65536 1048576 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following code?<br/>$foo = 'Bob';<br/>$bar = &$foo;<br/>$bar = "My name is $bar";<br/>echo $bar;<br/>echo $foo; My name is BobMy name is Bob My name is BobBob My name is Bob Bob Error TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code?<br/>$a = 5;<br/>$b = 5;<br/>echo ($a === $b); False 1 Error 5 === 5 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code?<br/>$team = "arsenal";<br/>switch ($team) {<br/>case "manu":<br/>echo "I love man u";<br/>case "arsenal":<br/>echo "I love arsenal";<br/>case "manc":<br/>echo "I love manc"; <br/>} I love arsenalI love mancI love manu I love arsenalI love manc Error I love arsenal TRUE ANSWER : ? YOUR ANSWER : ?
All classes in the same namespace or subnamespace don’t have to the declared in the same PHP file. TRUE FALSE TRUE ANSWER : ? YOUR ANSWER : ?
String values must be enclosed in ...... single quotes double quotes both A and B none of above TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code?<br/>$total = "25 students";<br/>$more = 10;<br/>$total = $total + $more;<br/>echo "$total"; Error 35 students 25 students 35 TRUE ANSWER : ? YOUR ANSWER : ?