Skip to topic
    ← Back to course topics

    Mathematics — WJEC A-Level Computer Science

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

    Start free

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

    Mathematics explained

    This subtopic covers fundamental mathematical concepts essential for A-Level Computer Science, including number systems (binary, hexadecimal, and decimal), arithmetic operations, and algebraic manipulation.

    Read the full explanation

    Students will apply these concepts to solve problems in data representation, bitwise operations, and algorithm analysis, forming a critical foundation for advanced topics in computing.

    Your focus

    1. Convert between binary, decimal, and hexadecimal number systems
    2. Perform binary arithmetic including addition, subtraction, and multiplication
    3. Apply two's complement representation for signed integers
    Show all 6 objectives
    1. Simplify algebraic expressions using laws of indices and logarithms
    2. Evaluate Boolean expressions and simplify using Boolean algebra laws
    3. Use algebraic techniques to solve problems in algorithm complexity

    Mathematics exam tips

    Quick Revision Summary (Key Takeaway)

    Mathematics for Computer Science at WJEC A-Level covers the essential mathematical foundations underpinning computing, including number systems, Boolean algebra, sets, relations, functions, graphs, and probability. It equips students with the quantitative and logical tools needed to analyse algorithms, design digital circuits, model data structures, and solve computational problems rigorously.

    Topic Overview

    Mathematics for Computer Science at WJEC A-Level provides the essential mathematical grounding for advanced computing topics. It covers number systems, Boolean algebra, sets, relations, functions, graphs, and probability, which are fundamental to understanding algorithms, data structures, digital logic, and computational complexity.

    This topic is crucial because it develops the analytical and problem-solving skills required for programming, system design, and theoretical computer science. It bridges the gap between abstract mathematics and practical computing, enabling students to model real-world problems and reason formally about computation.

    Key Concepts
    • →Number systems: binary, octal, decimal, hexadecimal, and conversions between them, including signed integers using two's complement.
    • →Boolean algebra: basic operations (AND, OR, NOT), laws (De Morgan's, distributive, associative), and simplification of expressions.
    • →Sets and relations: set operations (union, intersection, complement), Cartesian product, relations and their properties (reflexive, symmetric, transitive).
    • →Functions and graphs: injective, surjective, bijective functions; graph theory basics (vertices, edges, paths, cycles, trees).
    • →Probability: basic probability rules, conditional probability, and expected values, with applications to algorithms and data analysis.
    Marking Points
    • Award credit for correct conversion steps showing method and final answer
    • Award credit for accurate binary arithmetic with proper handling of carries and overflows
    • Award credit for demonstrating understanding of two's complement and its use in subtraction
    • Award credit for correct application of algebraic laws to simplify expressions
    • Award credit for correct evaluation and simplification of Boolean expressions
    • Award credit for linking algebraic concepts to computational problems
    Examiner Tips
    • 💡Practice conversions regularly to build speed and accuracy
    • 💡Always show your working for arithmetic and algebraic problems to gain method marks
    • 💡Memorize key Boolean algebra laws and practice applying them
    • 💡Understand the relationship between number systems and data representation in computing
    • 💡Use past papers to familiarize yourself with typical exam questions on this topic
    • 💡Always show your working in calculations, especially for number conversions and Boolean simplifications, as method marks are often awarded even if the final answer is wrong.
    • 💡When simplifying Boolean expressions, state the law used at each step to gain full marks and demonstrate understanding.
    • 💡For graph theory questions, clearly label vertices and edges, and define any terms you use, such as 'path' or 'cycle', to avoid ambiguity.
    Common Mistakes
    • Confusing binary and decimal place values, leading to incorrect conversions
    • Forgetting to handle overflow in binary addition
    • Misapplying two's complement for negative numbers
    • Incorrectly applying algebraic laws, such as misusing exponent rules
    • Simplifying Boolean expressions incorrectly due to misremembering laws
    • Students often think that binary addition follows the same rules as decimal addition without carrying; in fact, 1+1=10 in binary, so carrying is essential.
    • Many confuse the terms 'relation' and 'function', believing all relations are functions; however, a function is a special type of relation where each input maps to exactly one output.
    • Students frequently assume that hexadecimal numbers are case-sensitive; in reality, both uppercase and lowercase letters are acceptable, but consistency is key.
    Revision Plan
    1. 1Week 1: Review number systems and conversions. Practise converting between binary, decimal, and hexadecimal, including signed integers. Complete past paper questions on this topic.
    2. 2Week 1-2: Study Boolean algebra. Learn the laws and practise simplifying expressions. Create truth tables to verify your simplifications.
    3. 3Week 2: Cover sets, relations, and functions. Work through examples of set operations, relation properties, and function types. Draw graphs to visualise relations.
    4. 4Week 2: Revise graph theory and probability. Solve problems on graph traversal, paths, and cycles, and apply probability rules to simple scenarios.
    5. 5Final days: Attempt full past papers under timed conditions. Review examiner reports to identify common pitfalls and refine exam technique.
    Exam Question Types
    • 📋Number conversion questions: Convert between binary, decimal, and hexadecimal, and perform arithmetic in these bases. Advice: double-check your work by converting back to the original base.
    • 📋Boolean algebra simplification: Simplify a given Boolean expression using laws. Advice: show each step and name the law used.
    • 📋Set and relation problems: Given sets, find unions, intersections, or determine properties of a relation. Advice: list elements explicitly to avoid errors.
    • 📋Graph theory questions: Analyse a graph to find paths, cycles, or determine if it is a tree. Advice: draw the graph clearly and label all vertices and edges.
    Command Word Expectations (WJEC)
    Convert

    In WJEC A-Level Computer Science, 'convert' requires a correct transformation from one representation to another, showing all steps. For example, converting a denary number to binary must include the method, not just the final answer.

    Simplify

    For 'simplify', you must reduce a Boolean expression to its simplest form using algebraic laws. Marks are awarded for correct application of laws and the final simplified expression.

    Determine

    'Determine' asks you to find a specific value or property, such as whether a relation is transitive. You must provide a clear justification, often with a counterexample if it is not.

    How Students Lose Marks (Examiner Pitfalls)
    Pitfall: Students often confuse the binary representation of signed integers, particularly two's complement, leading to incorrect conversions and arithmetic.
    ❌ Weak Answer (Loses Marks):Converting -5 to an 8-bit two's complement binary number as 10000101 (sign-magnitude) instead of 11111011.
    Example improved answer:To represent -5 in 8-bit two's complement: first write +5 as 00000101, then invert all bits to get 11111010, and add 1 to obtain 11111011. This correctly represents -5 in two's complement.
    Examiner Tip: Always check the sign bit and remember that two's complement is not the same as sign-magnitude. Practise converting both positive and negative numbers and verify by adding the number and its negative to get zero.
    Pitfall: In Boolean algebra, students frequently misapply De Morgan's laws, especially when negating complex expressions.
    ❌ Weak Answer (Loses Marks):Simplifying NOT (A AND B) as (NOT A) AND (NOT B) instead of (NOT A) OR (NOT B).
    Example improved answer:By De Morgan's laws, NOT (A AND B) is equivalent to (NOT A) OR (NOT B). Similarly, NOT (A OR B) is equivalent to (NOT A) AND (NOT B).
    Examiner Tip: Memorise De Morgan's laws and practise applying them to expressions with multiple variables. Use truth tables to verify your simplifications.
    Step-by-Step Worked Solutions

    Question: Convert the denary number 157 to 8-bit binary and hexadecimal.

    1. 1.Step 1: Identify the place values for 8-bit binary: 128, 64, 32, 16, 8, 4, 2, 1.
    2. 2.Step 2: Subtract the largest power of 2 less than or equal to 157: 157 - 128 = 29, so the first bit is 1.
    3. 3.Step 3: Continue with remainder 29: 29 - 64? No, so next bit 0; 29 - 32? No, bit 0; 29 - 16 = 13, bit 1; 13 - 8 = 5, bit 1; 5 - 4 = 1, bit 1; 1 - 2? No, bit 0; 1 - 1 = 0, bit 1.
    4. 4.Step 4: The binary is 10011101. Group into nibbles: 1001 and 1101. 1001 in hex is 9, 1101 is D. So hexadecimal is 9D.
    Final Answer: Binary: 10011101, Hexadecimal: 9D

    Question: Simplify the Boolean expression: Q = (A AND B) OR (A AND NOT B).

    1. 1.Step 1: Apply the distributive law: Q = A AND (B OR NOT B).
    2. 2.Step 2: Recognise that B OR NOT B = 1 (always true).
    3. 3.Step 3: Therefore Q = A AND 1 = A.
    Final Answer: Q = A
    Active Recall Memory Test
    What is the two's complement representation of -3 in 4 bits?
    Key Fact: 1101
    State De Morgan's first law.
    Key Fact: NOT (A AND B) = (NOT A) OR (NOT B)
    What is the difference between a relation and a function?
    Key Fact: A function is a relation where each input maps to exactly one output; a relation can have multiple outputs for one input.
    In graph theory, what is a tree?
    Key Fact: A tree is a connected acyclic graph.
    Frequently Asked Questions
    What topics are covered in WJEC A-Level Computer Science Mathematics?
    The mathematics component covers number systems (binary, hexadecimal, etc.), Boolean algebra, sets, relations, functions, graph theory, and probability. These topics are essential for understanding algorithms, data representation, and computational logic.
    How do I convert a negative denary number to binary using two's complement?
    To convert a negative number, first write the positive equivalent in binary, invert all bits (change 0s to 1s and 1s to 0s), then add 1 to the least significant bit. For example, -5 in 8-bit: +5 is 00000101, invert to 11111010, add 1 to get 11111011.
    What are the common Boolean algebra laws I need to know?
    You need to know De Morgan's laws, distributive laws, associative laws, commutative laws, identity laws, and complement laws. These allow you to simplify complex Boolean expressions, which is crucial for designing logic circuits.
    How is probability used in computer science?
    Probability is used in areas like algorithm analysis (e.g., randomised algorithms), machine learning, cryptography, and network reliability. It helps in modelling uncertain events and making predictions based on data.
    What is the difference between a set and a relation?
    A set is a collection of distinct elements, while a relation is a set of ordered pairs that describes a relationship between elements of two sets. For example, the relation 'less than' on numbers is a set of pairs (a,b) where a < b.
    How can I revise effectively for the mathematics part of WJEC A-Level Computer Science?
    Practise past paper questions regularly, especially on number conversions and Boolean simplification. Use flashcards for key definitions and laws. Create mind maps to connect topics, and work through problems step by step, checking your answers against mark schemes.