EuraStudy
This chapter connects the software a programmer writes to the electronics that runs it. It classifies hardware and software and the operating system's role, distinguishes machine code, assembly and high-level languages and their translators, and then descends to the logic level: the six logic gates, the laws of Boolean algebra and how to simplify expressions, and the combinational and sequential circuits - the half and full adder and the flip-flop - from which a processor's arithmetic and memory are built.
5 sections~16 min reading time3 competenciesLevel Foundation 1 · Standard 2 · Advanced 2
basic level
AS-Level expects hardware/software classification, translators, the logic gates and simple truth tables.
higher level
The full A-Level adds Boolean algebra and simplification (including De Morgan's laws), the half and full adder, and the D-type flip-flop as a single-bit store.
Reading depth: In depth
Text size: Standard
Typical mistakes
Active revision
State whether each is system or application software and justify it: a web browser, a device driver, a disk defragmenter, a spreadsheet. Then describe two roles the operating system performs when two programs run at the same time.
Active recall
Recall the key points — then reveal.
Sources: GCE AS and A level subject content for computer science (Department for Education) · AQA A-level Computer Science 7517 specification (AQA)
Typical mistakes
Active revision
A team is developing and frequently testing a program, then distributing the finished version to customers on several operating systems. Recommend a translation approach for the development phase and for distribution, justifying each choice.
Active recall
Recall the key points — then reveal.
Sources: AQA A-level Computer Science 7517 specification (AQA)
Truth tables for the two-input gates
Find the output for all combinations, and list the input rows where Q = 1.
Q is 1 when NOT A is 1 (i.e. A = 0), OR when both B and C are 1 - the two terms are combined with OR.
Whenever A = 0, NOT A = 1, so Q = 1 regardless of B and C: rows 000, 001, 010, 011 all give Q = 1.
When A = 1, NOT A = 0, so Q = B AND C: only 111 gives Q = 1; 100, 101, 110 give 0.
Result: Q = 1 for 000, 001, 010, 011 and 111 (five of the eight rows); Q = 0 for 100, 101, 110.
Typical mistakes
Active revision
Complete the truth table for the circuit output for all eight combinations of A, B, C, and state for how many rows Q = 1.
Active recall
Recall the key points — then reveal.
Sources: AQA A-level Computer Science 7517 specification (AQA)
Verifying a Boolean simplification by truth table
De Morgan's laws
Break the bar and swap the operator: the complement of an AND is the OR of the complements, and vice versa.
A useful absorption variant
Adds the missing case: once is present, contributes only the extra .
Simplify , naming each law.
By distribution, , leaving .
(complement), so (identity). The expression is now .
.
Result: The expression simplifies to . The truth table opposite confirms the two forms agree on all four rows - three gates' worth of logic replaced by one.
Typical mistakes
Active revision
Simplify using Boolean laws, naming each law you use, and confirm the result with a full truth table.
Active recall
Recall the key points — then reveal.
Sources: AQA A-level Computer Science 7517 specification (AQA)
A half adder
Half adder
Sum is the exclusive-OR of the inputs; carry is their AND - read straight off the single-bit addition table.
A full adder from two half adders
A D-type flip-flop
For a full adder with inputs A = 1, B = 1 and carry-in = 1, work out the sum and carry-out using the two-half-adder structure.
Sum1 ; Carry1 .
Sum ; Carry2 .
Carry-out Carry1 OR Carry2 .
Result: Sum = 1, carry-out = 1 - correct, since (a 1 in the sum column and a 1 carried out).
Typical mistakes
Active revision
Draw the truth table for a full adder (inputs A, B, carry-in; outputs sum, carry-out) and confirm that 1 + 1 + 1 gives sum 1 and carry-out 1. Then explain what a D-type flip-flop outputs on the clock edge if D = 1.
Active recall
Recall the key points — then reveal.
Sources: AQA A-level Computer Science 7517 specification (AQA)
References & sources
Department for Education