WorksheetsAQA GCSE Computer Science - 3.4.2 Boolean Logic
Total questions: 20
Worksheet time: 7mins
Name
Class
Date
1.
Which number represents True?
a)
1
b)
5
c)
10
d)
100
2.
Which number represents False?
a)
0
b)
-1
c)
-10
d)
-100
3.
What base does binary use?
a)
2
b)
1
c)
16
d)
11
4.
Which of these is not a binary gate?
a)
XAND
b)
XOR
c)
NAND
d)
NOR
5.
In an AND gate, the inputs are ‘A’ and ‘B’ and the output is ‘Q’. If A = 0 and B = 1, what is the output, ‘Q’?
a)
0
b)
1
c)
true
d)
false
6.
In a NOT gate, the input is ‘A’ and the output is ‘Q’. If A = 0, what is the output, ‘Q’?
a)
1
b)
0
c)
true
d)
false
7.
What is the main shape for a NOT gate?
a)
A triangle
b)
A square
c)
A semicircle
d)
A rocket ship
8.
Which of the following is true?
a)
A Boolean data type has only two values: true and false
b)
A Boolean data type has only two values: 1 and 0
c)
A Boolean data type has only two values: yes and no
d)
A Boolean data type has an infinite number of values
9.
What is the purpose of logic gates?
a)
To allow an electronic system to decide based on its inputs
b)
To allow a program to make a decision based on its inputs
c)
To allow an electronic system to make a decision based on its outputs
d)
To use an algorithm to detect the right output
10.
If there are 4 signal inputs, how many possible different outputs are there?
a)
16
b)
8
c)
4
d)
2
11.
Which of the following is a logic gate that leaves the input unchanged?
a)
Buffer
b)
XXNOR
c)
NORARO
d)
XNANDOR
12.
How do OR and XOR logic gates differ?
a)
An OR gate outputs a 1 if one or more of the inputs is a 1 whilst an XOR outputs a 1 if only one (not both) of the inputs is a 1
b)
An OR gate always outputs 0 no matter what the inputs whereas an XOR outputs a 1 if one or more of the inputs is a 1
c)
The OR gate always inputs 1 if one or more input is a 1
d)
There is no difference
13.
Which of the following Boolean statements is true?
a)
x > y will give the result true when the value of x is greater than the value of y
b)
x > y will give the result false when the value of x is greater than the value of y
c)
x > y will give the result true when the value of x is less than the value of y
d)
None are true
14.
How is 'equals to' represented in python?
a)
==
b)
!=
c)
=
d)
-=-
15.
If you are given A = (NOT B OR C) OR (B AND D), where B = 1, C = 0 and D = 1, what is A?
a)
1
b)
2
c)
3
d)
0
16.
What is the shape of an AND gate?
a)
A semicircle
b)
A triangle
c)
A square
d)
A rocket ship
17.
How does an AND gate work in text?
a)
*
b)
+
c)
=
d)
==
18.
How does an OR gate work in text?
a)
+
b)
*
c)
==
d)
!=
19.
How big is a python Boolean?
a)
24 bytes
b)
16 bytes
c)
8 bytes
d)
1 byte
20.
If you are given Q=A+B, where A is 1 and B is 1, what is Q?
a)
1
b)
2
c)
0.5
d)
0
100 %
