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

8 questions · 23 marks

Pick again
Print
1Multiple choice1 markTranslators Swap Remove

A program contains a syntax error. An interpreter reports the error as soon as it finds it.

Identify when a compiler reports the syntax errors it finds in the source code.

[1 mark]
  • AAfter each line is translated
  • BAt the end of translating the program
  • CWhen the first error is found
  • DWhen the object code is run
Mark scheme
  • B At the end of translating the program (1)
  • The only correct answer is B. The correct answer is at the end of translating the program.
  • A is not correct because a compiler translates the whole program and does not report an error after each line; reporting after each line is how an interpreter behaves
  • C is not correct because a compiler does not stop at the first error; it finishes translating and reports the errors it finds at the end
  • D is not correct because syntax errors are found during translation, before the object code is run
Example answers and how they were marked
Full marks1/1

B At the end of translating the program

Why: Chosen option states that errors are reported once the whole program has been translated, as a compiler does (1).

No marks0/1

A After each line is translated

Why: Near miss: reporting an error after each line is the behaviour of an interpreter, not a compiler, so no mark.

No marks0/1

C When the first error is found

Why: Misconception that a compiler stops and reports at the first error it finds; a compiler reports the errors at the end of translation, so no mark.

2Short recall2 marksImages Swap Remove

Bitmap images are stored as a grid of pixels.

Define the term pixel.

[2 marks]
Mark scheme

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

  • The smallest element/area of a bitmap image (1)
  • The smallest identifiable part of an image (1)
  • Stores/represents a single colour as a binary value (1)
  • Stores/represents a single colour using a number of bits/colour depth (1)

Allow 'picture element' for element/part in the first two bullets, but not on its own

Allow 'bit depth' for colour depth

Do not accept 'picture element'/'pixel' on its own

Do not accept 'a group of pixels' or 'a dot' on its own; allow 'dot' only when it is described as the smallest element/area of the image

Do not accept 'single colour' on its own for the second mark; it must be linked to a binary value/number of bits

Do not accept 'lots of coloured dots' (it contradicts a single colour)

Example answers and how they were marked
Full marks2/2

The smallest identifiable area of a bitmap image, which has one colour stored as a binary value.

Why: Smallest identifiable area (1) and single colour stored as a binary value (1)

Some marks1/2

The smallest part of a bitmap image, made of one colour.

Why: Smallest part (1); no credit for the second mark because the single colour is not linked to a binary value or number of bits

No marks0/2

A picture element made from lots of coloured dots.

Why: 'Picture element' on its own is not accepted and 'lots of coloured dots' contradicts a single colour

3Describe2 marksMemory Management Swap Remove

A program is stored on secondary storage before it is run.

Describe how the operating system manages memory when a program is started.

[2 marks]
Mark scheme

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

  • The program (and its data) is copied/loaded from secondary storage into main memory/RAM (1) so that the CPU can fetch/execute its instructions (1)
  • An area of main memory is allocated/reserved for the program (1) that is large enough to hold the program and its data (1)
  • The operating system checks that there is enough free main memory (1) before the program can be started/loaded, otherwise it cannot run/an error is reported (1)
  • The operating system keeps a record of the memory addresses used by the program (1) so that its instructions and data can be found when it runs (1)

Allow 'loaded into RAM', 'stored in memory' and 'put into main memory' as equivalent to copied into main memory.

A single statement that the program is loaded/stored in main memory, with no linked development, can be given one mark only.

Do not accept descriptions of the CPU fetching/executing instructions that do not refer to the operating system loading or allocating memory.

Do not accept responses about virtual memory (moving processes to secondary storage) or about which process runs next on the CPU.

Do not accept the program being run from secondary storage/hard disk.

Example answers and how they were marked
Full marks2/2

The operating system copies the program and its data from secondary storage into main memory so that the CPU can fetch and execute its instructions.

Why: Copying the program and data into main memory (1) linked to the CPU fetching/executing instructions (1).

Some marks1/2

The operating system loads the program into main memory.

Why: The program is copied/loaded into main memory (1), but there is no linked development of how or what this leads to, so only one mark is given.

No marks0/2

The CPU fetches the program's instructions from main memory and executes them one at a time.

Why: This describes the fetch-decode-execute cycle, not the operating system loading or allocating memory, which is the Do not accept line; no creditworthy point is made.

4Explain2 marksLow and High Level Languages Swap Remove

High-level languages are designed to be easier to learn than low-level languages.

Explain one reason why a high-level language is easier to learn than a low-level language.

[2 marks]
Mark scheme

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

  • Statements are written in English-like words/use maths symbols (1) so the programmer can understand more easily what each one does (1)
  • The language uses meaningful names for variables/structured constructs such as loops (1) so the code is easier to read/follow (1)
  • One statement translates into several machine code instructions (1) so there are fewer instructions to learn/understand for the same task (1)

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

Do not accept 'it is easier' / 'it is simpler' on its own, without saying what is easier/simpler.

Do not accept 'the computer understands it directly' / 'it does not need translating'.

Do not award answers about the program running faster or using less memory, as these are not about ease of learning.

Example answers and how they were marked
Full marks2/2

Statements are written in English-like words (1) so the programmer can understand more easily what each line does (1).

Why: Linked point (1) of English-like statements and reason (1) that these are easier to understand.

Some marks1/2

It uses meaningful names for variables (1) so it is easier.

Why: Point (1) that meaningful names for variables are used, but 'so it is easier' is not accepted as the linked reason.

No marks0/2

Because the computer can understand high-level code without translation.

Why: Misconception that high-level code is understood directly by the computer; no creditworthy characteristic of the language is given.

5Explain2 marksWired Connections Swap Remove

A furniture workshop uses wireless connections for its computers. The large cutting machines in the workshop cause interference.

The workshop replaces the wireless connections with wired Ethernet connections.

Explain how this could improve the speed of the network.

[2 marks]
Mark scheme

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

  • The twisted pair/shielded cable resists interference from the cutting machines (1) so the signal is not disrupted/corrupted and data does not need to be resent, so the network speed/throughput stays high (1)
  • The cable is less affected by the interference (1) so fewer data packets are corrupted/need resending, so effective throughput/speed is not reduced (1)
  • A wired connection gives a consistent/stable speed (1) because the signal is not disrupted by the machines, so data is not resent and speed is not reduced (1)

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

Allow 'consistent/stable speed' as a point, but the linked reason must say that interference no longer disrupts the signal so data is not resent/throughput is not reduced.

Do not accept 'wired connections are faster' on its own without saying why the interference no longer affects the signal/speed.

Do not accept 'there is less interference' on its own without saying what this does to the signal/data (e.g. it is not disrupted/corrupted, so data is not resent).

Do not accept 'reliable' on its own without linking it to speed/throughput.

Do not accept answers about the length of the cable or the number of devices on the network.

Example answers and how they were marked
Full marks2/2

The twisted pair cable resists interference from the cutting machines, so the signal is not disrupted and data does not need to be resent, so the network speed stays high.

Why: Point that the twisted pair cable resists interference (1) and linked reason that the signal is not disrupted/data is not resent so speed stays high (1).

Some marks1/2

Twisted pair cables resist interference from the cutting machines.

Why: Point about resisting interference (1), but no linked reason saying how this keeps the speed/throughput high.

No marks0/2

Wired connections are faster because the cables are shorter than the wireless signal has to travel.

Why: Uses an incorrect idea about cable length; 'wired connections are faster' alone is not accepted, and no point about interference affecting the signal/speed is made.

6Calculate2 marksAdding Binary Numbers Swap Remove

Binary patterns can represent numbers.

Complete the table to show the result of the 8-bit binary addition.

[2 marks]
1286432168421
10010110
01011100
Mark scheme

Award one mark for each correct nibble in the correct order:

  • 1111 (1)
  • 0010 (1)

0 marks if the response is not 8-bit binary.

Example answers and how they were marked
Full marks2/2

1111 0010

Why: 150 + 92 = 242, carrying where a column adds to 2: both nibbles are correct (2).

Some marks1/2

1111 0011

Why: A slip in the last bit. The first nibble is correct (1); the second is not.

No marks0/2

1101 1110

Why: Writes 1 in every column with a 1 and never carries. Neither nibble is correct.

7Discuss6 marksPrimary Memory Swap Remove

A school is buying new computers for its IT room. The computers the technician has ordered have 16 GB of RAM and a large hard drive.

Discuss why main memory (RAM) is needed for programs to run on these computers.

Your answer should include:

  • the role of RAM in the stored program concept
  • what happens to a program when it is opened
  • why the CPU cannot execute a program directly from secondary storage.
[6 marks]
Mark scheme

Indicative content

the role of RAM in the stored program concept

  • In the von Neumann stored program concept, a program's instructions and the data it uses are held together in main memory.
  • RAM holds the instructions and data of the program that the CPU is currently processing.
  • The CPU fetches each instruction from RAM during the fetch-decode-execute cycle, so a program must be in RAM before it can be run.
  • RAM is directly accessible by the CPU, so instructions can be fetched quickly enough for the CPU to keep working.

what happens to a program when it is opened

  • When a program is opened, a copy of its instructions and data is transferred from secondary storage, such as the hard drive, into RAM.
  • The operating system loads the program into RAM so that the CPU can start fetching and executing its instructions.
  • When the program is closed, it is removed from RAM, and the space it used is free for another program.
  • If a computer does not have enough RAM, the program may not open, or another open program has to be closed first.

why the CPU cannot execute a program directly from secondary storage

  • Secondary storage, such as a hard disk drive, is much slower to access than RAM.
  • The CPU can process instructions much faster than secondary storage can supply them, so the CPU would have to wait and would not be working at full speed.
  • RAM is fast electronic memory with no moving parts, so data can be read from it in a fraction of the time taken by a magnetic hard disk drive.
  • Running the school's programs directly from secondary storage would make the computers in the IT room very slow to use.

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)

Additional guidance

  • Level 3 responses must cover both the role of RAM in the stored program concept and the speed difference between RAM and secondary storage, with a reason such as the CPU having to wait for instructions.
  • Answers that make only basic, independent points, such as what RAM is, that a program is copied into RAM when it is opened, or that RAM is faster than a hard drive, without linking them to explain why the CPU would have to wait for instructions, are limited to Level 1.
  • Do not accept statements that RAM is permanent storage, that RAM replaces secondary storage, or that secondary storage is read-only.
Example answers and how they were marked
Full marks6/6

The computers need RAM because of the von Neumann stored program concept, in which the instructions of a program and the data it uses are both held in main memory. When a student opens a program on one of the new computers, the operating system copies it from the hard drive into RAM. The CPU then fetches each instruction from RAM in the fetch-decode-execute cycle, so the program must be in RAM before it can be run. The CPU cannot execute a program directly from secondary storage because a hard disk drive is much slower than RAM. It has moving parts and a much lower transfer rate, so the CPU would often have nothing to do while it waited for the next instruction. RAM is fast electronic memory that the CPU can read directly, which is why 16 GB of RAM lets the school run several programs at once and still keep the CPU working at full speed.

Why: Comprehensive understanding: the stored program concept is explained (instructions and data held in main memory), the program being opened is linked to it, and the speed difference is developed with the reason that the CPU would wait for instructions, all applied to the school's computers. Level 3.

Some marks2/6

RAM is the main memory of the computer. It stores the programs and data that are being used at the moment. When you open a program it is copied into RAM, and the CPU fetches instructions from RAM. RAM is faster than the hard drive, so a program runs better from RAM. Having 16 GB means the school can have more programs open at once.

Why: Basic, independent points only: what RAM is, that a program is copied into RAM when it is opened, that the CPU fetches instructions from RAM, and that RAM is faster than a hard drive. None is linked to the stored program concept or developed to explain why the CPU would have to wait for instructions, so Level 1, 2 marks.

No marks0/6

RAM is the permanent storage inside the computer, like a hard drive. The school needs 16 GB of RAM so that all the students' files can be saved permanently. When a program is opened, it is copied from RAM to the CPU. The CPU cannot execute from secondary storage because secondary storage is read-only.

Why: No creditworthy points. RAM is described as permanent storage, files are said to be saved permanently in RAM, a program is said to be copied from RAM to the CPU, and secondary storage is said to be read-only. All are the misconceptions listed in the Do not accept guidance, so Level 0.

8Discuss6 marksSound Swap Remove

A toy company is designing an electronic keyboard. The keyboard can store and play back short recorded sounds. The memory chip in the keyboard has very little space, so each sample is stored using only 3 bits.

Discuss the limitations of storing the recorded sounds using only 3 bits per sample.

Your answer should include:

  • the range and number of amplitude values that can be stored
  • the accuracy of each sample that is stored
  • how the limitation could affect what the user hears.
[6 marks]
Mark scheme

Indicative content

Range and number of values

  • With a bit depth of 3, the keyboard can store only 2^3 = 8 different amplitude values.
  • The 3-bit codes run from 000 to 111, so the loudest and quietest amplitudes the keyboard can record are fixed by those codes.
  • Because only eight levels of loudness are available, the keyboard cannot store the full variation in amplitude of the original recording.
  • Any sound in between two of the eight values cannot be stored at all, so much of the detail of the original sound has no code to represent it.

Accuracy of the stored sample

  • Each true amplitude must be rounded to the nearest of the eight available values, so the stored sample is not the same as the amplitude that was measured.
  • The difference between the true amplitude and the rounded value is the quantisation error, which makes every stored sample less accurate.
  • The eight values are far apart, so there is a large step between one stored amplitude and the next and the stored sound rises and falls in big jumps rather than following the original wave.
  • A quiet sound whose amplitude is smaller than one step may be stored with the same code as silence, so that part of the recording is lost.

Effect on the user

  • When the keyboard plays back the recording, the large steps between stored amplitudes are heard as distortion or noise rather than a smooth copy of the original sound.
  • Quiet parts of the recording may not be heard at all, because they are stored as the same value as silence.
  • The reproduced sound may not be recognisable as the instrument or voice that was recorded.

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 explain that 3 bits gives only 8 amplitude values and link the large steps between those values to the distortion or the loss of quiet sounds that the user hears; an explicit binary range of 000 to 111 is not required for Level 3.

Level 2 requires one point to be developed with a reason, e.g. eight values means each amplitude is rounded to the nearest and the quantisation error is large enough to be heard; stating 8 values, reduced accuracy and distortion as separate basic points without a reason is Level 1. Do not accept bit depth described as the number of samples taken per second, or a bare statement that the quality is worse with no explanation.

Example answers and how they were marked
Full marks6/6

With only 3 bits per sample, the keyboard can store just 2^3 = 8 different amplitude values. Each recorded amplitude has to be rounded to the nearest of these eight values, so the stored sample is not the same as the original and a quantisation error is created. The eight values are far apart, so the stored sound moves in large steps instead of following the original wave. A quiet sound smaller than one step is stored as the same code as silence, so it is lost. When the keyboard plays the recording back, the user hears these large steps as distortion and noise, and quiet parts of the music may not be heard at all, so the sound is not a faithful copy of the original.

Why: Level 3 (6 marks): explains the 8 values from 3 bits, rounding creating quantisation error, the large steps between values, lost quiet sounds and the distortion the user hears, all applied to the keyboard.

Some marks2/6

With 3 bits, there are only 8 values that can be stored, so the amplitude is rounded to the nearest value. This makes the sound less accurate than the original recording. The user might hear distortion when the keyboard plays it back.

Why: Level 1 (2 marks): gives basic points (8 values, rounding to the nearest value, less accurate, possible distortion) but states them separately, without explaining why the eight far-apart values cause a large quantisation error or why that is heard as distortion, so it does not reach Level 2.

No marks0/6

3 bits means 3 samples per second, so the keyboard cannot store much sound. The quality will be low.

Why: Level 0 (0 marks): confuses bit depth with sample rate ('3 samples per second'), which the scheme says not to accept, and 'the quality will be low' is a bare statement with no explanation, so there is no creditworthy point.

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.