12th Standard Syllabus & Materials
12th Standard
TN 12th Computer Applications மின்னணு தரவு பரிமாற்றம் Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th Computer Applications மின் - வணிக பாதுகாப்பு அமைப்புகள் Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th Computer Applications மின்னணு செலுத்தல் முறைகள் Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th Computer Applications மின் - வணிகம் Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th Computer Applications திறந்த மூல கருத்துருக்கள் Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th Computer Applications வலையமைப்பு வடமிடல் Sample Question Papers Study Material - QB365 Set A

Published on: 05/09/2022
QB365 provides a detailed and simple solution for every Possible Creative Questions in Class 12 Computer Applications Subject -PHP Conditional Statements, English Medium. It will help Students to get more practice questions, Students can Practice these question papers in addition to score best marks.
Download Tamil Nadu 12th Standard Computer Applications question papers, model tests, one-mark questions, important questions, and public exam papers in PDF format. Free study materials and answer keys for TN State Board students.
Questions + Answers key
Take MCQ Computer Applications Test

1.
write thc syntax of else.... if ladder statement and demonstrate an example.
2.
What are feature of else ... if ladder statement?
3.
Write, a PHP program to display independenc day and republic day the greetings using If elseif else statement.
4.
Write a php program to check whether the given number is positive or negative.
5.
Write a php program to birthday greetings using if statement.
6.
Write a PHP code to display "Have a nice weekend!" if the current day is Friday, otherwise it will output "Have a nice day!" using if-else statement.
1.
Syntax:
if (condn - 1)
{
//code to be executed - block - I
}
else if (condn - 2)
{
//code to be executed - block - 2
{
else if (condn - 3)
{
//code to be executed - block - 3
}
else
{
//default code to executed
}
Example:
\(\$\)x = 10, \(\$\)y = 20,\(\$\)ch = 3, \(\$\)z = 0;
if(\(\$\)ch == 1)
{
\(\$\)z=\(\$\)x+\(\$\)y;
}
else if (\(\$\)ch == 2)
{
\(\$\)z=\(\$\)x-\(\$\)y;
}
elseif (\(\$\)ch == 3)
)
\(\$\)z=\(\$\)x\(\$\)y;
}
else
{echo "Invalid choice please try again";
}
echo answer is \(\$\)z";
?>
2.
(i) Each else is associated with another if statement.
(ii) Evaluation of condition starts from top to down.
(iii) If condition becomes true then the associated block with if statement is executed and rest of conditions are skipped.
(iv) If the condition becomes false then it will check for next condition in a sequential manner.
(v) It repeats until all conditions are checked or a true condition is found.
(vi) If dl condition available in else ... if ladder evaluates to false then default else block will be executed. Uses: Else . .. if ladder provides multi way decision making when anyone alternative is to be select among the available option.
3.
< ?php
$x = "August";
if ($x == "January'') {
echo "Happy Republic Day";
}
elseif ($x == "August'') {
echo "Happy Independence Day!!!";
}
else{
echo "Nothing to show";
}
? >
4.
< ?php
$x = -12;
if ($x > 0)
{
echo "The number is positive";
}
else{
echo "The number is negative";
}
? >
5.
< ?php
$date=date("m-d'');
if ($date== > >01-10 > >)
{
echo "Wishing you a very Happy Birthday";
}
? >
6.
< ?php·
$d=date("D'');
if($d=="Fri'')
{
echo"Have a nice weekend!";
}
Else
{
echo"Have a nice day!";
}
? >
12th Standard Syllabus & Materials
12th Standard
TN 12th Computer Applications களப்பெயர் முறைமை (DNS) Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th Computer Applications வலையமைப்பு எடுத்துக்காட்டுகள் மற்றும் நெறிமுறைகள் Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th Computer Applications கணினி வலையமைப்பு ஓர் அறிமுகம் Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th Computer Applications PHP-உடன் MySQL-ஐ இணைத்தல் Sample Question Papers Study Material - QB365 Set A
Tamilnadu Stateboard 12th Standard Subjects

Maths

Chemistry

Physics

Biology

Computer Science

Business Maths and Statistics

Economics

Commerce

Accountancy

History

Computer Applications

Biology

Computer Technology

Computer Applications

Computer Science

Business Maths and Statistics

Commerce

Economics

Maths

Chemistry

Physics

Computer Technology

History

Accountancy

Tamil

English

French
Tamilnadu Stateboard Standards