wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

XII - CA - Lesson 6 - Conditional Statement

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

________ statement support logical decision in PHP.

a)

Iterative

b)

Conditional

c)

Loop

d)

Sequencing

2.

Which statement support one condition and one outcome?

a)

simple if

b)

if else

c)

if else if else

d)

switch

3.

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

a)

simple if

b)

if else

c)

if else if else

d)

switch

4.

Which conditional statement is called one condition and two outcome?

a)

simple if

b)

if else

c)

if else if else

d)

switch

5.

else statement can be place in

a)

simple if

b)

if else

c)

if else if else

d)

switch

6.

Identify the control structure that support multiple condition and multiple outcome?

a)

simple if

b)

if else

c)

if else if else

d)

switch

7.

Which allows branching of multiple if else statement?

a)

simple if

b)

if else

c)

if else if else

d)

switch

8.

When all the condition return False, then ____ segment is executed in if else if statement?

a)

simple if

b)

if else

c)

if else if else

d)

else

9.

Which statement is replacement for if else if statement?

a)

simple if

b)

if else

c)

if else if else

d)

switch

10.

When no case label's matches, ________ segment is executed?

a)

simple if

b)

if else

c)

default

d)

switch

11.

_________ represent one condition with multiple outcome.

a)

simple if

b)

if else

c)

if else if else

d)

switch

12.

What operator is used to terminate case label?

a)

:

b)

'

c)

;

d)

}

13.

What operator is used to enclose the switch case structure?

a)

( )

b)

[ ]

c)

{ }

d)

< >

14.

Logical expression of conditional statement are enclosed within ________

a)

( )

b)

[ ]

c)

{ }

d)

< >

15.

When logical conditional statement are evaluate ________

a)

True

b)

False

c)

Either a or b

d)

Neither a or b