wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Logical ORAND Operator Quiz

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.
What does a Boolean value represent in computer programming?
a)
A complex mathematical equation
b)
A type of computer hardware
c)
A programming language
d)
A simple switch that can be ON or OFF
2.
What are the possible Boolean values?
a)
Right and Wrong
b)
On and Maybe
c)
Yes and No
d)
True and False
3.
When using the AND operator, when is the result TRUE?
a)
When at least one condition is false
b)
When either condition is true
c)
When both conditions are true
d)
When no conditions are present
4.
In the traffic light scenario, when would a pedestrian be allowed to cross according to the AND logic?
a)
When there are no cars
b)
When the light is red AND cars are passing
c)
When the light is red
d)
When the light is green AND there are no cars
5.
Which of these is NOT a logical operator?
a)
not
b)
maybe
c)
and
d)
or
6.
What does logical conjunction mean?
a)
A type of computer dance
b)
A way to connect computer cables
c)
A programming language feature
d)
Combining two conditions that must both be true
7.
If A is true and B is false, what is the result of A AND B?
a)
True
b)
Undefined
c)
Maybe
d)
False
8.
What does the OR logical operator do when combining two boolean values?
a)
Always returns false
b)
Returns true only if both values are false
c)
Returns true if at least one value is true
d)
Returns true only if both values are true
9.
In the classroom unplugged activity, when would a student stand on the right side of the class?
a)
If they answer no to both questions
b)
If they answer yes to both questions
c)
If they answer yes to at least one question
d)
If they refuse to answer
10.
What is the result of the OR operation if both input values are false?
a)
Null
b)
False
c)
Undefined
d)
True
11.
In a truth table for the OR operator, when would the result be false?
a)
When one input is true
b)
When both inputs are true
c)
When inputs are undefined
d)
When both inputs are false
12.
Which CodeMonkey challenges were students asked to complete in this lesson?
a)
Challenges 141-145
b)
Challenges 136-140
c)
Challenges 126-130
d)
Challenges 131-135
13.
What does a truth table help programmers understand?
a)
How to write complex code
b)
How to debug software
c)
How to design user interfaces
d)
The possible combinations of input values and their corresponding outputs
14.
In the classroom example, what two questions were asked to determine standing location?
a)
Is your shirt red? Are you wearing kira?
b)
Are you a student? Are you a teacher?
c)
Do you like math? Do you play sports?
d)
Are you tall? Are you wearing blue?
15.
What does 'A or B' mean in logical programming?
a)
Neither A nor B can be true
b)
A and B must both be false
c)
At least A or B is true
d)
A and B must both be true