Skip to topic
    ← Back to course topics

    Analogue and digital — AQA A-Level Computer Science

    Analogue data represents continuous physical signals with infinite possible values, whereas digital data stores information in discrete binary states of 0s and 1s. To process real-world signals, computers rely on Analogue-to-Digital Converters (ADCs) that sample and quantise continuous waveforms according to the Nyquist theorem.

    Analogue and digital explained

    Analogue data is continuous: it can take any value within a range, such as the varying voltage from a microphone or the smooth change of temperature.

    Read the full explanation

    Digital data is discrete: it is stored as a finite set of values, usually binary digits, such as a sample of a sound wave recorded as a series of numbers. Understanding the difference means recognising that analogue signals can have infinitely many possible values between two points, whereas digital data has a fixed, countable set of values. A learner should be able to explain why digitising an analogue signal involves sampling and quantisation, which introduce approximation, and to identify which everyday examples are analogue (a mercury thermometer reading) and which are digital (a number displayed on a digital clock). Always name the defining feature, continuous or discrete, when comparing the two.

    Your focus

    1. Understand the difference between analogue and digital:

    Which command word is this?

    Perform a mathematical computation. Always set out every formula step and express the result in the requested units (e.g., MiB or bits per second).

    Analogue and digital exam tips

    Topic Overview

    Analogue data is continuous and infinitely variable, mirroring natural phenomena such as sound waves, ambient temperature, and electrical voltage. In contrast, digital computer architectures operate strictly on discrete binary values consisting of finite combinations of ones and zeros.

    Bridging these realms requires Analogue-to-Digital Converters (ADCs) for input and Digital-to-Analogue Converters (DACs) for output. Understanding the trade-offs between sampling rate, sample resolution, quantisation distortion, and storage overhead forms a foundational element of AQA A-Level Computer Science hardware and data representation modules.

    Key Concepts
    • →Analogue vs Digital: Analogue signals are continuous in time and amplitude; digital signals are discrete in both time and amplitude.
    • →Analogue-to-Digital Conversion (ADC): Samples an analogue voltage at fixed periodic intervals, quantising continuous values into discrete binary approximations.
    • →Sample Rate and Sample Resolution: Sample rate (Hz) measures samples taken per second; sample resolution (bits) dictates the number of distinct amplitude levels measurable.
    • →Nyquist Theorem: States that the sampling frequency must be at least double the highest frequency in the input signal to prevent aliasing.
    • →Quantisation Error: The difference between the actual continuous analogue signal amplitude and the discrete value assigned by the ADC bit depth.
    Marking Points
    • Defines analogue data as continuous, able to take any value within a range.
    • Defines digital data as discrete, represented by a finite set of values, usually binary.
    • Gives a correct analogue example, such as the voltage from a microphone.
    • Gives a correct digital example, such as a number stored as binary.
    • Explains that digitising an analogue signal introduces approximation through sampling and quantisation.
    Examiner Tips
    • 💡Use the words continuous and discrete explicitly in your answer.
    • 💡Give a specific example for each type rather than a general statement.
    • 💡When asked about the difference, compare both types in the same sentence to show contrast.
    • 💡Show all multiplication and unit conversions explicitly in audio calculation questions; AQA awards method marks even if a minor arithmetic error occurs at the end.
    • 💡In theoretical conversion questions, explicitly walk through the sequence: continuous signal -> band-limiting filter -> periodic sampling -> quantisation -> binary encoding.
    Common Mistakes
    • Describes digital data as the same as analogue data but stored on a computer; correct by stating digital data is discrete.
    • Treats analogue as meaning old or obsolete; correct by focusing on continuous versus discrete values.
    • Says digital data is always more accurate than analogue; correct by noting digitising introduces approximation.
    • Believing that increasing the bit depth captures higher frequencies; in reality, bit depth improves amplitude precision and reduces quantisation noise, while sample rate determines frequency response.
    • Assuming analogue formats are inherently inferior; analogue data contains theoretically infinite detail, but digital formats offer superior noise resistance, lossless reproduction, and simplified algorithmic processing.
    • Using decimal prefixes (1000) instead of binary prefixes (1024) when computing audio file sizes in KiB or MiB for AQA exam questions.
    Revision Plan
    1. 1Review core definitions: continuous vs discrete data, ADCs, and DACs.
    2. 2Master the Nyquist theorem and practice calculating minimum sampling frequencies and identifying aliasing.
    3. 3Practice multiple sound file size and bit-rate calculations using powers of two (1024) for KiB/MiB conversions.
    4. 4Analyse the direct trade-offs between sample rate, sample resolution, audio fidelity, and transmission bandwidth.
    5. 5Complete past paper exam questions focused on sensor inputs, audio digitisation, and MIDI vs sampled audio.
    Exam Question Types
    • 📋Audio file size calculations requiring multi-step unit conversions to KiB or MiB.
    • 📋Scenario-based questions asking how an ADC converts a physical sensor signal into digital data.
    • 📋Comparative analysis questions contrasting sampled audio with synthetic event-based formats such as MIDI.
    Command Word Expectations (AQA)
    Calculate

    Perform a mathematical computation. Always set out every formula step and express the result in the requested units (e.g., MiB or bits per second).

    Explain

    Provide clear reasoning that demonstrates how or why a process occurs, using technical terms such as 'quantisation error', 'sampling rate', or 'aliasing'.

    Compare

    Identify both similarities and differences between two formats or approaches (e.g., analogue vs digital, or MIDI vs sampled audio), addressing both sides equally.

    How Students Lose Marks (Examiner Pitfalls)
    Pitfall: Stating that the sampling rate must be 'equal to' the highest frequency present rather than 'at least double'.
    ❌ Weak Answer (Loses Marks):The sampling rate needs to match the highest frequency of the audio signal to capture it properly.
    Example improved answer:According to the Nyquist theorem, the sampling rate must be at least twice the highest frequency component present in the analogue signal (fs >= 2f_max) to accurately reconstruct the signal without aliasing.
    Examiner Tip: Always state 'at least twice the highest frequency' and cite the Nyquist theorem explicitly when discussing minimum sampling rates.
    Pitfall: Confusing the role of sample resolution with sample rate in sound recording.
    ❌ Weak Answer (Loses Marks):Increasing sample resolution allows you to capture higher-pitched sounds.
    Example improved answer:Increasing sample resolution increases the number of bits available per sample, providing more discrete amplitude levels. This reduces quantisation error and increases dynamic range, whereas sample rate determines the maximum frequency that can be faithfully captured.
    Examiner Tip: Link sample rate to frequency/pitch and sample resolution to amplitude/dynamic range/quantisation error.
    Step-by-Step Worked Solutions

    Question: Calculate the file size in mebibytes (MiB) of an uncompressed stereo audio recording with a sample rate of 44,100 Hz, a sample resolution of 16 bits, and a duration of 3 minutes. Show your working.

    1. 1.Step 1: Calculate total duration in seconds: 3 minutes * 60 seconds = 180 seconds.
    2. 2.Step 2: Identify the number of channels: Stereo means 2 channels.
    3. 3.Step 3: Calculate total bits using the formula: Sample Rate * Sample Resolution * Channels * Duration = 44,100 * 16 * 2 * 180 = 254,016,000 bits.
    4. 4.Step 4: Convert bits to bytes: 254,016,000 / 8 = 31,752,000 bytes.
    5. 5.Step 5: Convert bytes to mebibytes (MiB) using binary multiples (1024^2): 31,752,000 / (1024 * 1024) = 31,752,000 / 1,048,576 = 30.2810... MiB.
    6. 6.Step 6: Round appropriately: 30.28 MiB (to 2 decimal places).
    Final Answer: 30.28 MiB

    Question: An engineer samples a human voice containing frequencies up to 8 kHz using an ADC with a sampling rate of 12 kHz. Explain why distortion occurs, name the effect, and state the minimum sampling rate required to avoid it.

    1. 1.Step 1: State the condition set by the Nyquist theorem: fs >= 2 * f_max.
    2. 2.Step 2: Calculate the required Nyquist rate: 2 * 8 kHz = 16 kHz.
    3. 3.Step 3: Compare with the current sampling rate: The current rate of 12 kHz is below the required 16 kHz threshold.
    4. 4.Step 4: Identify the resulting effect: Undersampling causes high-frequency waves to masquerade as false low-frequency waves upon reconstruction, an effect called aliasing.
    5. 5.Step 5: State the remedy: The sampling rate must be raised to at least 16 kHz (or a low-pass anti-aliasing filter must cut frequencies above 6 kHz).
    Final Answer: Distortion occurs due to aliasing because the 12 kHz sampling rate is lower than double the maximum frequency (16 kHz). The minimum sampling rate required is 16 kHz.
    Active Recall Memory Test
    What does the Nyquist theorem state regarding the sampling rate of an analogue signal?
    Key Fact: The sampling rate must be at least twice the highest frequency component present in the signal (fs >= 2f_max) to faithfully reconstruct it without aliasing.
    What is quantisation error in an Analogue-to-Digital Converter?
    Key Fact: The difference between the actual continuous analogue signal value and the nearest discrete value allocated by the ADC based on its bit depth.
    What formula calculates the file size in bits of an uncompressed digital audio recording?
    Key Fact: File size (bits) = Sample rate (Hz) * Sample resolution (bits) * Duration (seconds) * Number of channels.
    How does increasing the sample resolution improve the quality of a digital recording?
    Key Fact: It provides more quantisation levels, allowing the wave amplitude to be represented more precisely, which increases dynamic range and lowers quantisation noise.
    Frequently Asked Questions
    What is the fundamental difference between analogue and digital data?
    Analogue data is continuous and can take on an infinite number of values within a range, fluctuating smoothly without steps. Digital data is discrete, representing information using fixed, distinct binary states (0s and 1s) sampled at specific moments in time.
    Why cannot computers process analogue signals directly?
    Modern computers are built from digital logic gates that operate purely on discrete binary voltages (representing logical high and low). Because an analogue signal is continuous and infinitely variable, an Analogue-to-Digital Converter (ADC) is required to convert those physical signals into binary numbers that registers and ALUs can process.
    What is aliasing and how is it prevented in audio recording?
    Aliasing occurs when an analogue signal is sampled at a rate lower than twice its highest frequency, causing higher-frequency components to distort into false lower frequencies during playback. It is prevented by adhering to the Nyquist theorem (sampling at fs >= 2f_max) and by applying a low-pass anti-aliasing filter before digitisation to cut frequencies above half the sampling rate.
    What is the difference between sample rate and sample resolution?
    Sample rate refers to how frequently measurements are taken per second along the time axis, measured in Hertz (Hz). Sample resolution (bit depth) refers to the precision of each individual measurement along the amplitude axis, measured in bits per sample.
    Why is standard CD audio sampled at 44.1 kHz?
    The human ear can detect frequencies up to approximately 20 kHz. By the Nyquist theorem, capturing frequencies up to 20 kHz requires a sampling rate of at least 40 kHz; 44.1 kHz was adopted to allow headroom for practical anti-aliasing low-pass reconstruction filters without steep phase distortion.