Menu

Edexcel GCSE Computer Science (1CP2) Exam Questions

Build a practice paper from 514 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

9 questions · 19 marks

Pick again
Print
1Multiple choice1 markCompression Swap Remove

Identify one reason for using data compression.

[1 mark]
  • ATo increase the number of packets sent
  • BTo reduce the time taken to transmit a file
  • CTo improve the quality of the file
  • DTo make the file harder to open
Mark scheme
  • B To reduce the time taken to transmit a file (1)
  • The only correct answer is B. The correct answer is to reduce the time taken to transmit a file.
  • A is not correct because compression reduces file size, which can reduce the number of packets sent
  • C is not correct because lossy compression can reduce the quality of a file
  • D is not correct because encryption, not compression, can make a file harder to open
Example answers and how they were marked
Full marks1/1

B To reduce the time taken to transmit a file

Why: Correct option (1).

No marks0/1

A To increase the number of packets sent

Why: Near miss: compression reduces the number of packets sent, so no mark.

No marks0/1

C To improve the quality of the file

Why: Misconception that compression improves quality; no mark.

2Multiple choice1 markProcess Management Swap Remove

Identify the term for the fixed, short period of CPU time that each process is given.

[1 mark]
  • AProcess
  • BRound robin
  • CScheduler
  • DTime slice
Mark scheme
  • D Time slice (1)
  • The only correct answer is D. The correct answer is time slice.
  • A is not correct because a process is a program that is being run
  • B is not correct because round robin is a scheduling method that takes turns, not the period of CPU time itself
  • C is not correct because a scheduler decides which process runs next
Example answers and how they were marked
Full marks1/1

D Time slice

Why: Correct option: a time slice is the fixed, short period of CPU time given to each process (1).

No marks0/1

C Scheduler

Why: Near miss: the scheduler decides which process runs next, but it does not name the period of CPU time given to a process (0).

No marks0/1

A Process

Why: A process is a program that is being run, not the CPU time it is given (0).

3Short recall1 markProtocols & Layers Swap Remove

TCP is a protocol in the transport layer of the TCP/IP model.

State one role of TCP when data is transmitted over a network.

[1 mark]
Mark scheme

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

  • Breaks messages/data into packets (1)
  • Reassembles packets (at the destination) (1)
  • Detects errors (1)
  • Resends lost/missing packets/requests retransmission of lost packets (1)
  • Creates/establishes a connection between two computers/hosts/sets up a connection before data is sent (1)

Do not accept routing packets or using IP addresses, which is the role of IP.

Do not accept encrypting data or providing security.

Do not accept vague answers such as 'transmits data' or 'sends data' without saying how TCP does this.

Example answers and how they were marked
Full marks1/1

It splits data into packets.

Why: States that TCP breaks data into packets.

No marks0/1

It routes packets between IP addresses.

Why: Near-miss: routing packets is the role of IP, not TCP.

No marks0/1

It encrypts data so it is secure.

Why: Encryption is not a role of TCP, so no creditworthy point.

4Describe2 marksEmbedded Systems Swap Remove

A drone is controlled by an embedded system.

Describe the purpose of the embedded system in the drone.

[2 marks]
Mark scheme

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

  • It controls the motors/rotors (1) so that the drone can take off, hover, turn and land (1)
  • It keeps the drone stable/level automatically (1) by taking readings from a sensor (accelerometer/gyroscope/GPS) (1)
  • It receives signals from the remote control (1) and changes the speed of the motors to steer the drone (1)
  • It monitors the battery level (1) and brings the drone back to the ground before the battery runs out (1)

The development must relate to the function given in the point.

Accept a named function that the embedded system controls, e.g. 'it keeps the drone level', as the first mark (1).

Award the second mark only when the development gives a specific outcome or detail of that function, e.g. 'so that the drone can take off, hover, turn and land' or 'by changing the motor speeds to keep it level'.

Do not award the second mark for a generic outcome such as 'so it works', 'so it can fly' or 'so the drone moves'.

A bare 'it controls the motors so it can fly' therefore earns the first mark only.

Allow any other specific function of a drone that is carried out by the embedded system.

Do not accept 'it flies the drone' / 'it is the drone's brain' / 'it makes the drone work' without a named function being controlled.

Do not accept answers that describe the user or the remote control flying the drone with no function carried out by the embedded system.

Example answers and how they were marked
Full marks2/2

It keeps the drone level while it is in the air by reading the accelerometer and changing the speed of the motors.

Why: Named function of the embedded system, keeping the drone level (1), developed with the sensor reading and motor speed changes that achieve it (1).

Some marks1/2

It controls the motors of the drone.

Why: First mark only (1) for naming a function the embedded system controls, with no linked outcome or detail to earn the second mark.

No marks0/2

It is the brain of the drone and makes the drone work.

Why: Vague phrase with no named function being controlled, which the mark scheme's 'Do not accept' line rules out.

5Describe2 marksCompression Swap Remove

Data can be compressed using lossy or lossless compression.

Describe one difference between lossy compression and lossless compression.

[2 marks]
Mark scheme

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

  • Lossy compression permanently removes/discards some of the data (1) whereas lossless compression keeps all of the original data so the file can be restored/rebuilt exactly (1)
  • Lossy compression cannot reproduce/recreate the original file exactly (1) whereas lossless compression can decompress the file back to its original form (1)
  • Lossy compression can make a file smaller than lossless compression (1) because more of the original data is removed/discarded (1)
  • Lossy compression is used for images/sound/video (1) whereas lossless compression is used where all the original data must be kept, such as program files (1)

Allow one mark for a correct statement about one type of compression only, e.g. 'lossy compression permanently removes some data', with no comparison or development.

Do not accept 'lossy compression loses quality' on its own unless it states that data/information is removed or lost permanently.

Do not accept 'lossy is better' or 'lossless is safer' with no described difference.

Do not award a smaller file size on its own; it must be linked to data being removed or to no data being lost.

Example answers and how they were marked
Full marks2/2

Lossy compression permanently removes some of the data, whereas lossless compression keeps all of the original data so the file can be restored exactly.

Why: Linked difference: lossy permanently removes data (1) and lossless keeps all data so the file is restored exactly (1).

Some marks1/2

Lossy compression permanently removes some of the data.

Why: A correct statement about one type only (1), with no comparison to lossless or development, so the second mark is not earned.

No marks0/2

Lossless compression removes the data that is not needed so the file is smaller, but lossy compression keeps every bit of the data.

Why: The two types are the wrong way round; no creditworthy point, so no marks.

6Explain2 marksSound Swap Remove

The same sound is recorded twice using different sample intervals.

Explain the effect of using a longer sample interval on the digital recording.

[2 marks]
Mark scheme

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

  • Fewer samples are taken every second (1) so less detail of the sound wave is captured (1)
  • Fewer samples are taken every second (1) so the file is smaller/uses less storage space (1)
  • The wave is measured less often (1) so parts/changes in the wave between samples are missed (1)

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

The 'fewer samples are taken/measured less often' point can only be credited once; the second mark is for a valid expansion linked to it.

Do not accept restating the question, e.g. 'the time between measurements is longer' or 'the sample interval is longer', as either the point or the expansion.

Do not accept 'the sample rate is lower' as the expansion, as this says the same thing as a longer sample interval.

Do not accept 'the sound is lower quality/less accurate' on its own without saying what is lost, e.g. less detail of the wave captured/parts of the wave missed.

Do not accept answers about using fewer bits per sample or about compression, as these do not follow from the sample interval.

Example answers and how they were marked
Full marks2/2

Fewer samples are taken every second, so less detail of the sound wave is captured and the recording is less accurate.

Why: Point (fewer samples each second) (1) with linked reason (less detail of the wave captured) (1).

Some marks1/2

Fewer samples are taken every second.

Why: Creditworthy point (1) but no linked effect on the detail or size of the recording, so only one mark.

No marks0/2

The samples are stored using fewer bits, so the sound is less accurate.

Why: Describes a smaller bit depth rather than a longer sample interval, so no mark is awarded.

7Explain2 marksBinary and Hexadecimal Basics Swap Remove

Computers represent all data using binary.

Explain one reason why computers use binary to represent data.

[2 marks]
Mark scheme

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

  • (Computers) are made of electronic components/switches/transistors that have two states, on/off (1) so binary's two values 0 and 1 can represent these states (1)
  • Data stored as binary is more resistant to errors (1) because only two voltage levels/states need to be distinguished, so electrical noise/interference is less likely to be misread as a different value (1)
  • Circuits that only need to distinguish two states are simpler/cheaper to manufacture (1) because each component only needs to hold one of two stable states (1)

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

Do not accept 'computers only understand 0s and 1s' as a reason on its own without saying what the two states are or why binary matches them.

Do not accept 'computers are digital' or 'that is how computers work' without expansion.

Do not accept 'binary is easier to read/write' or 'binary is easier to understand' as a reason for using binary.

Do not award the same point twice if it is repeated in different words, e.g. two answers that both say circuits/components are on or off.

Example answers and how they were marked
Full marks2/2

Computers use binary because their electronic circuits have two states, on and off. Binary also has only two values, 0 and 1, so these can represent the states of the circuit.

Why: Links the two circuit states (1) to binary's two values representing them (1).

Some marks1/2

Computers use binary because their circuits are either on or off.

Why: Identifies the two circuit states (1) but does not link them to binary's two values, so the second mark is not awarded.

No marks0/2

Computers use binary because it is easier to read than denary.

Why: 'Easier to read' is a reason for using hexadecimal, not a correct reason for using binary; the mark scheme tells markers not to accept it, so no mark.

8Explain2 marksLow and High Level Languages Swap Remove

Device drivers are programs that allow the operating system to communicate with hardware.

Explain one reason why a device driver is often written in a low-level language.

[2 marks]
Mark scheme

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

  • The programmer can control/manipulate the hardware directly (1) because low-level instructions can access registers/memory addresses/hardware features (1)
  • The code can be made to work efficiently with a specific device (1) because low-level languages are processor/chipset specific, so the instructions match that hardware (1)
  • The code produced is fast to execute (1) because it is optimised for the specific processor/uses few instructions (1)
  • The code produced is small (1) so it fits in the limited memory/ROM available in the device (1)

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

Fast execution and small code size are typical advantages of low-level languages; award them only where the linked reason relates to the device.

Do not accept 'it is easier to write/learn/understand' or 'it is faster to write' as a point or as the expansion, because low-level languages are not easier for these.

Do not accept 'it is close to the hardware' or 'it works with hardware' without expansion of what that allows the program to do.

Do not accept 'because it is low-level' as the expansion; the answer must say what the language/hardware allows.

Example answers and how they were marked
Full marks2/2

It can control the hardware directly (1) because the instructions can read and write to the device's registers and memory addresses (1).

Why: Linked point (1) of direct hardware control and reason (1) that low-level instructions access registers and memory addresses.

Some marks1/2

It runs quickly (1) because it is a low-level language.

Why: Point (1) of fast execution, but 'because it is a low-level language' is not accepted as the linked reason.

No marks0/2

Because it is easier to write programs for a particular device.

Why: Misconception that low-level languages are easier to write; no creditworthy point or linked reason about hardware control or efficiency.

9Discuss6 marksTranslators Swap Remove

A student is writing a program in a high-level language. The student runs the program after every small change to check that it works.

Discuss whether the student should use an interpreter or a compiler while writing and testing the program.

Your answer should include:

  • how each translator deals with a syntax error
  • how much of the program is translated at a time
  • how this affects the student's testing.
[6 marks]
Mark scheme

Indicative content

How each translator deals with a syntax error

  • An interpreter stops as soon as it finds a syntax error and displays an error message.
  • With an interpreter, the lines before the error have already been executed, so the student can see how far the program got before it stopped.
  • A compiler reports errors at the end of translation, so the student gets a list of all the syntax errors in the program in one go.

How much of the program is translated at a time

  • An interpreter translates one line at a time and executes each line immediately.
  • A compiler translates the whole program in one go before any of it is run.
  • A compiler produces object code, so after every change the whole program must be compiled again before the student can run it.
  • An interpreter produces no object code, so the student does not have to wait for the whole program to be translated before it runs.

How this affects the student's testing

  • An interpreter suits this student because the program can be run straight away after each small change.
  • The interpreter stops at the first error found, so the student fixes that error and runs the program again, but may only find the next error on the next run.
  • Reporting every error at the end of compilation means the student can fix several errors at once, but cannot run the program until the whole program compiles.
  • The student should use an interpreter while testing, and compile the finished program once it works.

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)

Level 3 responses must relate the way each translator works to the student's testing, not just describe the two translators.

Do not accept answers about run-time or logic errors where no comparison of the translators is made.

Example answers and how they were marked
Full marks6/6

The student should use an interpreter while testing. An interpreter translates one line at a time and executes each line straight away, so as soon as the student has made a small change the program can be run without waiting for the whole program to be translated. If there is a syntax error, the interpreter stops at that line and displays an error message, and the lines before it have already been executed, so the student knows exactly where the problem is. A compiler translates the whole program in one go and only reports the errors at the end, so the student would get a list of all the syntax errors, but could not run any of the program until the whole program compiled successfully.

Why: Explains how each translator deals with a syntax error, how much is translated at a time (one line executed immediately against the whole program at once) and links both to the student's testing, with a conclusion. Level 3.

Some marks4/6

An interpreter translates one line at a time and stops when it finds an error, so the student can see where the error is. A compiler translates the whole program and reports all the errors at the end. The interpreter is better for testing because the student can run the program straight away after a change.

Why: Adequate: correct points about error reporting and one line at a time, with a recommendation, but the effect on testing is only asserted rather than reasoned through, so the linkage is not sustained. Level 2.

Some marks1/6

The student should use a compiler because it translates the program one line at a time and stops at the first error, which makes testing quicker.

Why: The roles of the two translators are reversed, so the answer only makes a basic point about testing more quickly. Level 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.