A
Q. What will be the output of the following PHP code ?
Code:<?php # echo "Hello MCQ Buddy"; echo "# Hello MCQ Buddy"; ?>
Here, you will find a collection of MCQ questions on PHP. Go through these questions to enhance your preparation for upcoming examinations and interviews.
To check the correct answer, simply click the View Answer button provided for each question.
Have your own questions to contribute? Click the button below to share your MCQs with others!
+ Add QuestionA
<?php # echo "Hello MCQ Buddy"; echo "# Hello MCQ Buddy"; ?>
A
<?php $country = "India"; echo "$country"; echo "$COUNTRY"; echo "$Country"; ?
A
<?php Echo "Hello "; echo "MCQ "; ECHO "Buddy"; ?>
A
<?php print_r "Hello MCQ Buddy" ?>
A
<?php "Hello MCQ Buddy" ?>
A
A
<?php
$x = 10;
$y = 20;
if ($x > $y && 1||1)
print "PHP MCQ" ;
else
print "Welcome to MCQ Buddy";
?>
A
<?php
$fruits = array ("apple", "orange", array ("pear", "mango"),"banana");
echo (count($fruits, 1));
?>
A
<?php
function multi($num)
{
if ($num == 3)
echo "I Wonder";
if ($num == 7)
echo "Which One";
if ($num == 8)
echo "Is The";
if ($num == 19)
echo "Correct Answer";
}
$can = stripos("I love php, I love php too!","PHP");
multi($can);
?>
A
If you want to share an MCQ question in this category, it's a great idea! It will be helpful for many other students using this website.
Share Your MCQ