Boolean logic – IGCSE Computer Science (0478)
20 questions · page 1 of 2 · Clear filters
Question text
8
Consider the following logic statement:
X = (((A AND NOT B) OR (NOT (B NOR C))) AND C)
(a) Draw a logic circuit to represent the given logic statement.
Do not attempt to simplify the logic statement. All logic gates must have a maximum of two
inputs.
A
X
B
C
[6]
(b) Complete the truth table for the given logic statement.
Working space
A
B
C
X
0
0
0
0
0
1
0
1
0
0
1
1
1
0
0
1
0
1
1
1
0
1
1
1
[4]
Question text
5
Consider the following logic statement:
X = ((A OR B) AND (NOT (B XOR C)) AND C)
(a) Draw a logic circuit to represent the given logic statement.
Do not attempt to simplify the logic statement. All logic gates must have a maximum of two
inputs.
A
B
X
C
[5]
(b) Complete the truth table for the given logic statement.
Working space
A
B
C
X
0
0
0
0
0
1
0
1
0
0
1
1
1
0
0
1
0
1
1
1
0
1
1
1
[4]
Question text
3
AND, OR and XOR are three examples of logic gates.
(a) Four statements are given about these logic gates.
Tick (3) to show which statements apply to each logic gate. Some statements may apply to
more than one logic gate.
AND
OR
XOR
Statement
(3)
(3)
(3)
if both inputs are 0, the output is 0
if both inputs are different, the output is 1
if both inputs are 1, the output is 1
if both inputs are the same, the output is always 0
[4]
(b) NOT, AND, OR and XOR are all examples of logic gates.
State the name of two other logic gates and complete a truth table for each.
Logic gate 1 …
Truth table:
A
B
Output
0
0
0
1
1
0
1
1
Logic gate 2 …
Truth table:
A
B
Output
0
0
0
1
1
0
1
1
[4]
Question text
6
Consider the logic statement:
X = (((A AND B) OR (C AND NOT B)) XOR NOT C)
(a) Draw a logic circuit to represent the given logic statement.
Do not attempt to simplify the statement. All logic gates must have a maximum of two inputs.
A
B
X
C
[6]
(b) Consider the completed truth table for the given logic statement.
Row
Working space
A
B
C
X
number
0
1
0
0
0
1
2
0
0
1
0
3
0
1
0
1
4
0
1
1
0
5
1
0
0
1
6
1
0
1
0
7
1
1
0
1
8
1
1
1
There are four errors in the truth table in the output (X) column.
Identify the four incorrect outputs.
Write the row number to identify each incorrect output.
Row …
Row …
Row …
Row …
[4]
Question text
3
Consider the logic statement:
X = ((((NOT A AND B) OR C) AND B) NOR (B OR C))
(a) Draw a logic circuit to represent the given logic statement.
Do not attempt to simplify the statement. All logic gates must have a maximum of two inputs.
A
B
X
C
[6]
(b) Consider the completed truth table for the given logic statement.
Row
Working space
A
B
C
X
number
1
1
0
0
0
1
2
0
0
1
1
3
0
1
0
0
4
0
1
1
1
5
1
0
0
0
6
1
0
1
1
7
1
1
0
1
8
1
1
1
There are four errors in the truth table in the output (X) column.
Identify the four incorrect outputs.
Write the row number to identify each incorrect output.
Row …
Row …
Row …
Row …
[4]
Question text
8
Consider the following logic circuit:
A
X
B
C
(a) Two NOT gates are used in the given logic circuit.
Identify three other logic gates that are used in the given logic circuit.
1 …
2 …
3 …
[3]
(b) Consider the completed truth table for the given logic circuit.
Row
Working space
A
B
C
X
number
0
1
0
0
0
1
2
0
0
1
0
3
0
1
0
0
4
0
1
1
1
5
1
0
0
1
6
1
0
1
0
7
1
1
0
1
8
1
1
1
There are four errors in the truth table in the output (X) column.
Identify the four incorrect outputs.
Write the row number to identify each incorrect output.
Row …
Row …
Row …
Row …
[4]
Question text
2
Consider the logic statement:
X = (((A NAND B) OR (B XOR C)) AND NOT C)
(a) Draw a logic circuit to match the given logic statement.
All logic gates must have a maximum of two inputs. Do not attempt to simplify the logic
statement.
A
B
X
C
[5]
(b) Complete the truth table to represent the given logic statement.
Working space
A
B
C
X
0
0
0
0
0
1
0
1
0
0
1
1
1
0
0
1
0
1
1
1
0
1
1
1
[4]
Question text
4
(a) Identify the name and draw the single logic gate that can replace the given logic circuits.
(i)
A
X
B
Name of gate: …
Drawing of gate:
[2]
(ii)
A
X
B
Name of gate: …
Drawing of gate:
[2]
(b) Complete the truth table for the given logic statement:
X = (((A OR C) AND (NOT A AND NOT C)) XOR B)
Working space
A
B
C
X
0
0
0
0
0
1
0
1
0
0
1
1
1
0
0
1
0
1
1
1
0
1
1
1
[4]
Question text
6
Consider the given logic statement:
X = (((A XOR B) AND C) OR NOT C)
(a) Draw a logic circuit to match the given logic statement.
All logic gates must have a maximum of two inputs. Do not attempt to simplify the logic
statement.
A
B
X
C
[4]
(b) Complete the truth table for the given logic statement.
Working space
A
B
C
X
0
0
0
0
0
1
0
1
0
0
1
1
1
0
0
1
0
1
1
1
0
1
1
1
[4]
Question text
2
Rajesh creates a logic circuit.
He uses three different logic gates in his circuit. Each logic gate has a maximum of two inputs.
He describes the logic of each gate.
(a) “The only time the output will be 1 is when both inputs are 1.”
State the single logic gate …
Draw the single logic gate:
[2]
(b) “The only time the output will be 1 is when both inputs are 0.”
State the single logic gate …
Draw the single logic gate:
[2]
(c) “The only time the output will be 0 is when both inputs are 1.”
State the single logic gate …
Draw the single logic gate:
[2]
Question text
8
Consider the logic statement:
X = 1 if ((A is 1 NOR C is 1) AND (B is NOT 1 NOR C is 1)) OR (A is 1 AND B is 1)
(a) Draw a logic circuit to match the given logic statement. Each logic gate used must have a
maximum of two inputs. Do not attempt to simplify the logic statement.
A
X
B
C
[6]
(b) Complete the truth table for the given logic statement.
Working space
A
B
C
X
0
0
0
0
0
1
0
1
0
0
1
1
1
0
0
1
0
1
1
1
0
1
1
1
[4]
Question text
4
Consider the given logic circuit:
A
X
B
C
(a) Redraw the logic circuit using only 4 logic gates. Each logic gate used must have a maximum
of two inputs.
A
X
B
C
[4]
(b) Complete the truth table for the given logic circuit.
Working space
A
B
C
X
0
0
0
0
0
1
0
1
0
0
1
1
1
0
0
1
0
1
1
1
0
1
1
1
[4]
(c) Describe the purpose of a logic gate in a logic circuit.
…
…
…
… [2]
Question text
6
Consider the logic statement:
X = 1 if ((A is NOT 1 OR B is 1) NOR C is 1) NAND ((A is 1 AND C is 1) NOR B is 1)
(a) Draw a logic circuit to represent the given logic statement.
A
B
X
C
[6]
(b) Complete the truth table for the given logic statement.
Working space
A
B
C
X
0
0
0
0
0
1
0
1
0
0
1
1
1
0
0
1
0
1
1
1
0
1
1
1
[4]
Question text
7
Consider the logic statement:
X = 1 if ((A is 1 AND B is NOT 1) NAND C is 1) XOR ((A is 1 AND C is 1) OR B is 1)
(a) Draw a logic circuit to represent the given logic statement.
A
B
X
C
[6]
(b) Complete the truth table for the given logic statement.
Working space
A
B
C
X
0
0
0
0
0
1
0
1
0
0
1
1
1
0
0
1
0
1
1
1
0
1
1
1
[4]
Question text
8
A logic circuit is shown below.
A
B
X
C
(a) Complete the truth table for the given logic circuit.
Working space
A
B
C
X
0
0
0
0
0
1
0
1
0
0
1
1
1
0
0
1
0
1
1
1
0
1
1
1
[4]
(b) Draw a logic circuit corresponding to this logic statement:
X = 1 if (A is NOT 1) OR ((B is 1 OR C is 1) AND (B is NOT 1 OR A is NOT 1))
A
B
X
C
[6]