wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

8525 AQA GCSE 3.2.5 Boolean Operations

Total questions: 10

Worksheet time: 8mins

Name
Class
Date
1.

How many values does a Boolean variable have?

a)

4

b)

3

c)

2

d)

1

e)

Infinite

2.

What will the result of this code be?


var = True and False


print(var)

a)

True

b)

False

c)

var

d)

none of these

3.
There are three fundamental operations in Boolean Algebra: ___
a)
Addition, Subtraction and Multiplication
b)
NOT, AND, and OR
c)
IF, AND, and BUT
d)
IF, ELSE and ELSE IF
4.
In an AND statement both sides need to be TRUE to produce an output of TRUE.
a)
True
b)
False
5.
In an OR statement both sides need to be TRUE to produce an output of TRUE.
a)
False
b)
True
6.

Which of these are boolean operators, implemented in the computer as logic gates?

Check all that apply

a)

NOT

b)

MOD

c)

OR

d)

AND

e)

DIV

7.
A variable that can only have two values, True or False.
a)
Boolean
b)
If
c)
elif
d)
else
8.
Which is the correct syntax?
a)
has_dog = true
b)
has_dog = True
c)
has_dog = Treu
d)
HAS_DOG = tRue
9.

X = 100

Y = 50

print(x and y)


What is the ouput of this code?

a)

True

b)

100

c)

False

d)

50

10.

What is the output of the following Python code?

x = 10

y = 50

if (x ** 2 > 100 and y < 100):

print(x, y)

a)

100 500

b)

10 50

c)

1 5

d)

none