Computer Science
Computer systems — Paper 1
- 1.
Convert the denary number 45 to 8-bit binary. Explain why an 8-bit unsigned integer cannot store the value 300.
[4 marks] · no calculatorWorked explanation
- 45 = 32+8+4+1, so the 128,64,32,16,8,4,2,1 columns give 00101101.
- Eight unsigned bits encode 2^8 = 256 patterns, numbered 0-255. Since 300 = 256+32+8+4, its binary form 100101100 needs nine bits. Check in Python: `format(45, '08b')` and `300 > 2**8-1`.
Common mistake: 256 is the number of patterns, not the largest eight-bit unsigned value.
Marking points
- Converts 45 to 00101101.
- States that 8 bits provide 256 distinct unsigned values.
- States the representable range is 0 to 255.
- Concludes that 300 exceeds the maximum and would cause overflow or require more bits.
Examiner tip: For an unsigned n-bit integer, the maximum is 2^n − 1.
- 2.
A school allows students to connect personal devices to its wireless network. Explain two security measures the school should use and how each reduces risk.
[4 marks] · no calculatorWorked explanation
- Require individual authenticated accounts, ideally with an additional factor: a stranger with a personal device cannot simply join as an authorised student, and credentials can be revoked individually.
- Use firewall rules to block student-device access to staff records and administrative services. This limits what a compromised student device can reach; network encryption separately limits interception but does not make infected devices trustworthy.
Common mistake: Listing passwords and firewalls without naming the risks each addresses does not explain the controls.
Marking points
- Identifies a valid measure such as strong authentication, network segmentation, encryption or firewall filtering.
- Explains how the first measure blocks, limits or protects against a specific risk.
- Identifies a second distinct valid measure.
- Explains how the second measure reduces a different or related risk.
Examiner tip: Name the threat each control addresses; listing two controls without effects is incomplete.
- 3.
A smart doorbell should sound an alert if EITHER the button is pressed OR the motion sensor detects movement. Identify the logic gate that matches this behaviour, explain why, and state its output when the button input is 0 and the sensor input is 1.
[3 marks] · no calculatorWorked explanation
- Use inclusive OR: either trigger suffices and both together must also alert, unlike XOR.
- For button 0 and movement 1, output is 1. Python `int(bool(0 or 1))` returns 1; input pairs 00,01,10,11 give 0,1,1,1.
Common mistake: XOR would suppress the alert if both button and motion were active.
Marking points
- Identifies an OR gate.
- Explains that an OR gate outputs 1 if at least one input is 1.
- States the output is 1 for inputs 0 and 1.
Examiner tip: An OR gate only outputs 0 when every input is 0; any single 1 input is enough to make the output 1.
- 4.
A photographer needs an off-site backup of very large video files, accessible remotely over the internet. Recommend a suitable storage solution, give two reasons for your choice and state one limitation.
[4 marks] · no calculatorWorked explanation
- A managed off-site cloud backup with enough video capacity meets remote access through an authenticated internet connection and keeps a separate copy if the photographer's local equipment is stolen or damaged.
- Large videos can take a long time to upload over limited upstream bandwidth. For example, ignoring overhead, a 20 GB decimal file over 10 Mbit/s needs 160000/10 = 16000 s, about 4.4 h; upload completion must be checked before relying on the copy.
Common mistake: A local external disk alone is neither remotely accessible nor off-site.
Marking points
- Recommends a suitable remotely accessible off-site service, such as cloud storage or a managed off-site backup server.
- Explains that authorised users can access the backup remotely over a suitable internet connection.
- Explains that a separate off-site copy protects against loss of local equipment or damage at the original site.
- States a relevant limitation, such as upload time, bandwidth needs, subscription cost or reliance on the remote provider.
Examiner tip: Cloud storage trades a dependency on internet access for remote availability and off-site safety.
- 5.
Convert the hexadecimal value 2F to denary.
[3 marks] · no calculatorWorked explanation
- Hexadecimal positions are powers of 16, and F is digit value 15.
- 2F = 2(16)+15 = 47 denary. Python `int('2F',16)` returns 47; using 2(10)+15 would treat the base incorrectly.
Common mistake: F is a digit worth 15, not a separate multiplier.
Marking points
- States that 2F means (2 × 16) + F.
- States that hexadecimal F equals denary 15.
- Calculates 32 + 15 = 47.
Examiner tip: Each hexadecimal digit represents a power of 16, just as each denary digit represents a power of 10.
- 6.
Explain the role of the Program Counter (PC) in the fetch-execute cycle.
[2 marks] · no calculatorWorked explanation
- The PC stores the address of the next instruction to fetch. In a simple unit-address example PC = 100 sends address 100 to the memory-address register for fetching.
- After fetch the PC advances to 101 for sequential execution; a branch may instead load a different address. It tracks instruction location, not the instruction opcode or an instruction count.
Common mistake: The instruction's content belongs in the instruction register, not the PC.
Marking points
- States that the Program Counter holds the memory address of the next instruction to be fetched.
- Explains that it is incremented (or updated) after each fetch, so the CPU knows where to fetch the next instruction from.
Examiner tip: The Program Counter tracks position in a program's instructions, not the instruction's content itself.
- 7.
A company wants to email a large image file. Explain the difference between lossy and lossless compression, and state which is more appropriate if image quality must be preserved exactly.
[3 marks] · no calculatorWorked explanation
- Lossy compression discards information, for example replacing subtle colour differences, so decoding cannot reconstruct the exact original pixels.
- Lossless compression encodes redundancy reversibly: illustrative repeated pixels `AAAAAB` can be represented as counts 5A,1B and restored exactly. Choose lossless because the task requires exact quality preservation, even if the file remains larger.
Common mistake: A visually acceptable lossy image is not a bit-for-bit recovered original.
Marking points
- Explains that lossy compression permanently removes some data to achieve a smaller file size, which can reduce quality.
- Explains that lossless compression reduces file size without permanently losing any data, so the original can be fully recovered.
- States that lossless compression is more appropriate when quality must be preserved exactly.
Examiner tip: Lossy compression trades some quality for a smaller file; lossless compression keeps every bit of the original data.
- 8.
A sound is sampled at a sample rate of 44,100 Hz for 10 seconds, using 16-bit samples and a single (mono) channel. Calculate the uncompressed file size in bits.
[3 marks] · no calculatorWorked explanation
- Number of mono samples = 44100(10) = 441000. Each sample uses 16 bits.
- Raw size = 441000(16)(1) = 7056000 bits. Python `44100*10*16*1` checks it; headers/compression are excluded. Divide by eight only if bytes are requested.
Common mistake: Reporting 882000 bytes without converting the label does not answer the requested bits.
Marking points
- States the formula: file size = sample rate × duration × bit depth × number of channels.
- Substitutes the given values: 44,100 × 10 × 16 × 1.
- Calculates the answer as 7,056,000 bits.
Examiner tip: Multiply all four factors together; forgetting the number of channels is a common error for stereo recordings.
- 9.
Add the two 8-bit binary numbers 00001101 and 00000110. Give your answer in binary.
[3 marks] · no calculatorWorked explanation
- 00001101 = 8+4+1 = 13 and 00000110 = 4+2 = 6. Their sum is 19 = 16+2+1.
- The eight-bit result is 00010011. Check `format(int('00001101',2)+int('00000110',2),'08b')`; the carry through the 4 and 8 columns sets the 16 column, with no eight-bit overflow.
Common mistake: Binary 1+1 produces 10 with a carry, not another digit 2.
Marking points
- Shows a valid first step, either recognising the values as 13 and 6 or correctly starting binary column addition with carries.
- Correctly adds the values, obtaining denary 19 or the equivalent binary column result.
- Converts 19 back to binary as 00010011.
Examiner tip: You can add binary digits directly using column addition and carrying, or convert to denary, add, then convert back — both give the same result.
- 10.
Explain how a character such as the letter 'A' is represented inside a computer, referring to a character encoding system such as ASCII.
[2 marks] · no calculatorWorked explanation
- ASCII assigns capital A code number 65. The code is stored as binary, commonly padded as 01000001 in one byte; basic ASCII itself defines 128 codes.
- Python `ord('A')` gives 65 and `chr(65)` recovers A, illustrating encoding/decoding. A font separately determines the visible shape; storing the code is not storing a picture of the glyph.
Common mistake: Character encoding and a font's pixel drawing are different layers.
Marking points
- Explains that each character is assigned a unique denary (and therefore binary) code number by the encoding system.
- Explains that the computer stores and processes the binary code number, not the character's visual shape directly.
Examiner tip: ASCII assigns each character a number from 0-127; Unicode extends this to represent many more characters from different languages.
- 11.
Distinguish between RAM and ROM in a computer system.
[2 marks] · no calculatorWorked explanation
- RAM is writable working memory for running programs and data. Ordinary RAM loses those contents without power, so an unsaved edit disappears after shutdown.
- ROM retains its contents without power and normally supplies firmware/startup instructions before an operating system is loaded. Nonvolatile does not mean all ROM technologies are physically impossible to reprogram.
Common mistake: Treating RAM as permanent file storage confuses working memory with secondary storage.
Marking points
- Explains that RAM is volatile (its contents are lost when power is off) and can be both read from and written to while the computer runs.
- Explains that ROM is non-volatile (its contents are kept without power) and is normally read-only, often storing start-up instructions.
Examiner tip: RAM temporarily holds data and programs currently in use; ROM permanently stores instructions needed before the operating system has even loaded.
- 12.
Explain the purpose of cache memory in a computer system.
[2 marks] · no calculatorWorked explanation
- Cache is small, fast memory close to the CPU holding copies of likely needed instructions/data.
- If a repeatedly used value is in cache, a cache hit avoids slower RAM access and reduces processor waiting. A miss still needs the slower path, so cache helps when access patterns reuse nearby or recent data.
Common mistake: Cache does not replace all main memory or guarantee every access is equally fast.
Marking points
- Explains that cache is a small amount of very fast memory, located closer to the processor than main memory (RAM).
- Explains that it stores frequently used instructions or data, so the processor can access them more quickly than fetching from slower RAM each time.
Examiner tip: Cache sits between the processor and RAM in the memory hierarchy, trading a very small storage size for much greater speed.
- 13.
Explain how the faster access speeds of an SSD, compared with a typical HDD, benefit a laptop when loading its operating system.
[2 marks] · no calculatorWorked explanation
- Loading the operating system requires reading many files and scattered blocks. An HDD must move its head and wait for platter rotation before many accesses.
- An SSD accesses electronic storage without mechanical seeking, usually lowering access latency and reading these files faster, shortening boot time when storage is the bottleneck; processor and startup tasks also matter.
Common mistake: More storage capacity alone does not imply faster operating-system loading.
Marking points
- States an advantage such as faster read/write speeds, since an SSD has no moving parts.
- Explains that this means the operating system and programs load more quickly than from an HDD.
Examiner tip: An SSD's lack of moving mechanical parts also makes it more resistant to physical shock than an HDD, in addition to being faster.
- 14.
Explain one function that an operating system performs to manage a computer's hardware resources.
[2 marks] · no calculatorWorked explanation
- Memory management allocates RAM regions to running applications and tracks which regions are available.
- For example, a browser and editor need distinct working space; the OS can enforce protection so one does not overwrite the other's memory. When a program closes its allocation can be reclaimed.
Common mistake: Saving a document to disk is not the same task as allocating working RAM.
Marking points
- Identifies a valid function, such as memory management, processor (task) scheduling, or managing input/output devices.
- Explains briefly what this function does, such as memory management allocating RAM space to different running programs.
Examiner tip: The operating system acts as a manager between application software and the computer's physical hardware resources.
- 15.
Explain the purpose of utility software, using anti-virus software as an example.
[2 marks] · no calculatorWorked explanation
- Utilities maintain or support the system rather than perform the user's main activity such as writing an essay.
- Anti-virus software scans files and activity for known signatures or suspicious behaviour, then quarantines/removes detected malware. Updates improve recognition, but an undetected threat may still remain; it complements rather than replaces other controls.
Common mistake: Installing anti-virus is not proof that every file is safe.
Marking points
- Explains that utility software performs a specific maintenance or support task for the computer system, rather than being an application for the end user's main tasks.
- Applies this to anti-virus software, which scans for, detects and removes malicious software to keep the system secure.
Examiner tip: Utility software (anti-virus, disk defragmenters, backup tools) supports and maintains the system, unlike application software used directly for a user's tasks.
- 16.
Distinguish between a high-level programming language and a low-level programming language.
[2 marks] · no calculatorWorked explanation
- A high-level instruction such as Python `total = total + 1` expresses an operation abstractly and must be translated through the language implementation for a processor.
- Low-level assembly uses processor-related mnemonics and registers, giving more direct hardware control but tying code closely to an architecture. Assembly still needs an assembler; only machine instructions are directly executable by the processor.
Common mistake: Calling assembly directly executable ignores its translation step.
Marking points
- Explains that a high-level language uses instructions closer to human language, making it easier to read and write, but it must be translated before it can run.
- Explains that a low-level language (such as assembly language) is closer to the processor's own instructions, giving more direct hardware control but making it harder to read and write.
Examiner tip: High-level languages prioritise ease of use for programmers; low-level languages prioritise direct, efficient control of the hardware.
- 17.
Distinguish between a compiler and an interpreter as methods of translating high-level program code.
[2 marks] · no calculatorWorked explanation
- In the syllabus model, a compiler translates the program before execution and reports translation errors; the produced target can then be executed without repeating that full source translation.
- An interpreter runs instructions through a runtime, usually reporting an encountered error as execution reaches it. Real implementations can mix methods, such as Python compilation to bytecode then interpretation, so 'each source line is always translated separately' is only a simplified model.
Common mistake: Neither all compilers nor all interpreters have a universal fixed execution-speed advantage in every implementation.
Marking points
- Explains that a compiler translates source code into target code before that translated code is executed; target code may be machine code or intermediate code.
- Explains that an interpreter executes program instructions through a runtime as the program runs, typically without a separate ahead-of-time native executable.
Examiner tip: The school model contrasts translation before execution with execution through an interpreter. Real systems can combine both, for example compiling Python to bytecode before interpreting it; neither speed nor line-by-line source translation is a universal rule.
- 18.
Complete the truth table logic for an AND gate: state the output when input A = 1 and input B = 0, and the output when input A = 1 and input B = 1.
[2 marks] · no calculatorWorked explanation
- AND is high only when both conditions are high: inputs 1,0 fail because B is false, so output 0.
- Inputs 1,1 satisfy both, so output 1. Executable check `[int(a and b) for a,b in [(1,0),(1,1)]]` gives [0,1].
Common mistake: Treating any single high input as sufficient uses OR instead.
Marking points
- States that the output is 0 when A = 1 and B = 0.
- States that the output is 1 when A = 1 and B = 1.
Examiner tip: An AND gate only outputs 1 when every one of its inputs is 1; any 0 input forces the output to 0.
- 19.
Explain what a NOT gate does to a single binary input signal.
[1 mark] · no calculatorWorked explanation
- NOT inverts its one Boolean input: input 0 gives 1, and input 1 gives 0.
- Python `[int(not x) for x in [0,1]]` returns [1,0]. It does not add a second condition; it reverses the truth of the existing one.
Common mistake: NOT is Boolean inversion, not arithmetic negation giving -1.
Marking points
- Explains that a NOT gate reverses (inverts) its single input: a 1 input becomes a 0 output, and a 0 input becomes a 1 output.
Examiner tip: A NOT gate is the only basic logic gate with just one input, since its entire job is to invert that single signal.
- 20.
A logic circuit combines an AND gate feeding into a NOT gate: the AND gate takes inputs A and B, and its output becomes the single input to the NOT gate. Calculate the final output when A = 1 and B = 1.
[2 marks] · no calculatorWorked explanation
- Both inputs are one, so the first AND gate produces intermediate value 1.
- The NOT gate then inverts that intermediate value to final 0: `int(not (1 and 1))` is 0. The combined circuit is NAND.
Common mistake: Stopping at the intermediate AND result ignores the second gate.
Marking points
- Calculates the AND gate's output as 1, since both A and B are 1.
- Calculates the NOT gate's output by inverting this 1, giving a final output of 0.
Examiner tip: Work through a combined logic circuit one gate at a time, using the output of the first gate as the input to the next.
- 21.
Explain how a digital image is made up of pixels, and how resolution affects image quality.
[2 marks] · no calculatorWorked explanation
- A raster image stores a grid of pixels, each with an encoded colour. More pixels across the same scene can retain smaller spatial details if those details exist in the source.
- At fixed colour depth, doubling both width and height quadruples pixel count and raw data size: 100x100 is 10000 pixels versus 200x200 = 40000. Upscaling an already low-detail source cannot recover detail never recorded.
Common mistake: More stored pixels alone does not guarantee new authentic scene detail.
Marking points
- Explains that a digital image is made up of a grid of small individual picture elements (pixels), each storing a colour value.
- Explains that a higher resolution means more pixels are used to represent the same image, generally producing a sharper, more detailed picture (but also a larger file size).
Examiner tip: Resolution describes the number of pixels in an image; more pixels generally improve clarity at the cost of a larger file size.
- 22.
An image uses a colour depth of 4 bits per pixel. Calculate the total number of different colours that can be represented by each pixel.
[2 marks] · no calculatorWorked explanation
- Each of four independent bits has two possible states, so total codes = 2*2*2*2.
- 2^4 = 16 possible colours, with code values 0-15. Python `2**4` checks the count; one more bit would allow 32 codes.
Common mistake: Four bits is not four colours; it describes the number of binary positions.
Marking points
- States that the number of colours = 2 raised to the power of the number of bits.
- Calculates 2^4 = 16 colours.
Examiner tip: Each extra bit of colour depth doubles the number of colours that can be represented.
- 23.
Explain what is meant by an embedded system, using the computer inside a washing machine as an example.
[2 marks] · no calculatorWorked explanation
- An embedded computer is integrated into a larger product for a dedicated control role rather than general-purpose user computing.
- In a washing machine it reads selected settings and sensors and controls filling, heating and drum motion through the wash cycle. Multiple related control tasks still form its dedicated appliance purpose.
Common mistake: Dedicated function does not mean the controller can execute only one instruction or cannot use software.
Marking points
- Explains that an embedded system is a computer system built into a larger device to perform a specific, dedicated function, rather than general-purpose computing.
- Applies this to the example: the washing machine's embedded computer only controls wash cycles and settings, unlike a general-purpose computer that can run many different programs.
Examiner tip: An embedded system is designed to do one job well; a general-purpose computer is designed to run many different kinds of software.
- 24.
Using 8-bit two's complement, convert the denary value −5 to binary.
[3 marks] · no calculatorWorked explanation
- Within eight bits +5 is 00000101. Invert to 11111010 and add one to obtain 11111011.
- Check signed weights: -128+64+32+16+8+2+1 = -5. Python `format((-5)&255,'08b')` gives the same eight-bit pattern; width must remain fixed.
Common mistake: Inversion alone gives one's complement, not the required two's complement.
Marking points
- Writes the binary representation of positive 5 as 00000101.
- Inverts all the bits to get 11111010.
- Adds 1 to get the final two's complement answer: 11111011.
Examiner tip: Two's complement for a negative number: write the positive binary value, invert every bit, then add 1.
- 25.
A remote station has three communication links: (A) a sensor sends readings to a receiver that never transmits back; (B) two operators use radios where only one can transmit at a time; (C) two computers can send to each other simultaneously. Classify each as simplex, half-duplex or full-duplex and justify each choice. Link C sends one bit after another along one data channel. Name that transmission method and explain why it does not determine whether C is full-duplex.
[5 marks] · no calculatorSyllabus placement evidence: 0478 2026-2028: 2.1 transmission methods; 2.2 error detection. Explicitly examines transmission modes and distinguishes independent classifications.
Worked explanation
- A is simplex: the receiver never sends back. B is half-duplex: either operator may speak, but they take turns. C is full-duplex: both computers may transmit simultaneously.
- Sending bits sequentially on a data channel is serial transmission. That describes bit organisation, not whether a separate return path exists.
- A full-duplex serial link can use independent directional channels. Serial does not mean simplex.
Common mistake: Confusing one bit at a time with communication in only one direction.
Marking points
- Identify A as simplex because data travels in only one direction.
- Identify B as half-duplex because both directions are possible but not simultaneously.
- Identify C as full-duplex because both ends can transmit simultaneously.
- Identify the one-bit-after-another method as serial transmission.
- Distinguish serial/parallel bit organisation from simplex/duplex direction and timing; a serial system can have independent paths for both directions.
Examiner tip: Original indicative self-marking practice, not an official examination rubric.
- 26.
A system appends one even-parity bit after each seven-bit data word. Send data 1011001: calculate its parity bit and the full transmitted eight-bit word. The receiver gets 11110010 instead. Test this received word and explain what the result establishes and what it cannot locate. Finally give a concrete example in which two bits of the original transmitted word flip but the parity test passes. Explain the limitation.
[6 marks] · no calculatorSyllabus placement evidence: 0478 2026-2028: 2.1 transmission methods; 2.2 error detection. Calculates and tests actual transmitted bits, including a constructive undetected-error counterexample.
Worked explanation
- 1011001 contains four 1s, already even. The appended bit is 0 and the word sent is 10110010.
- 11110010 contains five 1s. It fails even parity, but the check alone cannot locate or correct the changed bit.
- Flipping the first two bits of 10110010 gives 01110010. It differs in exactly two positions and still has four 1s, so parity passes despite corrupted data.
Common mistake: Claiming a passing parity check proves the message is unchanged.
Marking points
- Count four 1 bits in 1011001, so append parity bit 0.
- Give the transmitted word 10110010.
- Count five 1 bits in received 11110010 and identify a parity failure.
- State that the mismatch detects an error but does not identify which bit is wrong.
- Give a valid two-bit-flip example such as 01110010, which still has four 1 bits.
- Explain that an even number of flips can preserve even parity, so a passing test does not prove error-free transmission.
Examiner tip: Original indicative self-marking practice, not an official examination rubric.