MCQOPTIONS
Bookmark
Saved Bookmarks
→
Php
→
Online Quiz in Php
→
It is always necessary to use parentheses with the..
1.
It is always necessary to use parentheses with the print function.
A.
rue
B.
alse
Answer» C.
Show Answer
Discussion
No Comment Found
Post Comment
Related MCQs
Which of the following are valid function names?1. function()2. €()3. .function()4. $function()
What will happen in this function call?<?phpfunction calc($price, $tax){$total = $price + $tax;}$pricetag = 15;$taxtag = 3;calc($pricetag, $taxtag);?>
What will be the output of the following PHP code ?<?phpfunction TV($string){echo "my favourite TV show is ".$string;function b(){echo " I am here to spoil this code";}}b();?>
What will be the output of the following PHP code ?<?phpfunction uppercase($string){echo ucwords($string)}$wow = "uppercase";$wow("Time to live king size")?>
What will be the output of the following PHP code ?<?phpfunction A1($x){switch($x){case 1://this statement is the same as if($x == 1)echo 'Case 1 was executed.';break;case 2://this statement is the same as if($x == 2)echo 'Case 2 was executed.';break;case 3://this statement is the same as if($x == 3)echo 'Case 3 was executed.';break;case 4://this statement is the same as if($x == 4)echo 'Case 4 was executed.';break;default://this statement is the same as if $x does not equal the other conditionsecho 'Default was executed.';break;}}A1(9);?>
What will be the output of the following PHP code?<?phpecho strtr("Hilla Warld","ia","eo");?>
What will be the output of the following PHP code ?<?phpfunction addFunction($num1, $num2){$sum = $num1 + $num2;return $sum;}$return_value = addFunction(10, 20);echo "Returned value from the function : " .$return_value?>
What will be the output of the following PHP code ?<?phpfunction test($int){if ($int == 1)echo "This Works";if (== 2)echo "This Too Seems To Work";}test(1);TEST(2);?>
What will be the output of the following PHP code ?<?phpfunction TV($string){echo "my favourite TV show is ".$string;function b(){echo " I am here to spoil this code";}}a("Sherlock");b();?>
What will be the output of the following PHP code ?<?phpfunction TV($string){echo "my favourite TV show is ".$string;function b(){echo " I am here to spoil this code";}}function b(){echo " I am here to spoil this code";}b();TV("Sherlock");?>
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply