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 chr(55);?>
A.
7
B.
5
C.
3
D.
1
E.
None of these
Answer» B. 5
Show Answer
Discussion
No Comment Found
Post Comment
Related MCQs
What will be the output of the following PHP code ?<?phpfunction _message(){ echo "Welcome to the Interview Mania";}_message();?>
What will be the output of the following PHP code ?<?php $p = 45;$q = 26; function add(){ $GLOBALS['r'] = $GLOBALS['p'] + $GLOBALS['q'];}add();echo $r;?>
What will be the output of the following PHP code ?<?phpfunction 15function(){ echo "Hello Interview Mania";}15function();?>
What will be the output of the following PHP code ?<?phpfunction fun($m) { if ($m < 10) echo "True"; if ($m >= 10) echo "False"; }fun(20);?>
What will be the output of the following PHP code ?<?phpfunction fun($str) { echo "favourite fun time is ".$str; function b() { echo "Inside block executed..."; } }function p() { echo "Outside block executed..."; }p();?>
What will be the output of the following PHP code ?<?phpfunction Condition($number) { if ($number == 3) echo "Condition 3rd executed...."; if ($number == 7) echo "Condition 7th executed...."; if ($number == 8) echo "Condition 8th executed...."; if ($number == 19) echo "Condition 19th executed...."; }$var = stripos("I know the php, And I love to know php!","the");Condition($var);?>
What will be the output of the following PHP code ?<?phpfunction TvShow($int){ $TvShow = array("Naagin.", "CID.", "Big Boss."); echo "This is my favourite show ". $TvShow[$int];}TvShow(2);?>
What will be the output of the following PHP code ?<?phpfunction First($str){ echo "This is ". $Str;}First("Important");?>
What will be the output of the following PHP code ?<?phpfunction Example($d){ $d = 12 + $d; echo "$d";}Example(6);?>
What will be the output of the following PHP code ?<?phpfunction fun($number){ $number = 5 + $number;echo $number;}fun(7);?>
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