Menu

Edexcel GCSE Computer Science (1CP2) Exam Questions

Build a practice paper from 604 exam-style questions, each with its mark scheme and example answers. Print it, or answer it on paper and then open the mark schemes. Or browse the questions by topic.

Build a paper

Topics (none ticked: all of them)
Question types (none ticked: all of them)

Practice paper

4 questions · 16 marks

Pick again
Print
1Short recall2 marksStored Program Computers Swap Remove

Computers use the von Neumann stored program concept.

Define the term stored program concept.

[2 marks]
Mark scheme

Award one mark for any of the following up to a maximum of two marks:

  • Program instructions are stored in main memory/RAM (1)
  • The data used by the program is stored in main memory/RAM (1)
  • The CPU fetches/reads instructions from main memory to execute them (1)
  • The program can be run without the instructions being input again (1)

Allow 'the program is stored in memory' for one mark.

Do not accept answers about programs being stored on secondary storage, such as a hard disk or USB memory stick.

Do not accept answers that only describe the von Neumann architecture (e.g. having a CPU and memory) without stating that instructions are stored in main memory.

Example answers and how they were marked
Full marks2/2

Both the program instructions and the data the program uses are held in the same main memory, and the CPU fetches these instructions from memory to execute them.

Why: Instructions stored in main memory (1) and the CPU fetches instructions from memory to execute them (1).

Some marks1/2

Program instructions are stored in main memory.

Why: Instructions stored in main memory (1). No second point about data being stored in the same memory or about the CPU fetching instructions.

No marks0/2

The program is saved on the hard disk so that it can be loaded into RAM when the user runs it.

Why: A near-miss about secondary storage, which the mark scheme says not to accept; the stored program concept is about instructions being held in main memory.

2Explain2 marksThe Internet Swap Remove

Every device that connects to the internet is given an IP address.

Explain one reason why every device on the internet needs a unique IP address.

[2 marks]
Mark scheme

Award up to two marks for a linked explanation such as:

  • Data/packets are delivered to the correct device (1) because the IP address identifies that device on the internet (1)
  • A reply is sent back to the device that made a request (1) because the sender's IP address is used as the destination address for the reply (1)
  • Routers can forward packets to the right device (1) because each packet's destination IP address matches only one device (1)
  • A device can be contacted by other devices (1) because other devices use its IP address to send data to it (1)

For both marks, the expansion must follow/associate with the statement.

Allow 'so the router knows where to send data' only when expanded to say the IP address identifies the destination device / is used by routers to forward the packet to that device.

Do not accept 'so it can connect to the internet' / 'so it can access the internet' without saying how the address is used to identify the device or deliver data to it.

Do not accept 'so the device can be identified' on its own without saying what the identification is used for, e.g. delivering data or returning a reply.

Do not award a mark for restating that an IP address is unique / every device has a different address.

Example answers and how they were marked
Full marks2/2

So that data reaches the correct device. The IP address is how the internet tells one device apart from another, so packets are sent to that device and not to a different one.

Why: Point (1): data reaches the correct device. Reason (1): the IP address identifies/tells devices apart, so packets are sent to that device.

Some marks1/2

So that packets go to the right device, because every device has a different address.

Why: Point (1): packets go to the right device. The reason only restates that every device has a different address, which the mark scheme says does not earn the second mark.

No marks0/2

So it can connect to the internet.

Why: No linked explanation of how the address is used; 'so it can connect to the internet' is not accepted without expansion.

3Discuss6 marksPeripheral Management Swap Remove

A design studio buys 30 new graphics tablets for its artists. The tablets are a new model that the studio's computers have not used before. The studio's computers already have drivers installed for the older tablets the artists use. Each artist connects a tablet to a computer running the same operating system.

Discuss the role of device drivers when the new graphics tablets are connected to the studio's computers.

Your answer should include:

  • what a device driver is and how the operating system uses it
  • why each peripheral needs its own driver
  • what must be done before an artist can use a new tablet.
[6 marks]
Mark scheme

Indicative content

What a device driver is and how the operating system uses it

  • A device driver is a program that controls a peripheral device such as a graphics tablet by communicating with the operating system.
  • The driver translates instructions from the operating system into signals that the graphics tablet understands, and passes the artist's pen movements back to the operating system.
  • The operating system loads the driver into memory when the tablet is connected, so that it can then send data to the tablet and receive input from it.
  • Without a driver the operating system cannot control the tablet, so the tablet does not work.

Why each peripheral needs its own driver

  • Every make and model of peripheral uses its own set of commands, so a driver is written for that particular device.
  • The drivers already installed for the studio's older tablets do not work with the new model, even though both are graphics tablets.
  • An operating system includes drivers for many common devices, but it does not have one for a brand new model.
  • The correct driver means the pen movements are received by the computer in the form the drawing program expects.

What must be done before an artist can use a new tablet

  • The new tablet is supplied with its driver on a disc or as a download, and it must be installed on each computer.
  • The operating system may need to be updated so that it recognises the new model.
  • The driver must be enabled or selected for the tablet once it is installed.
  • Drivers are updated later to fix faults or to improve performance.
  • If the correct driver is not installed, the tablet does not work or some of its features are not available.

Additional guidance

  • Level 3 responses must explain why a driver is specific to a device and what must be done before an artist can use a new tablet, as well as describing what a driver is, all applied to the studio.
  • Responses that only state what a driver is, or that state a driver must be installed without explaining why the tablet needs its own driver, are limited to Level 1.
  • Accept 'software', 'program' or 'set of instructions' for a driver.
  • Do not accept a device driver described only as a cable or a physical connection.
  • Do not accept the claim that all drivers are already built into the operating system, or that one driver works for every graphics tablet.

Levels

  • Level 0 (0 marks): No rewardable content.
  • Level 1 (1–2 marks): Basic, independent points are made, showing elements of understanding of key concepts/principles of computer science. (AO1) The discussion will contain basic information with little linkage between points made or application to the context. (AO2)
  • Level 2 (3–4 marks): Demonstrates adequate understanding of key concepts/principles of computer science. (AO1) The discussion shows some linkages and lines of reasoning with some structure and application to the context. (AO2)
  • Level 3 (5–6 marks): Demonstrates comprehensive understanding of key concepts/principles of computer science to support the discussion being presented. (AO1) The discussion is well developed, with sustained lines of reasoning that are coherent and logically structured, and which clearly apply to the context. (AO2)
Example answers and how they were marked
Full marks6/6

A device driver is software that lets the operating system communicate with a peripheral such as a graphics tablet. When an artist connects a tablet, the operating system loads the driver into memory so that it can send instructions to the tablet and receive the pen movements back. Each make and model of tablet has its own set of commands, so the drivers already installed for the studio's older tablets will not work with the new model, and the operating system will not have a driver built in for a brand new device. Because the tablets are a new model, the supplier provides a driver on a disc or as a download, and it must be installed on every computer before an artist can use a tablet. The studio may also need to update the operating system so that it recognises the new model, and install updated drivers later if faults are found. If the correct driver is not installed, the operating system cannot control the tablet, so the pen will not work.

Why: Level 3: defines a driver and explains the operating system's role in loading and using it (AO1), explains why the driver is specific to the make and model and applies this to the studio's older tablets (AO1/AO2), and gives the installation, operating system update, later driver updates and the consequence of a missing driver, all applied to the studio in a sustained line of reasoning.

Some marks2/6

A device driver is a program that controls the graphics tablet. The new tablets are a different model, so the computers may not have the right driver. The studio needs to install the driver that comes with the tablet before the artist can use it.

Why: Level 1 upper: a basic definition, a brief unexplained point that the new model may not have the right driver, and the point that the supplied driver must be installed. Nothing explains why a driver is specific to a device (different commands, make and model) or how the operating system uses the driver, so the points stay independent with little linkage and are limited to Level 1 by the guidance.

Some marks1/6

A device driver is a program that makes the tablet work. All drivers are already built into the operating system, so the studio does not need to install anything for the new tablets.

Why: 1 mark: a basic statement that a driver is a program that controls the device. The claim that all drivers are already built in is a misconception named in the do-not-accept guidance, so it gains no credit for what must happen before the new tablets can be used.

4Discuss6 marksLow and High Level Languages Swap Remove

A company is developing the firmware for a robotic vacuum cleaner. The firmware must read the distance sensors and control the motors. The vacuum cleaner has a small amount of memory.

Discuss the characteristics of a low-level programming language that make it suitable for writing the firmware.

Your answer should include:

  • control of the hardware
  • the efficiency of the code
  • the link between the language and the processor.
[6 marks]
Mark scheme

Indicative content

Control of the hardware

  • Low-level languages can read and write the contents of registers and memory addresses directly, so the firmware can take the values from the distance sensors without calling a library routine.
  • Assembly language instructions can read from and write to specific input/output ports on the vacuum cleaner's processor, so the motors can be switched on and off directly.
  • The programmer decides exactly which processor operations are carried out and in which order, which matters when the vacuum must reverse away from a step or an obstacle.
  • A low-level language puts nothing between the program and the hardware, so the programmer can control the hardware of the vacuum cleaner precisely.

Efficiency of the code

  • Assembly language code can be hand-optimised instruction by instruction, so the code that checks a sensor is as short as possible.
  • The programmer can choose which registers hold values that are used again and again, which cuts down the number of memory accesses the firmware needs.
  • A hand-written low-level program can be made compact, so it is more likely to fit in the small amount of memory the vacuum cleaner has.
  • Because each instruction does one defined job, the time taken to react to a sensor reading is predictable, which suits firmware that must not overrun.

Link between the language and the processor

  • Low-level languages are processor-specific, so the instructions used are those of the exact processor in the vacuum cleaner rather than general statements that need translating.
  • Each assembly language instruction maps to one machine code instruction, so the programmer knows precisely which processor operation will be carried out by each line of code.
  • An assembler turns each mnemonic into its machine code equivalent, so the machine code running on the vacuum cleaner's processor is exactly what the programmer wrote.
  • Code written for a different processor would have to be rewritten, which is acceptable here because the vacuum cleaner always uses the same processor.

Levels

  • Level 0 (0 marks): No rewardable content.
  • Level 1 (1–2 marks): Basic, independent points are made, showing elements of understanding of key concepts/principles of computer science. (AO1) The discussion will contain basic information with little linkage between points made or application to the context. (AO2)
  • Level 2 (3–4 marks): Demonstrates adequate understanding of key concepts/principles of computer science. (AO1) The discussion shows some linkages and lines of reasoning with some structure and application to the context. (AO2)
  • Level 3 (5–6 marks): Demonstrates comprehensive understanding of key concepts/principles of computer science to support the discussion being presented. (AO1) The discussion is well developed, with sustained lines of reasoning that are coherent and logically structured, and which clearly apply to the context. (AO2)

Within Level 1, award 1 mark for a single basic point and 2 marks for two or more independent basic points; Level 2 requires the points to be linked to the vacuum cleaner; Level 3 requires both control of the hardware and efficiency of the code, and a few concise, linked sentences can reach Level 3, so extra length is not required.

Accept registers, memory addresses, input/output ports, machine code and mnemonics as ways of describing access to the hardware, and accept 'a low-level language is faster' as a basic point on its own. Do not award 'binary is a low-level language' (machine code is written in binary, but binary is not a language), or characteristics of high-level languages such as being easy to read or portable, as characteristics of a low-level language.

Example answers and how they were marked
Full marks6/6

A low-level language can read and write to registers and to input/output ports directly, so the firmware can take the distance sensor readings and switch the motors without needing library routines. It can be hand-optimised instruction by instruction, so the code that checks a sensor is short and the time it takes is predictable, and a compact program is more likely to fit in the vacuum cleaner's small memory. The language is processor-specific and each assembly instruction maps to one machine code instruction, so the programmer knows exactly which operation the vacuum's processor will carry out, and the assembled machine code is exactly what they wrote.

Why: Covers all three bullets: direct control of registers and ports applied to the sensors and motors, hand-optimised compact code with predictable timing applied to the small memory, and the one-to-one link to the processor's own instruction set. Linked and applied throughout, so Level 3.

Some marks2/6

A low-level language can control the hardware directly. It can read the sensors and control the motors. It is also faster than a high-level language, so the vacuum responds quickly. This is useful because it has little memory.

Why: Three basic, independent points: direct control of the hardware applied to the sensors and motors, faster execution, and suitability for limited memory. They are asserted without development (no registers, ports or predictable timing) and the link between the language and the processor is missing, so Level 1, two or more basic points (2).

Some marks1/6

A low-level language is written in binary, so the computer can understand it directly. It is faster than a high-level language.

Why: 'Faster than a high-level language' is a creditworthy basic point (1). 'Written in binary' is not awarded, as binary itself is not a language and the do-not-award rule applies. Only one undeveloped point with no application to the vacuum cleaner, so Level 1, single basic point (1).

Questions by topic

More ways to revise Edexcel GCSE Computer Science (1CP2)

Teachers: build a paper, print it with the mark schemes at the end, and sign your school up to set your classes activities on every topic.

Fetch Decode Explain isn't affiliated with or endorsed by Pearson Edexcel.