PHP Echo & Print MCQs
PHP Echo & Print MCQs : This section focuses on "Echo and Print" in PHP. These Multiple Choice Questions (mcq) should be practiced to improve the PHP skills required for various interviews (campus interview, walk-in interview, company interview), placements, entrance exams and other competitive examinations.
1. How many ways user can print output in PHP?
View Answer
2. print statement can take _____ argument?
View Answer
3. How many return value does echo statement has?
View Answer
4. Echo statement is written under parentheses?
View Answer
5. Which statement is faster amoung echo and print?
View Answer
6. What will be the output of the following PHP code?
<?php
echo "Hello world </br> I am learning PHP at letsfindcourse";
?>
View Answer
7. What will be the output of the following PHP code?
<?php
$five = 5;
print($five);
print $five;
?>
View Answer
8. What will be the output of the following PHP code?
<?php
$a = "Hello";
$b = "World";
echo "$a"+"$b";
?>
View Answer
9. What will be the output of the following PHP code?
<?php
$a = "hello";
$b = "world";
print($a$b);
?>
View Answer
10. What will be the output of the following PHP code?
<?php
print("I"."am"."learning"."php");
?>
View Answer
Also check :