Question 5
OCR Computer Science November 2021 Computer systems (H446-01)A level13 marks
On the specification
- (a)
- 1.4 Data types, data structures and algorithms
- (b)(i)
- 1.4 Data types, data structures and algorithms
- (c)(i)
- 1.4 Data types, data structures and algorithms
- (c)(ii)
- 1.4 Data types, data structures and algorithms
- (c)(iii)
- 1.4 Data types, data structures and algorithms
Question text
5 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 (a) Complete the Boolean expression below: Q ≡ [3] (b) Another Boolean expression for a logic system is shown below: Q ≡ ¬ (¬ A ∧ ¬ B) (i) 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. [2] A S B C (c) The logic circuit above has two inputs (A, B) and two outputs (S, C). (i) Give the Boolean expressions for the outputs S and C. S ≡ C ≡ [2] (ii) Complete the truth table for this logic circuit. A B S C 0 1 10 11 [2] (iii) Describe how this logic circuit can be adapted to add together two 4-bit binary numbers. [4]