Level:
Correct: 0
Incorrect: 0
Marks: 0/0
Exam Practice
Course:
Topics:
AQA GCSE Computer Science (Paper 2) Smart practice A mixed round aimed at your weak spots
Unit 1
3.3 Fundamentals of data representation
Unit 2
3.4 Computer systems
Unit 3
3.5 Fundamentals of computer networks
Unit 4
3.6 Cyber security
Fundamentals of cyber security; cyber security threats
Cyber security, its threats and penetration testing
Methods to detect and prevent cyber security threats
Detecting and preventing cyber security threats
Unit 5
3.7 Relational databases and SQL
Unit 6
3.8 Ethical, legal and environmental impacts
Ethical, legal and environmental impacts
Ethical, legal and environmental impacts of technology
Avg
score:
–
Topics
done:
0/22

The CPU, the fetch-execute cycle and performance

Practise 30 exam-style questions on The CPU, the fetch-execute cycle and performance for AQA GCSE Computer Science (Paper 2). Write your answer as you would in the exam and get it marked in seconds against the mark scheme, point by point, with the Study Helper on hand if you get stuck.

  • 30 questions
  • 1–6 marks each
  • Instant marking
  • No sign-up needed
20 questions, marked as you go

Sample questions with model answers

Here are 4 of the questions in this topic, each with a model answer, an explanation of why it earns the marks and the mark scheme an examiner would use.

Question 1

1 mark

A program is running on a computer.

Which of these describes what main memory is used for while the program runs?

Choose your answer.

  • It carries out calculations on the data
  • It decodes each instruction
  • It holds the instructions and data that the CPU fetches
  • It stores files permanently when the power is off

Model answer

It holds the instructions and data that the CPU fetches

Explanation

While a program is running, its instructions and the data it is using are held in main memory: the CPU fetches each instruction from there and may read or write data there during the execute stage. Calculations are done by the ALU and decoding by the control unit. Storing files permanently is the job of secondary storage - main memory (RAM) loses its contents when the power is off.

Mark scheme
  1. 1 mark

    It holds the instructions and data that the CPU fetches

    Mark is for AO1 (understanding). If more than one option is given, 0 marks.

Question 2

2 marks

Describe the role of the arithmetic logic unit (ALU), giving an example of an operation it carries out.

Model answer

The ALU carries out the arithmetic and logic operations needed when instructions are executed. For example, it adds two numbers together, or compares two values to find out whether one is greater than the other.

Explanation

The name says it all: the arithmetic logic unit does arithmetic (such as addition and subtraction) and logic (such as comparisons and AND/OR operations). It is used during the execute stage when an instruction needs a calculation or a comparison. A full answer mentions both kinds of operation and then gives one specific example.

Mark scheme
  1. 1 mark

    it carries out arithmetic operations and logic operations // it performs calculations and logical comparisons

    All marks AO1 (understanding). NE. 'does calculations' alone for this mark - the answer must refer to logic/comparisons as well.

  2. 1 mark

    a correct example: adding/subtracting two numbers // comparing two values (e.g. is A greater than B?) // a logical operation such as AND, OR or NOT // a binary shift

    The example must be a specific operation. A. a correct example even if the first mark is not awarded.

Question 3

2 marks

A program contains a loop that repeats the same five instructions 10,000 times.

Explain why this program is likely to benefit from the CPU's cache.

Model answer

The first time round the loop, the five instructions are fetched from main memory and copies are kept in the cache. For the other 9,999 repetitions the CPU can fetch them from the cache, which is much faster than fetching them from main memory, so the loop runs faster.

Explanation

Cache holds frequently used instructions and data, and a loop is the clearest example of instructions being used again and again. After the first repetition, the instructions are found in the cache, so the CPU avoids slower main memory accesses for the remaining 9,999 repetitions. Good answers link the general idea of cache to the repetition in this program.

Mark scheme
  1. 1 mark

    the first time the instructions are used they are fetched from main memory and (copies are) kept in the cache

    All marks AO2 (apply). A. the five instructions are used frequently, so they will be held in the cache.

  2. 1 mark

    on the later repetitions they can be fetched from the cache, which is faster than fetching them from main memory

    NE. 'cache is fast' with no comparison with main memory or link to the repeated instructions.

Question 4

4 marks

Freya opens a music app on her laptop and starts playing a song.

Explain how main memory is used while the app is running.

Model answer

When Freya opens the app, its program instructions are copied from secondary storage into main memory. While it runs, the CPU fetches the app's instructions from main memory one at a time. The data the app is using, such as the next part of the song and the volume setting, is also held in main memory, so when an instruction is executed the CPU can read this data from main memory. Results, such as a new volume level after Freya changes it, are written back to main memory.

Explanation

Main memory holds both the instructions of the running program and the data it is using: instructions are fetched from it in the fetch stage, and data may be read from or written to it in the execute stage. The best answers cover both instructions and data and both reading and writing, using the music app as the example. Main memory is not where the songs are kept permanently - that is secondary storage.

Mark scheme
  1. 1 mark

    the app's instructions are loaded/copied into main memory (from secondary storage) when it is opened

    All marks AO2 (apply). Max 4. R. 'information' in place of data. R. main memory stores the songs permanently (that is secondary storage). NE. 'the memory is fetched'.

  2. 1 mark

    the CPU fetches the app's instructions (one at a time) from main memory

  3. 1 mark

    data that the app is using (e.g. part of the song, the playlist, the volume setting) is held in main memory

  4. 1 mark

    when an instruction is executed, data may be read from main memory (e.g. the next part of the song)

  5. 1 mark

    results/new data may be written (back) to main memory (e.g. a new volume level, the position reached in the song)

Ready to try the rest? Every answer you write is marked against the mark scheme, so you can see exactly where the marks are.

Study Helper Hints first, answers after you try

Stuck on this one? Ask for a hint and I’ll point you in the right direction, without giving the answer away. Once you’ve checked your answer, I’ll show you how the marks are awarded.