Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Telebort Prog F - Conditional Statement

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

Identify the output:

a)

The number is between 0 and 10

b)

The number is more than 10

c)

No output

d)

Error occurs

2.

What is the input should we enter to show the output: "You are not allowed to watch this movie"?

a)

18

b)

8

c)

30

d)

56

3.

What syntax should we use in the red rectangle shown in the code so that the output becomes "False"?

a)

!=

b)

<

c)

<=

d)

>=

4.

What will be the output of the code?

a)

True

b)

False

c)

No output

d)

Error occurs

5.

Based on the code, what is the value of X should we use to obtain a grade A or B in quiz?

a)

X = 84

b)

X = 44

c)

X = 54

d)

X = 64

6.

Which of the following sentence will NOT show in output if the input we use is 32?

a)

Good job!

b)

Don't get discouraged and you will be better next time!

c)

Pretty good!

d)

None of the above

7.

What is the output?

a)

First statement is TRUE

b)

First statement is TRUE

Third statement is TRUE

c)

First statement is TRUE

Second statement is TRUE

d)

Error occurs

8.

Which of the following is the syntax we use in the red rectangle so that the output will become TRUE?

a)

>

b)

>=

c)

!=

d)

<

9.

In the code, there is an error when running this code cell. Which of the following is the correct code that can solve this problem?

a)
b)
c)
d)
10.

What is the output of this code?

a)

A

b)

A

B

C

D

c)

A

B

C

D

F

d)

Error occurs