Font size
WorksheetsXII - CA - Lesson 6 - Conditional Statement
Total questions: 15
Worksheet time: 8mins
________ statement support logical decision in PHP.
Iterative
Conditional
Loop
Sequencing
Which statement support one condition and one outcome?
simple if
if else
if else if else
switch
"If the condition is True then action block 1 will be executed. Otherwise Action block 2 will be executed". Identify the statement for above instruction?
simple if
if else
if else if else
switch
Which conditional statement is called one condition and two outcome?
simple if
if else
if else if else
switch
else statement can be place in
simple if
if else
if else if else
switch
Identify the control structure that support multiple condition and multiple outcome?
simple if
if else
if else if else
switch
Which allows branching of multiple if else statement?
simple if
if else
if else if else
switch
When all the condition return False, then ____ segment is executed in if else if statement?
simple if
if else
if else if else
else
Which statement is replacement for if else if statement?
simple if
if else
if else if else
switch
When no case label's matches, ________ segment is executed?
simple if
if else
default
switch
_________ represent one condition with multiple outcome.
simple if
if else
if else if else
switch
What operator is used to terminate case label?
:
'
;
}
What operator is used to enclose the switch case structure?
( )
[ ]
{ }
< >
Logical expression of conditional statement are enclosed within ________
( )
[ ]
{ }
< >
When logical conditional statement are evaluate ________
True
False
Either a or b
Neither a or b
