wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Lesson 6 - Introduction to control statements

Total questions: 10

Worksheet time: 20mins

Name
Class
Date
1.

What will be the output of following code ?

a)

20

b)

14

c)

12

d)

none

2.

What will be the output of the following code ?

a)

not equal

b)

equal

c)

False

d)

none

3.

What will be the output of The following code ?

a)

rohit

b)

my name is

c)

my name is rohit

d)

none

4.

What will be the output of the following code ?

a)

18

b)

not eligible for vote

c)

True

d)

eligible for vote

5.

What will be the output of the following code ?

a)

True

b)

False

c)

Both true and false

d)

none

6.

What will be the output of following code ?

a)

False

b)

True

c)

nothing

d)

none

7.

what will be the output of the following statement ?

a)

False

b)

0

c)

False and 0

d)

none

8.

what will be the output of the following statement ?

a)

good morning

b)

good day

c)

both good morning and good day

d)

none

9.

What will be the output of the following code ?

a)

good

b)

True

c)

both good and True

d)

none

10.

For which purpose if statement is used ?

a)

For assigning the values

b)

For checking conditions

c)

For creating new variable

d)

none