Skip to topic
    ← Back to course topics

    Mathematics — Eduqas A-Level Computer Science

    Test yourself on Mathematics with EDUQAS A-Level practice questions.

    Start free

    7 days Premium · Then free forever · No card, no charge

    Mathematics explained

    This subtopic covers fundamental mathematical concepts including number systems, algebraic manipulation, and the use of mathematical notation in computational contexts.

    Read the full explanation

    It provides the essential toolkit for solving problems in computer science, such as data representation, algorithm analysis, and logical reasoning. Mastery of these skills is critical for success in A-Level Computer Science, as they underpin many theoretical and practical aspects of the subject.

    Your focus

    1. Convert numbers between binary, decimal, and hexadecimal systems
    2. Perform arithmetic operations in binary and hexadecimal
    3. Simplify algebraic expressions using laws of indices and surds
    Show all 7 objectives
    1. Solve linear and quadratic equations
    2. Apply algebraic techniques to solve problems in computer science contexts
    3. Interpret and use mathematical notation relevant to computing
    4. Analyze the relationship between number systems and data representation

    Mathematics exam tips

    Quick Revision Summary (Key Takeaway)

    Mathematics for Computer Science at Eduqas A-Level covers number bases, Boolean algebra, data representation, and algorithmic maths that underpin how computers store, process, and manipulate data. It is assessed in Component 2 (Computational Thinking and Programming) and requires precise application of binary, hexadecimal, two's complement, floating-point, and Boolean simplification techniques.

    Topic Overview

    Mathematics for Computer Science at Eduqas A-Level explores the fundamental numerical and logical systems that computers use to represent, store, and process data. It covers number bases (binary, denary, hexadecimal), signed binary representation (two's complement), floating-point arithmetic, Boolean algebra, and the mathematical operations behind data structures and algorithms. These topics are essential because every digital system, from a simple calculator to a complex AI model, relies on these mathematical foundations.

    This topic sits within Component 2 of the Eduqas A-Level Computer Science specification, alongside programming and algorithms. It provides the theoretical grounding for understanding how data is manipulated at the hardware level and how logical decisions are made in software. Mastery of these mathematical concepts is crucial for tackling exam questions on data representation, error handling, and logic circuit design, and it supports further study in computer architecture and software engineering.

    Key Concepts
    • →Number bases: binary (base 2), denary (base 10), and hexadecimal (base 16) conversions, including the use of nibbles and bytes.
    • →Signed binary representation: two's complement for representing negative integers, and the concept of overflow and underflow.
    • →Floating-point representation: mantissa and exponent, normalisation, and the trade-off between range and precision.
    • →Boolean algebra: logic gates (AND, OR, NOT, NAND, NOR, XOR), truth tables, and simplification using De Morgan's laws and Karnaugh maps.
    • →Data representation: character sets (ASCII, Unicode), bitmapped graphics, and sound sampling, including calculations of file sizes.
    Marking Points
    • Award credit for correct conversion between number bases with clear working
    • Award credit for accurate arithmetic in binary and hexadecimal, including carrying and borrowing
    • Award credit for correct application of index laws and simplification of surds
    • Award credit for solving equations systematically, showing all steps
    • Award credit for linking algebraic solutions to computing scenarios, such as calculating memory addresses or data sizes
    • Award credit for correct use of notation such as ∑, ∏, and logical operators
    Examiner Tips
    • 💡Practice conversions between number bases regularly to build speed and accuracy
    • 💡Show all working in algebra questions to gain method marks even if the final answer is wrong
    • 💡Use a systematic approach to solve equations: simplify, isolate the variable, and verify
    • 💡Familiarize yourself with common computing contexts where these skills are applied, such as IP addressing or file size calculations
    • 💡In exams, allocate time wisely: don't spend too long on a single conversion or equation
    • 💡Always show your working for conversions and calculations, even if you use a mental method. Marks are awarded for correct stages, not just the final answer.
    • 💡When simplifying Boolean expressions, state the law or rule you are applying at each step. This demonstrates understanding and helps you avoid careless errors.
    • 💡For floating-point questions, check whether the mantissa and exponent are in two's complement or unsigned, as this changes the interpretation. Read the question carefully.
    Common Mistakes
    • Confusing binary and decimal place values, leading to incorrect conversions
    • Misapplying the order of operations (BIDMAS) in algebraic expressions
    • Forgetting to carry over in binary addition or borrow in subtraction
    • Incorrectly simplifying expressions with negative indices or fractional powers
    • Overlooking the need to check solutions in the original equation, especially for quadratic equations
    • Students often think that adding a minus sign to a binary number makes it negative in two's complement. Correction: negative numbers are represented by inverting bits and adding 1, and the most significant bit indicates the sign.
    • Students frequently confuse the mantissa and exponent in floating-point numbers, thinking the exponent holds the significant digits. Correction: the mantissa holds the significant digits (as a fraction), and the exponent determines the position of the binary point.
    • Students sometimes believe that hexadecimal is a different number system entirely, rather than a shorthand for binary. Correction: hexadecimal is base 16 and is used as a compact way to represent binary data, with each hex digit corresponding to exactly four bits.
    Revision Plan
    1. 1Week 1, Days 1-2: Revise number bases and conversions between binary, denary, and hexadecimal. Practice converting positive and negative numbers using two's complement.
    2. 2Week 1, Days 3-4: Study floating-point representation, including normalisation and calculating denary values from mantissa and exponent. Work through past paper questions.
    3. 3Week 1, Days 5-7: Learn Boolean algebra, logic gates, and simplification techniques. Create truth tables for common expressions and practice De Morgan's laws.
    4. 4Week 2, Days 1-3: Apply mathematical concepts to data representation topics such as character sets, images, and sound. Calculate file sizes and sampling rates.
    5. 5Week 2, Days 4-7: Complete timed exam-style questions on all topics, focusing on areas of weakness. Review mark schemes to understand examiner expectations.
    Exam Question Types
    • 📋Conversion questions: Convert a denary number to binary or hexadecimal, or vice versa. Advice: show your method and double-check your answer by converting back.
    • 📋Two's complement and floating-point calculations: Represent a negative number in two's complement or calculate the denary value of a floating-point number. Advice: pay attention to bit widths and whether values are signed or unsigned.
    • 📋Boolean algebra simplification: Simplify a given Boolean expression using laws and identities. Advice: state each law used and verify with a truth table if time permits.
    • 📋Data representation calculations: Calculate file sizes for images or sound, or explain the impact of resolution and sampling rate. Advice: use the correct formulas and units, and show all steps.
    Command Word Expectations (EDUQAS)
    Convert

    In Eduqas A-Level Computer Science, 'convert' requires you to change a value from one representation to another, showing all steps. Marks are awarded for correct intermediate stages, not just the final answer.

    Simplify

    When asked to 'simplify' a Boolean expression, you must reduce it to its simplest form using Boolean laws. You should state the law applied at each step and ensure the final expression is fully simplified, often to a sum-of-products or product-of-sums form.

    Calculate

    'Calculate' means you must work out a numerical value using given data and appropriate formulas. You should show your working and give your answer with correct units where applicable. Marks are typically awarded for the correct method and the final answer.

    How Students Lose Marks (Examiner Pitfalls)
    Pitfall: Students lose marks when converting negative denary numbers to two's complement binary by simply adding a minus sign or flipping bits without adding 1, and when they fail to state the fixed bit width required by the question.
    ❌ Weak Answer (Loses Marks):For -45 in 8-bit two's complement: '10101101' (incorrect because the student flipped bits of 45 but forgot to add 1, or used the wrong bit width).
    Example improved answer:Step 1: Write +45 in 8-bit binary: 00101101. Step 2: Invert all bits: 11010010. Step 3: Add 1 to the least significant bit: 11010011. Therefore -45 in 8-bit two's complement is 11010011.
    Examiner Tip: Always show the three explicit stages: positive binary, bit inversion, then add 1. State the bit width in your answer and check the most significant bit is 1 for negative numbers.
    Pitfall: In Boolean algebra, students often apply De Morgan's laws incorrectly by changing the operator but forgetting to invert each individual term, or they fail to simplify fully to the required form.
    ❌ Weak Answer (Loses Marks):Simplifying NOT(A AND B) to 'NOT A AND NOT B' instead of 'NOT A OR NOT B'.
    Example improved answer:Using De Morgan's law: NOT(A AND B) = (NOT A) OR (NOT B). For example, if A=1 and B=0, NOT(A AND B) = NOT(0) = 1, and (NOT A) OR (NOT B) = 0 OR 1 = 1. Both sides match, confirming the simplification.
    Examiner Tip: Write out De Morgan's laws at the start of your answer: NOT(A AND B) = NOT A OR NOT B, and NOT(A OR B) = NOT A AND NOT B. Test with a truth table row to verify your simplification.
    Step-by-Step Worked Solutions

    Question: Convert the denary number -67 into 8-bit two's complement binary and then express the result in hexadecimal.

    1. 1.Step 1: Identify given facts: denary value = -67, bit width = 8 bits.
    2. 2.Step 2: Convert +67 to 8-bit binary: 01000011.
    3. 3.Step 3: Invert all bits: 10111100.
    4. 4.Step 4: Add 1 to the least significant bit: 10111100 + 1 = 10111101.
    5. 5.Step 5: Group the 8-bit binary into two nibbles: 1011 1101.
    6. 6.Step 6: Convert each nibble to hexadecimal: 1011 = B, 1101 = D.
    7. 7.Step 7: State final conclusion: -67 in 8-bit two's complement is 10111101, which is BD in hexadecimal.
    Final Answer: 10111101 (binary) = BD (hexadecimal)

    Question: A floating-point number uses an 8-bit mantissa and a 4-bit exponent, both in two's complement. The binary pattern is mantissa = 01101000 and exponent = 0010. Calculate the denary value of this floating-point number.

    1. 1.Step 1: Identify given facts: mantissa = 01101000 (8 bits), exponent = 0010 (4 bits), both two's complement.
    2. 2.Step 2: Convert the exponent to denary: 0010 in two's complement = +2.
    3. 3.Step 3: Write the mantissa as a binary fraction: 0.1101000 (since the most significant bit is 0, the number is positive).
    4. 4.Step 4: Apply the exponent by shifting the binary point 2 places to the right: 0.1101000 becomes 11.01000.
    5. 5.Step 5: Convert the binary result to denary: 11.01000 = 2 + 1 + 0.25 = 3.25.
    6. 6.Step 6: State final conclusion: the denary value is 3.25.
    Final Answer: 3.25
    Active Recall Memory Test
    What is the two's complement representation of -25 in 8 bits?
    Key Fact: 11100111
    State De Morgan's laws for Boolean algebra.
    Key Fact: NOT(A AND B) = NOT A OR NOT B; NOT(A OR B) = NOT A AND NOT B.
    What is the denary value of the floating-point number with mantissa 01010000 and exponent 0011 (both two's complement)?
    Key Fact: Mantissa 01010000 = 0.1010000, exponent 0011 = +3, shift binary point 3 places right: 101.0000 = 5.0.
    How many bits are in a nibble and a byte?
    Key Fact: A nibble is 4 bits; a byte is 8 bits.
    Frequently Asked Questions
    What is two's complement and why is it used in computer science?
    Two's complement is a method for representing signed integers in binary, allowing both positive and negative numbers to be stored and arithmetic to be performed using the same circuitry. It is used because it simplifies the design of arithmetic logic units (ALUs) and avoids the need for separate subtraction circuits. To find the two's complement of a negative number, you invert all bits of its positive equivalent and add 1. The most significant bit indicates the sign: 0 for positive, 1 for negative.
    How do I convert a denary number to hexadecimal?
    To convert denary to hexadecimal, repeatedly divide the denary number by 16, noting the remainders. The remainders, read in reverse order, give the hexadecimal digits. For example, to convert 254: 254 / 16 = 15 remainder 14 (E), then 15 / 16 = 0 remainder 15 (F). So 254 in hexadecimal is FE. Alternatively, convert denary to binary first, then group bits into nibbles and convert each nibble to hex.
    What is the difference between a mantissa and an exponent in floating-point representation?
    In floating-point representation, the mantissa represents the significant digits of the number, typically as a binary fraction, while the exponent determines the position of the binary point (i.e., the scale or magnitude). The mantissa is usually normalised so that it starts with a 1 for positive numbers or 0 for negative numbers in two's complement. Together, they allow a wide range of values to be represented with a fixed number of bits, trading off precision against range.
    How do I simplify Boolean expressions using De Morgan's laws?
    De Morgan's laws state that NOT(A AND B) = NOT A OR NOT B, and NOT(A OR B) = NOT A AND NOT B. To simplify an expression, identify sub-expressions that are negated conjunctions or disjunctions and apply these laws. Then use other Boolean identities such as distribution, absorption, and idempotence to reduce the expression further. Always verify your simplification by testing with a truth table or by checking that the original and simplified expressions produce the same output for all input combinations.
    What is normalisation in floating-point representation and why is it important?
    Normalisation is the process of adjusting the mantissa and exponent so that the mantissa is in a standard form, typically with the most significant bit set to 1 for positive numbers (or 0 for negative numbers in two's complement). This ensures maximum precision for a given number of bits because no leading zeros are stored. It also provides a unique representation for each value, which simplifies comparisons and arithmetic operations. Normalisation is important in exam questions because you may be asked to normalise a given floating-point number or explain its benefits.
    How do I calculate the file size of a bitmap image?
    To calculate the file size of a bitmap image, multiply the width in pixels by the height in pixels to get the total number of pixels. Then multiply by the colour depth in bits per pixel to get the total number of bits. Divide by 8 to convert to bytes, and then divide by 1024 to convert to kilobytes or by 1024*1024 to convert to megabytes. For example, an 800x600 image with 24-bit colour depth: 800*600*24 = 11,520,000 bits, which is 1,440,000 bytes or approximately 1.37 MB. Remember to use 1024, not 1000, for binary conversions.