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 ?<?php$n1 = 5;print $n = ++$n;?>
A.
5
B.
3
C.
1
D.
0
E.
None of these
Answer» D. 0
Show Answer
Discussion
No Comment Found
Post Comment
Related MCQs
What will be the output of the following PHP code ?<?php$str = 'view ';print "Inter{$str}Mania";?>
What will be the output of the following PHP code ?<?php$v = 'Mania';echo "Inter$view";?>
What will be the output of the following PHP code ?<?php$str = 'view';echo 'Inter{$str}Mania';?>
What will be the output of the following PHP code ?<?php$str = 'view';print "Inter".$str."Mania";?>
What will be the output of the following PHP code ?<?php$num = '8' ;print + + $num;?>
What will be the output of the following PHP code ?<?php$n = 15;while (--$n > 0 && ++$n){ print $n;}?>
What will be the output of the following PHP code ?<?php$num = 8;while (--$num > 0 || ++$num){ print $num;}?>
What will be the output of the following PHP code ?<?php$k = 10;while (--$k > 0){ $k++; print $k; print "Interview Mania";}?>
What will be the output of the following PHP code ?<?php$n = "";while ($n = 20){ print "Interview";}print "Mania";?>
What will be the output of the following PHP code ?<?php$k = 0;while ($k = 20){ print "Interview";}print "Mania";?>
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