Home
About Us
Class
Samacheer Kalvi 12th Standard
Samacheer Kalvi 11th Standard
Samacheer Kalvi 10th Standard
Samacheer Kalvi 9th Standard
Samacheer Kalvi 8th Standard
Samacheer Kalvi 7th Standard
Samacheer Kalvi 6th Standard
Contact Us
Home
About Us
Class
12th
11th
10th
9th
8th
7th
6th
Contact Us
Tamil Nadu State Board ( Samacheer Kalvi ) Online Test based on Book Back Questions - 12th Standard Computer Applications - English Medium - PHP Conditional Statements
Home
Samacheer Kalvi 12th
English
Computer Applications
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
Previous
Next
Submit Exam
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”;
?>
how are u
hi
error
no output
Question 2 Of 10
What will be the output of the following PHP code ?
<?php
$a =
if ($a)
print “all”;
if
else
print “some”;
?>
all
some
error
no output
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”;
?>
hi
no output
error
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”;
?>
how are u
hi
error
no output
Question 5 Of 10
Statement which is used to make choice between two options and only option is to be performed is written as
if statement
if else statement
then else statement
else one statement
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”;
?>
how are u
hi
error
no output
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”;
?>
how are u
hi
error
no output
Question 8 Of 10
How many types of PHP conditional statements are there?
2
3
4
5
Question 9 Of 10
Which of the following can check for multiple values at a time?
If
If else
Nested else
Switch
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”
?>
how are uhello
hihello
hi
no output
1
2
3
4
5
6
7
8
9
10
Tags
Samacheer Kalvi MCQ
Tamil Nadu State Board Book Back Questions
12th Book Back Answers
10th Public Exam Questions
TN Board MCQ Practice
Samacheer Kalvi Quiz
Free Tamil Medium Guide
1 Mark 2 Mark Questions
Samacheer Kalvi Online Test