wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Selection Structures

Total questions: 22

Worksheet time: 14mins

Name
Class
Date
1.

What is !=

a)

greater than

b)

not equal to

c)

equal to

d)

and

2.

What is <

a)

Greater than

b)

Less than or Equal to

c)

Less than

d)

Greater than or Equal to

3.

What is ==

a)

equal to

b)

not equal to

c)

and

d)

or

4.

What is >

a)

Or

b)

Greater than

c)

And

d)

Less than

5.

The Java (blank blank) help us to ask questions

(a)  

6.

What is <=

a)

Less than or Equal to

b)

Greater than or Equal to

c)

Greater than

d)

Equal to

7.

What is &&

a)

And

b)

Equal to

c)

Or

d)

Not equal to

8.

What is >=

a)

Greater than or Equal to

b)

Greater than

c)

Less than

d)

Less than or Equal to

9.

What is ||

a)

Less than

b)

Greater than

c)

Or

d)

And

10.

OR

a)

||

b)

!

c)

&&

11.

It returns true if and only if both expressions are true, else returns false.

(a)  

12.

AND

a)

&&

b)

||

c)

!

13.

(Blank Blank) are statements that check an expression (answerable by TRUE or FALSE) then may or not execute a statement or group of statements based on the result of the condition.

(a)  

14.

The Java (blank) statement executes one statement from multiple conditions.

a)

Switch

b)

Nested if-else

c)

If-else-if

15.

NOT

a)

!

b)

||

c)

&&

16.

It return true if any of the expressions are true, else returns false

(a)  

17.

This Java statement tests the condition. It executes the (blank) block if condition is true.

a)

If-else-if

b)

if-else

c)

if

18.

This statement executes one condition from multiple statements.

a)

If-else-if ladder

b)

if

c)

if-else

19.

The (blank) statement executes one if or else if statement inside another if or else if statement.

a)

Nested if-else

b)

switch

c)

If-else-if

20.

Conditional NOT

a)

TRUE | TRUE

FALSE | FALSE

b)

TRUE | FALSE

FALSE | TRUE

21.

SELECTION STATEMENTS

Selection statements are statements that check an expression (answerable by TRUE or FALSE) then may or not execute a statement or group of statements based on the result of the condition.

• Also called as (blank blank) statements

(a)  

22.

This statement also tests the condition. It executes the (blank) block if condition is true otherwise (blank) block is executed.

a)

if-else-if ladder

b)

if-else

c)

if