wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

U6/L1 HS Kira- Conditionals

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

Which term best completes this definition: A __________ __________ is a programming instruction that runs only when a specific condition is true or false.

a)

conditional statement

b)

loop structure

c)

variable assignment

d)

function definition

2.

Which language is described as a high-level programming language known for being simple and easy to read?

a)

C++

b)

Java

c)

Python

d)

Assembly

3.

Conditionals help computers make __________ by checking if something is __________ or __________.

a)

calculations; positive; negative

b)

decisions; true; false

c)

graphics; bright; dark

d)

connections; online; offline

4.

In Python, which set lists the most common conditional keywords in the correct order for initial, secondary, and default checks?

a)

if, else, elif

b)

elif, if, else

c)

if, elif, else

d)

else, if, elif

5.

When writing conditionals in Python, where does the condition go and what punctuation follows the statement?

a)

Inside quotes; a period

b)

Inside parentheses; a colon

c)

Inside brackets; a semicolon

d)

After the print; a comma

6.

Based on the example code "if temperature > 85: print('Go to the pool')", when will the program print the message?

a)

When the temperature equals 85

b)

When the temperature is less than 85

c)

When the temperature is greater than 85

d)

Regardless of temperature

7.

Which real-life scenario best demonstrates using conditional logic to decide what to wear?

a)

Choosing clothes randomly

b)

Checking the weather before picking an outfit

c)

Wearing the same uniform every day

d)

Buying clothes online

8.

Which statement shows conditional thinking about going to the mall?

a)

Go to the mall as soon as it opens

b)

Go to the mall only if your chores are done

c)

Never go to the mall

d)

Go to the mall even when busy

9.

A self-driving car uses conditional logic to decide when to charge. What condition triggers charging according to the notes?

a)

When the speed is high

b)

When the battery is low

c)

When the GPS is off

d)

When the radio is on

10.

Which activity name from the lesson helped students practice using conditionals in fun and interactive ways?

a)

Binary Bingo

b)

Grabbing Crabs

c)

Boolean Baseball

d)

Sorting Socks

11.

Using the logical operator 'and' to combine multiple conditions means what must be true?

a)

At least one condition is true

b)

Both conditions must be true

c)

Exactly one condition is true

d)

Neither condition can be true

12.

In Python, what does the logical operator or mean in a conditional expression? Choose the best definition.

a)

Both conditions must be true for the expression to be true

b)

Only one condition must be true for the expression to be true

c)

The expression is always false regardless of conditions

d)

It checks equality between two values only

13.

Which snippet correctly checks if the variable number is greater than 10 and prints a message?

a)

if number > 10 print('Number is greater than 10')

b)

if number > 10: print('Number is greater than 10')

c)

if number => 10: print('Number is greater than 10')

d)

print('Number is greater than 10') if number > 10:

14.

Why is indentation important when writing conditionals in Python?

a)

Indentation is optional and only used for style

b)

It tells Python which statements belong to the conditional block

c)

It makes the program run faster

d)

It prevents variables from changing values

15.

In an if/elif/else chain, what happens if none of the if or elif conditions are true?

a)

The program stops with an error

b)

The else block runs, handling the case when earlier conditions are false

c)

The first if block still runs by default

d)

Python ignores the whole chain and continues without executing anything