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: 19/09/2019
PHP Conditional Statements
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.
What is mean by If else ladder.
2.
Write the syntax of If statement.
3.
How Switch statement and if statement differs?
4.
What IS"if statement" in PHP?
5.
How conditional statements perform?
6.
Compare if and if else statement.
7.
Write the Syntax of Switch statement.
8.
Write the usage of Switch Statement in PHP.
9.
Define if...elseif....else Statement in PHP.
10.
Write the Syntax of an If ... else statement in PHP.
11.
List out Conditional Statements in PHP.
12.
What is the purpose of the if ... else statement?
13.
Write the syntax for an if statement in PHP.
14.
What are the different types of conditional statements in PHP?
1.
1. Else executes the following block of statements if the condition in the corresponding if is false.
2. After the else, if another condition is to be checked, then an if statement follows the else. This is else if and is called as if else ladder.
2.
if (condition)
{
Execute statement(s) if condition is true;
}
3.
Switch statements work the same as if statements but they can check for multiple values at a time
4.
The If Statement is a way to make decisions based upon the result of a condition.
5.
It performs different actions for different decisions in programing language
6.
| If Statement | If else Statement |
| if statement executes some code if one condition is true. | If statement executes some code if the condition is true and else part of code executes if the condition is false. |
7.
switch (n)
{
case label 1:
code to be executed if n=labeI1;
break;
case label 2:
code to be executed if n=labeI2;
break;
case label 3:
code to be executed if n=labeI3;
break;
...
default:
code to be executed if n is different from all labels;
}
8.
(i) It is used to perform different action based on different conditions.
(ii) It works the same as if statement and it can check for multiple values at a time.
9.
If-elseif-else statement is a combination of if-else statement. Multiple conditions can be checked and action is based on the result of the condition.
10.
Syntax:
if (condition)
{
//True-block;
}
else
{
//False-block;
}
11.
Conditional statements are implemented by the following types
(i) if statement
(ii) if...else statement
(iii) if...else if... else statement
(iv) switch statement.
12.
The if ... else statement is a conditional statement in PHP. It executes one block of code if a condition is true and another block of code if the condition is false.
13.
Syntax:
if (condition)
{
//code to be executed if condition is true;
}
14.
There are several types of conditional statements in PHP. They are
1. 'if' statement
2. 'if...else' statement
3. 'if...elseif...else' statement
4. 'switch' statement
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