Question 7

AQA Computer Science November 2021 Paper 1 (8520/1)GCSE11 marks

On the specification

7.1
3.4 Computer systems
7.2
3.4 Computer systems
7.3
3.4 Computer systems
7.4
3.2 Programming3.4 Computer systems
7.5
3.4 Computer systems
7.6
3.1 Fundamentals of algorithms3.2 Programming
Question text

7 1 box . Draw the logic circuit, using only one logic gate, that is represented by the following truth table: Input A Input B Output Q 0 0 1 1 10 1 11 1 [1 mark] 7.2 Shade one lozenge to show the Boolean expression that is equivalent to the logic circuit shown in Figure 6. Figure 6 [1 mark] A A AND NOT B B NOT (A AND B) C (NOT A) AND B D (NOT A) AND (NOT B) 7.3 Shade one lozenge to show the Boolean expression which is equivalent to the logic box circuit shown in Figure 7. Figure 7 [1 mark] A NOT ((A OR B) AND C) B (NOT A) OR ((NOT B) AND C) C (NOT (A OR B)) AND C D ((NOT A) OR (NOT B)) AND C 7 4 box . Figure 8 shows an algorithm. Figure 8 x ← True y ← False IF NOT (x AND y) THEN OUTPUT 'A' IF NOT((NOT x) OR (NOT y)) THEN OUTPUT 'B' ELSE OUTPUT 'C' ENDIF ELSE OUTPUT 'D' IF (NOT x) AND (NOT y) THEN OUTPUT 'E' ELSE OUTPUT 'F' ENDIF ENDIF State the output from the algorithm shown in Figure 8. [2 marks] 7.5 Draw a logic circuit in the box below for the following scenario. box A sewing machine is running (R) if either the foot pedal is on (F) or the hand dial is on (H) but not both. You should use only the gates AND, OR and NOT in your answer. [3 marks] 7.6 Develop an algorithm, using either pseudo-code or a flowchart, that prompts the user box to enter three values. It should output 'duplicate' if at least two of these values are the same. The start of the algorithm has been written for you. [3 marks] v1 ← USERINPUT v2 ← USERINPUT v3 ← USERINPUT