Tamil Nadu State Board ( Samacheer Kalvi ) Online Test based on Book Back Questions - 12th Standard Computer Applications - English Medium - PHP Conditional Statements

Samacheer Kalvi 12th Computer Applications - PHP Conditional Statements - Book Back Questions in English Medium


00:00:00
Answered
0
Skipped
0
Unseen
0
Correct : 0 Incorrect : 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
$x = 0;
if ($x++)
print “hi”;
else
print “how are u”;
?>


Question 4 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 5 Of 10

Statement which is used to make choice between two options and only option is to be performed is written as


Question 6 Of 10

What will be the output of the following PHP code ?
<?php
if(0.0)
print”hi”;
else
print”how are u”;
?>


Question 7 Of 10

What will be the output of the following PHP code ?
<?php
$x = 10;
$y = 20;
if ($x > $y + $y != 3)
print “hi”;
else
print “how are u”;
?>


Question 8 Of 10

How many types of PHP conditional statements are there?


Question 9 Of 10

Which of the following can check for multiple values at a time?


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”
?>