Exam-style questions by topic — OCR A-Level Computer Science
One question for each of 37 topics. These are written for this specification by MasteryMind. They are not past-paper questions, and they are not from OCR.
Structure and function of the processor
In a pure Von Neumann machine, which single feature distinguishes it from a Harvard machine?
Practise Structure and function of the processorTypes of processor
A research team simulates how a drug molecule interacts with a protein. The simulation performs millions of small, separate arithmetic calculations on different pieces of data, and each calculation can be completed without waiting for the results of the others. Which feature of a GPU makes it better suited than a CPU to this task?
Practise Types of processorInput, output and storage
A wildlife photographer needs a removable card for a digital camera. The card must keep the photographs safe after the camera is switched off, allow individual photos to be saved and deleted quickly, and survive being reused for many thousands of shots. Which storage technology best meets these requirements?
Practise Input, output and storageSystems Software
A user connects a new printer to a computer. The operating system recognises that a device is attached, but the printer will not respond to any print commands. Installing the correct device driver resolves the problem. What is the primary role of a device driver in this situation?
Practise Systems SoftwareApplications Generation
A user wants to reduce the size of a large folder of files so it can be emailed more easily. Which type of utility is most suitable?
Practise Applications GenerationSoftware Development
An algorithm is written as pseudocode: set total to 0, then for each of the values 5, 8, 3, 6 add the value to total. What value does total hold when the loop finishes?
Practise Software DevelopmentTypes of Programming Language
An instruction uses immediate addressing. What does the operand field of the instruction contain?
Practise Types of Programming LanguageCompression, Encryption and Hashing
Which statement describes the keys used in symmetric encryption?
Practise Compression, Encryption and HashingDatabases
A bank transfers £200 from account A to account B. The system debits account A but the server fails before crediting account B, and the debit is not undone. Which ACID property has been violated?
Practise DatabasesNetworks
A user receives an email that appears to come from their bank and asks them to click a link and confirm their password. Which threat is this?
Practise NetworksWeb Technologies
Which language is primarily responsible for the visual appearance of a web page, such as colours, fonts and layout?
Practise Web TechnologiesData Types
Two floating point numbers are stored using an 8-bit two's complement mantissa followed by a 4-bit two's complement exponent (mantissa × 2^exponent, with the binary point immediately after the sign bit). Number X has mantissa 00110000 and exponent 0011. Number Y has mantissa 00100000 and exponent 0011. What is the resulting floating-point value when Number Y is added to Number X?
Practise Data TypesData Structures
Which data structure is best described as an ordered collection of elements that can grow or shrink while the program runs?
Practise Data StructuresBoolean Algebra
A logic circuit has two inputs, A and B. Input A is fed into a NOT gate, and the output of that NOT gate is one input of an AND gate. Input B is the other input of the AND gate. The final output is taken from the AND gate. Evaluate the circuit gate by gate to find the final output when A = 0 and B = 1.
Practise Boolean AlgebraComputing related legislation
A software company has produced a new program. Which of the following is protected automatically by copyright under the Copyright, Designs and Patents Act 1988, without the need for any registration?
Practise Computing related legislationMoral and ethical Issues
A data centre that hosts websites runs thousands of servers that must be kept cool. Which statement identifies an environmental effect of this digital technology?
Practise Moral and ethical IssuesThinking abstractly
A delivery company wants to model its depots and the roads between them so it can find the shortest total distance for a round trip. Which model is most suitable?
Practise Thinking abstractlyThinking ahead
A vending machine has a keypad for entering a product code, a coin slot that accepts coins, and a chute that releases the chosen snack. It also has a small display that shows the price of the selected item. Which of the following is an input to the vending machine?
Practise Thinking aheadThinking procedurally
A programmer is planning a program that will read a list of pupil marks, work out the average, and then display a grade band. Before coding, the programmer writes down each sub-task in turn and, for each one, records what it must be given to work on and what it will hand on to the next sub-task. Which aspect of the solution has the programmer primarily identified?
Practise Thinking procedurallyThinking logically
A program contains the statements: x = 7; if x > 10 then print "high" else print "low". Which output is produced?
Practise Thinking logicallyThinking concurrently
A weather-simulation program is moved from a single-core machine to a machine with four cores. The simulation is split into four concurrent threads, and after each simulated time step every thread must write its results into one shared grid that the other threads then read. Which statement best describes the benefit and the trade off of this change?
Practise Thinking concurrentlyProgramming techniques
A developer is debugging a program in an IDE. Execution is paused on a line that calls a function, and the developer wants to examine the statements inside that function one at a time before continuing. Which debugging action achieves this?
Practise Programming techniquesComputational methods
A programmer is choosing a sorting algorithm for a large list of records. They are considering merge sort, which repeatedly splits the list in half, sorts each half and then merges the sorted halves. Which statement best describes the advantage that this divide-and-conquer approach provides?
Practise Computational methodsAlgorithms
An algorithm always performs exactly 7 comparisons regardless of how many items it is given. What is its time complexity in Big O notation?
Practise AlgorithmsProblem identification
A hospital pharmacy must decide how many doses of a medicine to order each week. The decision depends on how many patients are expected, how much stock is already held, and how quickly the medicine expires. The pharmacy manager argues that this ordering decision is amenable to a computational approach. Which reasoning best supports that view?
Practise Problem identificationStakeholders
A library is building an online catalogue where borrowers search for books and reserve them. The librarian writes a persona: 'Sam, 16, a student who searches on a phone between lessons and needs to know quickly whether a book is available.' Which feature is best justified by this persona?
Practise StakeholdersResearch the problem
A bakery wants to replace its paper order pad with a tablet app. Each order is sent from the tablet to a kitchen display over the bakery's single wireless access point. The owner is reviewing the proposal and wants to identify a genuine limitation of this design. Which statement describes a real limitation of the proposed solution?
Practise Research the problemSpecify the proposed solution
A team sets the criterion 'at least 98% of 500 test barcode scans must be read correctly on the first attempt'. During testing, 486 scans are read correctly first time. Which conclusion follows from the criterion?
Practise Specify the proposed solutionDecompose the problem
A developer is decomposing a school library system into modules and wants each module to have high functional cohesion. Which decomposition is the best choice, and why?
Practise Decompose the problemDescribe the solution
A programmer is writing pseudocode for a register program. Exactly 30 student names must be stored, and each name must be retrieved directly using its register position (1 to 30). The programmer wants a fixed-size structure declared in advance, where element i holds the name of the student at position i. Which data structure is the most suitable choice, and why?
Practise Describe the solutionDescribe the approach to testing
A form asks for a student's examination mark, which must be a whole number from 0 to 100 inclusive. A tester is choosing test data for this field. Which of the following values is the best example of normal test data for this field?
Practise Describe the approach to testingIterative development process
A developer prototypes a search feature and records timings: a linear scan takes 40 ms on 1,000 records and 1,600 ms on 40,000 records. The developer then replaces the scan with an indexed lookup and annotates the evidence to justify the change. Which annotation best justifies the redesign?
Practise Iterative development processTesting to inform development
A function should return the price of an item after a 20% discount has been applied. A test uses the input 150.00 and expects 120.00, but the function returns 105.00. The developer changes the discount multiplier in the code from 0.70 to 0.80, and the test now returns 120.00 and passes. Which annotation is the best evidence justifying this remedial action?
Practise Testing to inform developmentTesting to inform evaluation
During a usability test, an observer writes the raw note: "User 3 could not find the checkout button on the basket page and gave up on the purchase." The evaluator must annotate this note so it becomes usable evidence for informing the evaluation. Which annotation turns the raw note into the strongest evidence?
Practise Testing to inform evaluationSuccess of the solution
During analysis of a database application, a measurable success criterion states: 'Every individual search query must return results within 2.0 seconds.' In post-development performance testing, five recorded searches take 1.2 s, 1.4 s, 1.8 s, 2.5 s, and 1.3 s. When evaluating the solution against the analysis requirements, which conclusion is correctly drawn?
Practise Success of the solutionDescribe the final product
A student is annotating screenshots of a finished product to comment on the effectiveness of its usability features. Each annotation should link a specific usability feature to evidence about how users actually behaved when using it. Which annotation gives the strongest evidence that a particular usability feature is effective?
Practise Describe the final productMaintenance and development
A gym runs a membership program that records each member's joining date and the length of their plan. Members have complained that they only discover their plan has lapsed when the turnstile refuses entry at the door. The gym wants a further development that lets members act before their plan lapses, without relying on staff to act. Which development best meets this aim?
Practise Maintenance and development
Practise all 810 practice questions and see your weak topics.
A week of Premium from your first lesson · Then the free plan continues · No card, no charge