Attempt first
Hide the answer guide and complete each question under timed conditions. Write workings, not just final answers.
Practice sets for all four components: AS theory, AS problem-solving, advanced theory and practical programming. Questions are original revision exercises, not official Cambridge papers or predictions.
AS topics 1–8 · 1 hour 30 minutes · 75 marks
(a) Convert denary 45 to 8-bit binary. (3) (b) Explain one difference between ASCII and Unicode. (2) (c) A bitmap is 800 × 600 pixels at 24-bit colour depth. Calculate its uncompressed size in bytes, ignoring the header. Show working. (4)
45 = 00101101. ASCII has a limited character set; Unicode supports many more characters/languages. Size = 800 × 600 × 24 ÷ 8 = 1,440,000 bytes.
Explain two differences between packet switching and circuit switching. Give one reason DNS is needed. (6)
Packet switching splits data into packets which may share links and take different routes; circuit switching reserves a path for a session. DNS resolves domain names to IP addresses.
Describe the roles of the ALU, control unit and program counter. (6)
ALU performs arithmetic/logic; control unit decodes instructions and coordinates signals; program counter holds address of next instruction.
A school stores student records. Recommend three controls to reduce unauthorised access and explain how each helps. (6)
Examples: unique accounts/strong authentication, role-based permissions, encryption, updates, backups, physical controls. Explain specific threats each control addresses.
Explain the purpose of a primary key and a foreign key. State one ethical concern when collecting student data and one way to reduce it. (6)
Primary key uniquely identifies a record; foreign key links a record to a related table. Privacy/consent or excessive collection; collect only necessary data, restrict access and explain use.
AS topics 9–12 · 2 hours · 75 marks
A library needs a program to track borrowed books. Describe decomposition and abstraction for this problem. Give two items of test data for a due-date field. (6)
Decompose into member, book, loan, return and overdue tasks; abstract only relevant details. Test valid date and invalid/impossible date, with clear expected behaviour.
Consider pseudocode: Total ← 0; FOR Count ← 1 TO 4; Total ← Total + Count; NEXT Count; OUTPUT Total. State the output and explain the final values of Count and Total. (5)
Output Total is 10 (1+2+3+4). Total accumulates each Count. The loop control variable after termination depends on the exact pseudocode convention taught; state the convention given in the question rather than assuming an undocumented value.
Write pseudocode to input 20 scores, reject scores outside 0 to 100, count scores at least 50, and output the count. (10)
Use a FOR loop for 20 inputs. For each score, repeat input while score < 0 OR score > 100, then IF score >= 50 increment PassCount. Output PassCount. Initialise counter to 0.
Explain why a record may be suitable for a student, and why an array may be suitable for storing 30 student marks. (5)
A record groups related fields such as ID, name and date of birth. An array stores many same-purpose values under one name and permits indexed access.
Distinguish validation from verification. Describe normal, boundary and erroneous test data for an age field accepting 11–18. (6)
Validation checks rules; verification checks accurate copying/entry. Normal e.g. 15; boundary 11 and 18; erroneous e.g. 10, 19 or text if only integer ages are allowed.
A Level topics 13–20 · 1 hour 30 minutes · 75 marks
Explain the purpose of the exponent and significand in floating-point representation. Compare sequential and direct file access. (7)
Significand stores significant digits; exponent scales magnitude. Sequential access processes records in order; direct access can locate a record using an address/key without reading all earlier records.
Explain one benefit and one limitation of packet switching. Describe how a digital certificate supports secure communication. (7)
Shared links and alternate routes improve utilisation/resilience; delay/order variability may occur. A trusted CA signs a certificate linking identity to a public key; clients validate trust and certificate details.
Describe two benefits of virtual machines and explain why adding CPU cores does not always make a program proportionally faster. (7)
Isolation and consolidation are benefits. Some work is sequential; synchronisation and communication create overhead, so only parallelisable parts gain speed.
A hospital considers an AI tool to help prioritise cases. Discuss two benefits and three risks, and recommend safeguards. (8)
Benefits may include faster triage and consistent pattern detection. Risks include biased data, privacy exposure, poor generalisation and opaque decisions. Safeguards: representative testing, privacy controls, human review, audit and monitoring.
State De Morgan’s law for NOT(A OR B). Explain why a recursive algorithm needs a base case. (5)
NOT(A OR B) = NOT A AND NOT B. The base case terminates recursion; each recursive call must move toward it.
A Level topics 19–20 · 2 hours 30 minutes · 75 marks
Create a program that reads records from a text file, validates numeric scores from 0 to 100, counts valid records, calculates the mean of valid scores and reports rejected records. Include suitable error handling. (25)
Use safe file opening/closing, line-by-line parsing, numeric conversion with exception handling, range checks, counters and a guarded mean calculation when no valid scores exist.
Write a recursive function to calculate the sum of integers from 1 to n for n ≥ 0. Include a base case and demonstrate the result for n = 4. (15)
Base case n = 0 returns 0; otherwise return n + Sum(n−1). Sum(4)=4+3+2+1+0=10. Validate negative input.
Design a small program using a suitable modular or object-oriented approach to store and search a collection of items. Provide test cases and evidence of expected/actual results. (20)
Separate data, input, search and output responsibilities. If using classes, define state and methods clearly. Test empty collection, one item, match, no match, duplicate key and invalid input.
Explain two benefits of exception handling and two benefits of modular programming. (15)
Exception handling allows safe responses to expected runtime failures and clearer user feedback. Modules improve readability, testing, reuse and maintenance.
Hide the answer guide and complete each question under timed conditions. Write workings, not just final answers.
Compare your answer with the indicative points. Award marks only for correct, relevant explanations and working.
Record mistakes by topic and redo similar problems after reviewing the concept notes.
Write, run and test programs in your chosen permitted language. A written outline alone is not practical preparation.