Boolean Algebra (OCR A Level Computer Science): Exam Questions

Exam code: H446

44 mins12 questions
1
2 marks

A computer scientist has created the following logic circuit shown in Fig. 6.

Logic circuit diagram with three inputs A, B, and C. It includes an AND gate, a NOT gate, and an OR gate, producing output P.

Fig 6

Give the Boolean expression that represents the logic circuit shown in Fig. 6.

Do not attempt to simplify the expression.

2
2 marks

State the purpose of a D-type flip-flop circuit.

3
3 marks

A computer scientist has created the following logic circuit shown in Fig. 6.

Logic circuit diagram with three inputs A, B, and C. It includes an AND gate, a NOT gate, and an OR gate, producing output P.

Fig 6

Complete the truth table for the logic circuit shown in Fig. 6

A

B

C

P

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
3 marks

All users of a computer system have a unique username and password. The computer system has implemented two-factor authentication so that users must respond to either an email or text message containing a secret code to be able to access the system

Let:

A be a Boolean value for if a user enters a valid username

B be a Boolean value for if a user enters a password that matches their username

C be a Boolean value for if a user is able to respond to an email containing a secret code

D be a Boolean value for if a user is able to respond to a text message containing a secret code

Q be a Boolean value for if entry to the computer system is allowed

Complete the Boolean expression below:

Q ≡ .................................................................................

5
2 marks

A Boolean expression for a logic system is shown below:

Q ≡ ¬ (¬ A ∧ ¬ B)

Simplify this Boolean expression so that it does not include any negation.

You must explain which Boolean algebra rule(s) you are using at each step.

6a
2 marks
Logic circuit diagram with two inputs, A and B. A feeds an OR gate producing output S, and both A and B feed an AND gate producing output C.

The logic circuit above has two inputs (A, B) and two outputs (S, C).

Give the Boolean expressions for the outputs S and C.

6b
2 marks

Complete the truth table for this logic circuit

A

B

S

C

0

0

0

1

1

0

1

1

6c
4 marks

Describe how this logic circuit can be adapted to add together two 4-bit binary numbers.

7a
3 marks

Complete the Karnaugh map below for the Boolean expression (¬ A ∧ ¬ B) ∨ ( A ∧ ¬ B)

Karnaugh map with variables AB on top and CD on the side, each ranging from 00 to 11, showing a 4x4 grid of empty cells.
7b
2 marks

Use the Karnaugh map to find a simplified Boolean expression that is equivalent to (¬ A ∧ ¬ B) ∨ ( A ∧ ¬ B)

You should highlight the map as appropriate and write the expression.

8
3 marks

Describe the inputs and outputs used by a D-type flip-flop circuit, explaining how the inputs are used to control the outputs.

9
4 marks

The following Karnaugh map represents another logic circuit.

Karnaugh map with binary labels AB and CD on axes. Contains 16 cells with numbers 1 and 0, representing logical values in a grid format.

Use this Karnaugh map to find the simplified expression for this circuit

You should highlight the map as appropriate and write the expression.

10
4 marks

Ben installs burglar alarms. The alarm is made up of a door sensor and a motion sensor. When the alarm is set, the siren will sound if either the door sensor or the motion sensor detect movement.

The alarm also has a test mode setting. When the test mode setting is enabled, an engineer can check the sensors are working without the siren going off.

The inputs to the alarm are as follows

Input

System

A

Door sensor

B

Motion sensor

C

Alarm has been set

D

Test mode enabled

Draw a logic circuit to show the logic that is used in the burglar alarm to determine if the siren goes off.

11a
1 mark

Simplify the Boolean expression ¬A v ¬B using De Morgan’s First Law

11b
1 mark

Simplify the Boolean expression ¬(¬B) using double negation.

11c
2 marks

Simplify the Boolean expression (A v B) ˄ (A v C) using distribution.

12
4 marks

A logic circuit is designed to control a safety system using four inputs (A, B, C, D). A completed 4×4 Karnaugh map has 1s only in the four corner cells:

  • AB = 00, CD = 00

  • AB = 10, CD = 00

  • AB = 00, CD = 10

  • AB = 10, CD = 10

Determine the simplified Boolean expression for the circuit and evaluate how the wrap-around property of the map contributes to reducing the physical hardware required.