Tamil Nadu State Board ( Samacheer Kalvi ) Online Test based on Book Back Questions - 11th Standard Computer Applications - English Medium - PHP Conditional Statements
Samacheer Kalvi 11th Computer Applications - PHP Conditional Statements - Book Back Questions in English Medium
00:00:00
Answered
0
Skipped
0
Unseen
0
Correct : 0Incorrect : 0
Question 1 Of 10
What will be the output of the following PHP code?
<?php
$x;
if ($x)
print “hi”;
else
print “how are u”;
?>
Question 2 Of 10
What will be the output of the following PHP code ?
<?php
$a =
if ($a)
print “all”;
if
else
print “some”;
?>
Question 3 Of 10
What will be the output of the following PHP code ?
<?php
if (-100)
print “hi”;
else
print “how are u”;
?>
Question 4 Of 10
What will be the output of the following PHP code ?
<?php
$x = 0;
if ($x++)
print “hi”;
else
print “how are u”;
?>
Question 5 Of 10
What will be the output of the following PHP code ?
<?php
$x = 10;
$y = 20;
if ($x > $y && 1||1)
print “hi”;
else
print “how are u”;
?>
Question 6 Of 10
What will be the output of the following PHP code ?
<?php
$a=”l”;
switch($a)
{
case 1:
break;
print”hi”;
case 2:
print’tiello”;
break;
default:
print”hil”;
?>;
Question 7 Of 10
What will be the output of the following PHP code ?
<?php
if(0.0)
print”hi”;
else
print”how are u”;
?>
Question 8 Of 10
How many types of PHP conditional statements are there?
Question 9 Of 10
What will be the output of the following PHP code ?
<?php
$a = “”;
if ($a)
print “all”;
if
else
print “some”;
?>
Question 10 Of 10
What will be the output of the following PHP code ?
<?php
$x;
if ($x == 0)
print “hi”;
else
print “how are u”;
print “hello”
?>