MCQOPTIONS
Bookmark
Saved Bookmarks
→
Php
→
Online Quiz
→
What will be the output of the following PHP code...
1.
What will be the output of the following PHP code ?<?phpecho $Yellow;?>
A.
Nothing
B.
True
C.
False
D.
0
E.
Error
Answer» F.
Show Answer
Discussion
No Comment Found
Post Comment
Related MCQs
What will be the output of the following PHP code ?<?phpstatic $n = 5;function calc(){ echo $n; $n++;}calc();calc();calc();?>
What will be the output of the following PHP code ?<?php$t = 2;function calculation(){ echo $GLOBALS['t']; $t++;}calculation();calculation();calculation();?>
What will be the output of the following PHP code ?<?php$p=7;function calc(){ echo $GLOBALS['p']; $GLOBALS['p']++;}calc();calc();calc();?>
What will be the output of the following PHP code ?<?phpfunction calc(){ static $p = 5; echo $p; $p++;}calc();calc();calc();?>
What will be the output of the following PHP code ?<?phpfunction calc(){ $n = 5; echo $n; $n++;}calc();calc();calc();?>
What will be the output of the following PHP code ?<?php$p = 15;$q = 25;function calc(){ $q = $GLOBALS['p'] + $GLOBALS['q'];} calc();echo $q;?>
What will be the output of the following PHP code ?<?php$n1 = 15;$n2 = 18;function Calc(){ $GLOBALS['n2'] = $GLOBALS['n1'] + $GLOBALS['n2'];} Calc();echo $n2;?>
What will be the output of the following PHP code ?<?php$str1 = "$Test";$str2 = " $Example";echo $str1, $str2;?>
What will be the output of the following PHP code ?<?php$p = "$Test";$q = " $Example";echo $p, $q;?>
What will be the output of the following PHP code ?<?php$p = "$Test";$q = "/$Example";echo $p,$q;?>
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply
Your experience on this site will be improved by allowing cookies. Read
Cookie Policy
Reject
Allow cookies