NEW
Font size
WorksheetsBoolean Logic Quiz
Total questions: 20
Worksheet time: 10mins
What does the operator == mean?
Greater than
Less than
Equal to
Not equal to
What does != mean?
Equal to
Not equal to
Greater than
Less than
What does the > operator check?
If two values are the same
If the left value is smaller
If the left value is bigger
If both are equal
Which operator means “less than or equal to”?
==
<=
Which of the following statements is True?
5 is less than 2
8 equals 8
7 is smaller than 3
10 is not equal to 10
What is the result of the expression “7 is greater than 3”?
True
False
Error
Nothing happens
What is the result of the expression “4 is less than 2”?
True
False
Error
None
Which statement about the and operator is correct?
It is True if both conditions are True
It is True if one condition is True
It always returns False
It checks if numbers are equal
Which statement about the or operator is correct?
It is True only if both conditions are True
It is True if at least one condition is True
It always returns False
It means “not equal”
Which statement about the not operator is correct?
It compares two numbers
It reverses True and False
It adds two values
It checks if both conditions are True
If the first condition is True and the second is False, what is the result of and?
True
False
Error
It depends on the numbers
If the first condition is True and the second is False, what is the result of or?
True
False
Error
Always False
Which expression would be True?
10 is less than 5
7 equals 7
4 is greater than 9
3 is not 3
Which expression would be False?
6 is greater than 2
3 equals 3
8 is not equal to 8
5 is less than 10
Which situation is similar to using and?
You can enter the club if you are tall or you have a ticket
You can enter the club only if you are tall and you have a ticket
You can enter the club if you don’t have a ticket
You can enter no matter what
Which situation is similar to using or?
You must bring both your ID and your student card
You can bring either your ID or your student card
You must bring neither ID nor student card
You must bring nothing
Which situation is similar to using not?
If it is raining, bring an umbrella
If it is not raining, go outside
If it is cold, wear a jacket
If you have a ticket, enter the cinema
What happens if both conditions are False with the or operator?
The result is True
The result is False
It gives an error
It repeats the question
What happens if both conditions are True with the and operator?
The result is True
The result is False
It gives an error
Nothing happens
Which statement best describes Boolean logic?
It is about numbers and decimals
It is about comparing and making decisions
It is about drawing shapes
It is about repeating code many times
