wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Boolean Logic Quiz

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

What does the operator == mean?

a)

Greater than

b)

Less than

c)

Equal to

d)

Not equal to

2.

What does != mean?

a)

Equal to

b)

Not equal to

c)

Greater than

d)

Less than

3.

What does the > operator check?

a)

If two values are the same

b)

If the left value is smaller

c)

If the left value is bigger

d)

If both are equal

4.

Which operator means “less than or equal to”?

a)
b)

==

c)

<=

d)
5.

Which of the following statements is True?

a)

5 is less than 2

b)

8 equals 8

c)

7 is smaller than 3

d)

10 is not equal to 10

6.

What is the result of the expression “7 is greater than 3”?

a)

True

b)

False

c)

Error

d)

Nothing happens

7.

What is the result of the expression “4 is less than 2”?

a)

True

b)

False

c)

Error

d)

None

8.

Which statement about the and operator is correct?

a)

It is True if both conditions are True

b)

It is True if one condition is True

c)

It always returns False

d)

It checks if numbers are equal

9.

Which statement about the or operator is correct?

a)

It is True only if both conditions are True

b)

It is True if at least one condition is True

c)

It always returns False

d)

It means “not equal”

10.

Which statement about the not operator is correct?

a)

It compares two numbers

b)

It reverses True and False

c)

It adds two values

d)

It checks if both conditions are True

11.

If the first condition is True and the second is False, what is the result of and?

a)

True

b)

False

c)

Error

d)

It depends on the numbers

12.

If the first condition is True and the second is False, what is the result of or?

a)

True

b)

False

c)

Error

d)

Always False

13.

Which expression would be True?

a)

10 is less than 5

b)

7 equals 7

c)

4 is greater than 9

d)

3 is not 3

14.

Which expression would be False?

a)

6 is greater than 2

b)

3 equals 3

c)

8 is not equal to 8

d)

5 is less than 10

15.

Which situation is similar to using and?

a)

You can enter the club if you are tall or you have a ticket

b)

You can enter the club only if you are tall and you have a ticket

c)

You can enter the club if you don’t have a ticket

d)

You can enter no matter what

16.

Which situation is similar to using or?

a)

You must bring both your ID and your student card

b)

You can bring either your ID or your student card

c)

You must bring neither ID nor student card

d)

You must bring nothing

17.

Which situation is similar to using not?

a)

If it is raining, bring an umbrella

b)

If it is not raining, go outside

c)

If it is cold, wear a jacket

d)

If you have a ticket, enter the cinema

18.

What happens if both conditions are False with the or operator?

a)

The result is True

b)

The result is False

c)

It gives an error

d)

It repeats the question

19.

What happens if both conditions are True with the and operator?

a)

The result is True

b)

The result is False

c)

It gives an error

d)

Nothing happens

20.

Which statement best describes Boolean logic?

a)

It is about numbers and decimals

b)

It is about comparing and making decisions

c)

It is about drawing shapes

d)

It is about repeating code many times