Question 1 — Utility Software & Language Translators (9 marks)
1 (a) [5 marks]
Draw one line from each utility software to its most appropriate purpose.
| Utility software | Purpose |
|---|---|
| Virus checker | To reorganise files so they are contiguous |
| Disk formatter | To scan for malicious program code |
| Backup | To decrease the file size |
| Disk repair | To initialise a disk |
| Defragmentation | To create copies of files in case the original is lost |
| To check for and fix inconsistencies on a disk |
Match each tool to its primary purpose:
• Virus checker → To scan for malicious program code. Scans the hard drive and memory for known malware signatures.
• Disk formatter → To initialise a disk. Prepares a disk for use by creating a file system, setting up partitions, and marking bad sectors.
• Backup → To create copies of files in case the original is lost. Duplicates important data to another location for disaster recovery.
• Disk repair → To check for and fix inconsistencies on a disk. Scans for and repairs file system errors, bad sectors, and corrupted directories.
• Defragmentation → To reorganise files so they are contiguous. Moves fragmented file blocks together so each file occupies adjacent sectors, improving read speeds.
(Note: "To decrease the file size" would be compression software — not listed in this question's options.)
- Virus checker ↔ Scan for malicious code. [1]
- Disk formatter ↔ Initialise a disk. [1]
- Backup ↔ Create copies in case original is lost. [1]
- Disk repair ↔ Check for and fix inconsistencies. [1]
- Defragmentation ↔ Reorganise files to be contiguous. [1]
1 (b)(i) [2 marks]
State two drawbacks of using a compiler compared to an interpreter during program development.
1. Slow compilation of large programs: Compiling a large codebase takes time before any code can be tested. With an interpreter, the programmer can run and test partial code immediately without waiting for the entire program to compile.
2. Cannot easily test unfinished code / errors halt everything: If the program has any syntax errors, the compiler will not produce an executable at all. The programmer must fix all errors before running anything. An interpreter stops at the first error it encounters, allowing incremental testing of the code written so far.
- Larger/complete source code takes time to compile. [1]
- Program will not run if there are any errors / errors cannot be corrected in real-time / cannot test specific sections easily. [1]
1 (b)(ii) [2 marks]
Explain why high-level language programs might be partially compiled and partially interpreted.
This hybrid approach (used by Java, Python bytecode, .NET CLR) works as follows:
The source code is first compiled into an intermediate form (bytecode or intermediate language) that is platform-independent. This intermediate code is then interpreted (or JIT-compiled) at runtime on the target machine.
Benefits: The intermediate code can run on any platform that has the appropriate runtime environment (interpreter/virtual machine) — without needing to recompile for each target OS/processor. Additionally, the interpreter (JIT compiler) can optimise the machine code specifically for the CPU it's running on at execution time, potentially improving performance.
- Partially compiled programs can run on different platforms — interpreted when run. [1]
- Code is optimised for the CPU as machine code is generated at runtime. [1]
Question 2 — Binary & Number Conversions (5 marks)
2 (a)(i) [1 mark]
Convert the two's complement binary integer 1001 0110 into denary.
MSB = 1, so this is negative. Negate it: invert → 0110 1001, add 1 → 0110 1010 = 64+32+8+2 = 106. So the value is −106.
- −106 [1]
2 (a)(ii) [1 mark]
Convert the unsigned binary integer 1001 0110 into hexadecimal.
Split into nibbles: 1001 = 9; 0110 = 6. Answer: 96
- 96 [1]
2 (a)(iii) [2 marks]
Convert the unsigned binary integer 1001 0101 into Binary Coded Decimal (BCD). Show your working.
First convert to denary: 1001 0101 = 128+16+4+1 = 149.
Then encode each decimal digit in BCD: 1 = 0001, 4 = 0100, 9 = 1001.
BCD: 0001 0100 1001
- 149 decimal [1]
- BCD: 0001 0100 1001 [1]
2 (b) [1 mark]
Perform the binary addition: 1000 1100 + 0100 0110
1000 1100 + 0100 0110 ----------- 1101 0010
Answer: 1101 0010
- 1101 0010 [1]
Question 3 — Logic Gates & Embedded Systems (7 marks)
3 (a) [3 marks]
Draw a logic circuit for the greenhouse window controller. The window opens (X=1) when: temperature too high (T=1) AND wind acceptable (W=0) AND (rain not detected (R=0) OR manual override off (M=0)).

Translate the word description into a Boolean expression:
• "Temperature too high" = T=1 → use T directly
• "Wind speed acceptable" = W=0 → use NOT W
• "T AND NOT W" — AND gate with T and NOT W
• "Rain not detected OR manual override off" = NOT R OR NOT M
• Final: X = (T AND NOT W) AND (NOT R OR NOT M)
Circuit layers:
Layer 1: NOT gate on W; NOT gate on R; NOT gate on M
Layer 2a: T AND (NOT W) → AND gate
Layer 2b: (NOT R) OR (NOT M) → OR gate
Layer 3: Output of 2a AND output of 2b → final AND gate → X
- T AND NOT W [1]
- NOT R OR NOT M [1]
- Final AND gate combining both sub-expressions. [1]
3 (b) [2 marks]
Complete the truth table for: X = NOT (A OR B OR C) AND (B NOR C)

Evaluate: NOT(A OR B OR C) is 1 only when A=0, B=0, C=0. B NOR C is 1 only when B=0, C=0. AND of these is 1 only in the very first row (all zeros).
| A | B | C | X |
|---|---|---|---|
| 0 | 0 | 0 | 1 |
| 0 | 0 | 1 | 0 |
| 0 | 1 | 0 | 0 |
| 0 | 1 | 1 | 0 |
| 1 | 0 | 0 | 0 |
| 1 | 0 | 1 | 0 |
| 1 | 1 | 0 | 0 |
| 1 | 1 | 1 | 0 |
- First row X=1, all others X=0 — Rows 1–4 correct. [1]
- Rows 5–8 correct (all 0). [1]
3 (c) [2 marks]
Explain the reasons why ROM is used in an embedded system.
ROM (Read Only Memory) is non-volatile — it retains its contents when power is removed. This is essential for embedded systems because:
1. The system's firmware (the program controlling the device) must be available immediately on power-up, without loading from an external source. ROM stores the firmware permanently.
2. Embedded systems often have fixed, unchanging program code that does not need to be modified by the end user. ROM prevents accidental overwriting of the control program.
- To store data that does not change. [1]
- Data must be stored when device is without power / to store firmware / boot-up instructions. [1]
Question 4 — Data Integrity (6 marks)
4 (a) [1 mark]
State the difference between data verification and data validation.
Data verification checks that input data is the same as the original source — it ensures the data was transcribed/entered accurately without transcription errors.
Data validation checks that input data is reasonable, complete, and in the expected format — it ensures the data makes sense according to defined rules, but does not check that it matches the original source.
- Verification checks input matches original; validation checks data is reasonable/sensible. [1]
4 (b) [3 marks]
Describe how a checksum is used to detect errors during data transmission.
A checksum is a value computed from a block of data using a mathematical algorithm.
Before transmission: The sender applies the checksum algorithm to the data block and obtains a checksum value. This value is appended to (transmitted alongside) the data.
After reception: The receiver applies the same algorithm to the received data block and independently calculates its own checksum value.
Comparison: The receiver compares its calculated checksum with the checksum received from the sender. If they match, no error has been detected. If they differ, an error has occurred during transmission (a bit or bits have changed), and the receiver requests a retransmission.
- Checksum calculated from data before transmission. [1]
- Checksum transmitted with the data. [1]
- Receiver recalculates and compares — match = no error, mismatch = error detected. [1]
4 (c) [2 marks]
Describe two validation methods (other than presence check) that can be used to validate non-numeric data.
1. Format check: Verifies that the data matches a required pattern or format. For example, an email address must contain '@' and a domain; a date must follow DD/MM/YYYY format. Ensures only expected characters and structures are accepted.
2. Length check: Checks that the data contains the correct number of characters. For example, a postcode must be a specific length; a username must be between 5 and 20 characters. Rejects inputs that are too short or too long.
Also valid: look-up check (checks if value exists in a predefined list); type check (confirms data is the right data type).
- Format check — data must match required format / only expected characters. [1]
- Length check — correct number of characters. [1]
Question 5 — Database GARDEN (11 marks)
Tables: OWNER(OwnerID, FirstName, TelephoneNo, TreeID, TreePosition) · TREE(TreeID, ScientificName, MaxHeight, FastGrowing)
5 (a) [3 marks]
The database is not in 3NF. Explain how it can be normalised to 3NF.
The problem is that OWNER contains TreeID and TreePosition — an owner can have many trees, creating a many-to-many relationship between OWNER and TREE stored (badly) within a single table. This violates normalisation because one owner record cannot store multiple trees without repeating data.
Solution:
1. Remove TreeID and TreePosition from the OWNER table (they don't belong there — they describe a relationship, not a property of the owner).
2. Create a new linking table to resolve the many-to-many relationship between owners and trees: for example, OWNER_TREE(OwnerID, TreeID, TreePosition).
3. The composite primary key of the linking table is (OwnerID, TreeID).
Now OWNER holds only owner details (OwnerID as PK), TREE holds only tree species details (TreeID as PK), and OWNER_TREE records which trees belong to which owners and their positions.
- Removing the many-to-many relationship between Owner and Tree. [1]
- Removing TreeID and TreePosition from OWNER table. [1]
- Creating a linking table with OwnerID, TreeID, TreePosition and appropriate composite primary key. [1]
5 (b) [3 marks]
Write the SQL script to add a new record to TREE: TreeID='LOW_1276', ScientificName='Salix_Alba', MaxHeight=30.00, FastGrowing=TRUE.
INSERT INTO TREE (TreeID, ScientificName, MaxHeight, FastGrowing)
VALUES ('LOW_1276', 'Salix_Alba', 30.00, TRUE);
- INSERT INTO TREE [1]
- VALUES ( ) with correct values [1]
- Values in correct order and data types [1]
5 (c) [1 mark]
State what is meant by a candidate key in a relational database.
A candidate key is an attribute (or minimal set of attributes) that could serve as the primary key — i.e., it uniquely identifies each row in the table and is minimal (no subset of it alone is sufficient). A table may have multiple candidate keys; the designer chooses one as the actual primary key.
- An attribute / set of attributes that could be a primary key. [1]
5 (d)(i) [2 marks]
Describe, using an example, what is meant by a data dictionary.
A data dictionary is a repository that stores metadata — data about the data stored in the database. It describes the structure of the database rather than the actual data values.
Example: For the TREE table, the data dictionary would record: field names (TreeID, ScientificName, MaxHeight, FastGrowing), their data types (VARCHAR, VARCHAR, DECIMAL, BOOLEAN), which field is the primary key (TreeID), validation rules (MaxHeight must be positive), and relationships to other tables.
- Stores metadata about the database / description of data stored. [1]
- Correct example (e.g. field names, data types, primary/foreign keys, validation rules). [1]
5 (d)(ii) [2 marks]
Describe what is meant by a logical schema.
A logical schema is an overview of the database structure that models the organisation and relationships between tables. It represents how the data is logically organised — typically shown using methods such as an Entity-Relationship (E-R) diagram — showing tables, their attributes, primary/foreign keys, and the relationships between tables.
The logical schema is independent of any specific DBMS or physical implementation — it describes what is stored and how entities relate, without specifying how data is physically stored on disk.
- Overview of database structure / models the situation using ER diagram. [1]
- Independent of any particular DBMS. [1]
Question 6 — Network Security & Sound (7 marks)
6 (a)(i) [2 marks]
Explain how a digital signature ensures the email is authentic.
A digital signature works using public-key cryptography:
1. The sender passes the email message through a hashing algorithm to produce a fixed-length message digest (hash).
2. The digest is encrypted with the sender's private key — this encrypted digest is the digital signature, attached to the email.
3. The recipient receives the email and the signature. They decrypt the signature using the sender's public key. If the public key successfully decrypts it, the signature could only have been created by the holder of the private key — authenticating the sender's identity.
4. The recipient also hashes the received message and compares it with the decrypted hash. If they match, the message has not been altered in transit.
- Message put through hashing algorithm to produce a digest; digest encrypted with sender's private key. [1]
- Signature can only be decrypted with the matching sender's public key — proves authenticity. [1]
6 (a)(ii) [3 marks]
Describe how a firewall protects the data on the computer.
A firewall sits between the computer (or network) and external networks (such as the internet), examining all incoming and outgoing network traffic.
It operates according to a defined set of rules (an allow-list and/or deny-list) that specify which types of traffic are permitted. These rules may be based on:
• IP addresses: Block traffic from known malicious IP addresses.
• Ports: Allow only traffic on specific ports (e.g. port 443 for HTTPS) and block all others.
• Protocols: Permit certain protocols and deny others.
Any packet that does not meet the permitted criteria is blocked before it can reach the computer. This prevents unauthorised access attempts, stops malware communicating with external command servers, and filters out suspicious traffic.
- Monitors incoming and outgoing packets / traffic. [1]
- Checks against allow/deny list of IP addresses / rules for acceptable data / ports. [1]
- Blocks transmissions that do not meet criteria. [1]
6 (b)(i) [2 marks]
Explain the effect of increasing the sampling rate on the accuracy of a sound recording.
The sampling rate is the number of times per second the analogue waveform is measured. A higher sampling rate means measurements are taken more frequently — the digital representation captures more detail of how the waveform changes over time. The resulting digital waveform more closely resembles the original analogue signal, reducing the loss of information between samples. This improves accuracy, particularly for high-frequency sounds, and reduces quantisation-related artefacts.
- Improves accuracy of the sound file. [1]
- Digital waveform more closely resembles the analogue original / quantisation errors reduced. [1]
Question 7 — Assembly Language Trace & Bit Operations (13 marks)
7 (a) [5 marks]
Trace the program in memory, stopping when line 90 is executed a second time. Initial: mem[100]=0, mem[101]=0, mem[102]=112, mem[103]=4, mem[110]=1, mem[111]=4, mem[112]=0.

The program: IX starts at 0. LDX 110 loads mem[110+IX]. CMI 102 compares ACC to mem[mem[102]] = mem[112]. If equal (JPE 91) → END. If not equal to mem[103]=4, take the else branch (INC ACC, STO 101 for count); else take the then-branch (ADD 101, STO 101 for different count). Then LDD 100 (position counter) → INC ACC → STO 100 → INC IX → JMP 76.
The program counts how many elements in the array (addresses 110, 111, 112) equal the value at mem[103]=4, stopping when it finds the end marker at mem[112]=0 (= mem[mem[102]]).
First iteration (IX=0): LDX 110: ACC=mem[110+0]=mem[110]=1. CMI 102: compare 1 to mem[mem[102]]=mem[112]=0. 1≠0, JPE fails. CMP 103: compare 1 to mem[103]=4. 1≠4, JPN 84 taken. Go to 84: INC ACC → ACC=2. STO 101 → mem[101]=2. JMP 86. LDD 100 → ACC=0. INC ACC → ACC=1. STO 100 → mem[100]=1. INC IX → IX=1. JMP 76.
Second iteration (IX=1): LDX 110: ACC=mem[110+1]=mem[111]=4. CMI 102: compare 4 to mem[112]=0. 4≠0, JPE fails. CMP 103: compare 4 to mem[103]=4. Equal, JPN fails. Continue to 81: ADD 101 → ACC=4+2=6. STO 101 → mem[101]=6. JMP 86. LDD 100 → ACC=1. INC ACC → ACC=2. STO 100 → mem[100]=2. INC IX → IX=2. JMP 76. Line 90 executed second time → STOP.
Key trace rows (with highlighted marks):
| Addr | ACC | IX | m[100] | m[101] |
|---|---|---|---|---|
| 75 | 0 | 0 | 0 | |
| 76 | 1 | |||
| 84 | 2 | |||
| 85 | 2 | |||
| 86 | 0 | |||
| 87 | 1 | |||
| 88 | 1 | |||
| 89 | 1 | |||
| 76 | 4 | |||
| 81 | 6 | |||
| 82 | 6 | |||
| 86 | 1 | |||
| 87 | 2 | |||
| 88 | 2 | |||
| 89 | 2 | |||
| 90 (2nd) |
- [5 marks, 1 per highlighted block of rows in the MS]
7 (b)(i) [1 mark]

Show the result after XOR B00011111 on ACC = 0101 0011.
0101 0011 0001 1111 XOR: 0100 1100
Result: 0100 1100
- 0100 1100 [1]
7 (b)(ii) [1 mark]
![ACC = 0 1 0 1 0 0 1 1. AND 50 (mem[50]=0100 1101)](worked12/fig_7bii_reg.jpg)
Show the result after AND 50 on ACC = 0101 0011. (mem[50] = 0100 1101)
ACC: 0101 0011 mem[50]: 0100 1101 AND: 0100 0001
Result: 0100 0001
- 0100 0001 [1]
7 (b)(iii) [1 mark]

Show the result after LSL #3 on ACC = 0101 0011.
Before: 0 1 0 1 0 0 1 1 LSL #3: shift left 3; lose top 3 bits (010); add 3 zeros at right After: 1 0 0 1 1 0 0 0
Result: 1001 1000
- 1001 1000 [1]
7 (b)(iv) [1 mark]
![ACC = 0 1 0 1 0 0 1 1. OR 51 (mem[51]=1000 1111)](worked12/fig_7biv_reg.jpg)
Show the result after OR 51 on ACC = 0101 0011. (mem[51] = 1000 1111)
ACC: 0101 0011 mem[51]: 1000 1111 OR: 1101 1111
Result: 1101 1111
- 1101 1111 [1]
7 (c) [3 marks]
Write the register transfer notation for each stage of the fetch-execute cycle:
- Copy the address of the next instruction into the MAR.
- Increment the Program Counter.
- Copy the contents of MDR into the Current Instruction Register.
Copy address of next instruction into MAR:
MAR ← [PC]
(The contents of the PC — the address of the next instruction — are copied to MAR.)
Increment the Program Counter:
PC ← [PC] + 1
(PC is updated to point to the instruction after the one being fetched.)
Copy MDR to CIR:
CIR ← [MDR]
(The fetched instruction in MDR is transferred to CIR for decoding.)
- MAR ← [PC] [1]
- PC ← [PC] + 1 [1]
- CIR ← [MDR] [1]
Question 8 — Bitmap Images (6 marks)
8 [2 marks]

The bitmap image has resolution 4096 × 4096 pixels and 24-bit colour. It is displayed on a 1920 × 1080 monitor. Tick boxes to show the effect of each action on the image file size.
File size = pixels × bits_per_pixel. The file size depends on the image's own resolution and colour depth, NOT on the monitor's display resolution.
• Change colour depth from 24 to 16 bits/pixel: Fewer bits per pixel → file size decreases.
• Change screen resolution to 1366 × 768: The monitor resolution changes how the image is displayed, but the image FILE size is unchanged (the file still has 4096×4096 pixels at 24 bits each).
• Change colour of rectangle from black to red: The pixel colours change, but the number of pixels and bits per pixel remain the same. File size = no change. (In an uncompressed BMP the file size is exactly the same; in a compressed format it might vary slightly, but the question implies standard calculation.)
- Correct row 1 (colour depth 16 bpp → Decreases). [1]
- Correct rows 2 and 3 (screen resolution → No change; colour → No change). [1]
8 (b) [2 marks]
State two benefits of creating a vector graphic instead of a bitmap image.
1. Scalable without quality loss: Vector graphics can be enlarged to any size without pixelation, because they are described mathematically (as lines, curves, and shapes). Bitmaps lose quality and become pixelated when enlarged beyond their original resolution.
2. Generally smaller file size (for many graphics): Vectors store mathematical descriptions of shapes rather than every individual pixel, which is typically more efficient for diagrams, logos, and illustrations compared to equivalently-sized bitmaps.
- Can be enlarged without pixelation / loss of quality. [1]
- Individual components can be edited / generally smaller file size. [1]
8 (c)(i) [2 marks]
Complete the RLE table for the uncompressed values.
| Uncompressed image | RLE compressed |
|---|---|
| EA F1 F1 F2 F2 F2 EA | 1EA 2F1 3F2 1EA |
| AB AB FF FF 1D 67 | 2AB 2FF 11D 167 |
| 32 32 80 81 81 |
Apply RLE to row 3: 32 32 80 81 81
• Two 32s → 2 32
• One 80 → 1 80
• Two 81s → 2 81
RLE: 232 180 281
- Row 2 already given. Row 3: 232 180 281. [2 total — 1 per correctly completed row]
Question 9 — Artificial Intelligence (2 marks)
9 [2 marks]
Describe the social impact of using facial recognition software to identify individuals in an airport.
Positive impacts: Individuals may feel safer in the airport, knowing that known criminals or terrorists can be quickly identified. The technology can speed up boarding processes (faster identity checks without manual document inspection), improving passenger experience.
Negative impacts: There are significant privacy concerns — people may object to being scanned and having biometric data stored without explicit consent. There is also a risk of incorrect recognition — false positives could lead to innocent people being wrongly detained, interrogated, or denied boarding, causing distress and inconvenience.
- Any one positive impact (e.g. safer / faster boarding / catches criminals). [1]
- Any one negative impact (e.g. privacy issues / incorrect recognition denies access). [1]
Question 10 — Local Area Networks (6 marks)
10 (a) [1 mark]
Complete the star topology diagram showing 4 computers, 1 server, and a switch.

In a star topology, every device connects directly to the central switch. The completed diagram should show all four computers connected directly to the switch, and the server also connected directly to the switch. There are no connections between devices that bypass the switch.
- All four computers directly connected to the switch and no other connections. [1]
10 (b)(i) [2 marks]
Identify which device the router should be attached to and give a reason.
Device: Server (or Switch)
Reason (if Server): The server processes requests and authorises traffic leaving/entering the LAN. Attaching the router to the server allows the server to act as a gateway and firewall, controlling which traffic is permitted to reach the internet and back.
Reason (if Switch): The switch is connected to all computers, so attaching the router to the switch means all computers can reach the router (and thus the internet) through their existing connection to the switch.
- Device: Server or Switch. [1]
- Correct corresponding reason. [1]
10 (b)(ii) [3 marks]
Describe the role and function of the router in the network.
The router serves as the gateway between the LAN and the internet. It performs several key functions:
1. Packet forwarding: Receives data packets from devices on the LAN (or from the internet) and forwards them toward their destination using the IP address in each packet's header.
2. Routing: Consults its routing table to determine the most efficient path for each packet. It stores and updates routing information about reachable networks.
3. NAT (Network Address Translation): Assigns private IP addresses to devices on the LAN and provides the LAN with a single public IP address for communicating with the internet. This maps multiple private addresses to one public address.
- Receive packets and find the destination using IP address. [1]
- Forward packets to destination / find most efficient path / maintain routing table. [1]
- Assign private IP addresses / provide LAN with public IP address / act as gateway. [1]