Level:
Correct: 0
Incorrect: 0
Marks: 0/0
Exam Practice
Course:
Topics:
OCR GCSE Computer Science (Paper 2) Smart practice A mixed round aimed at your weak spots
Unit 1
Algorithms
Unit 2
Programming fundamentals
Unit 3
Producing robust programs
Unit 4
Boolean logic
Unit 5
Programming languages and IDEs
Unit 6
Practical programming (Section B)
Avg
score:
–
Topics
done:
0/31

High-level and low-level languages

Practise 25 exam-style questions on High-level and low-level languages for OCR 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.

  • 25 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

State what must happen to a program written in a high-level language before the processor can execute it.

Model answer

It must be translated into machine code by a translator (a compiler or an interpreter).

Explanation

A processor can only execute machine code - binary instructions from its own instruction set. High-level source code, with keywords such as if and print, means nothing to the processor, so a translator (a compiler or an interpreter) must convert it into machine code first. Answers such as 'convert it to a low-level language' are too vague, because assembly language is also low-level but still cannot be executed directly.

Mark scheme
  1. 1 mark

    it must be translated / converted into machine code (binary)

    Accept 'it must be compiled or interpreted' / 'it must be translated by a compiler or interpreter' / 'converted into binary instructions'. Do not accept 'it must be converted into a low-level language' without reference to machine code or binary. Do not accept 'it must be saved' or 'it must be debugged'.

Question 2

2 marks

Explain what it means to say that a program written in a high-level language is portable.

Model answer

The same program can be run on different types of computer with different processors. The source code does not need to be rewritten - it only needs to be translated into the machine code of each type of processor.

Explanation

High-level code does not refer to any particular processor's registers or instructions, so the same source code can be translated by a compiler or interpreter for whichever processor will run it. Low-level code is written for one instruction set, so it would have to be rewritten. A common mistake is to think 'portable' means the file can be physically moved, for example on a memory stick.

Mark scheme
  1. 1 mark

    the program can run on different types of computer / processor / platform

  2. 1 mark

    without rewriting the code / the same source code just needs to be translated (compiled or interpreted) for each type of processor

    Accept 'there is a translator for each type of processor' or 'it is not tied to one instruction set'. Do not accept 'it can be carried around' or 'it can be stored on a USB stick'.

Question 3

3 marks

There are two types of low-level language.

Name both types and describe one difference between them.

Model answer

Machine code and assembly language.
Machine code is written in binary (0s and 1s), whereas assembly language uses mnemonics such as ADD and STA to represent each instruction.

Explanation

Both types are low-level because they work directly with the processor's own instructions. Machine code is the binary form that the CPU executes directly; assembly language replaces each binary instruction with a mnemonic, which is easier for a person to remember but must be translated into machine code before it can run. Do not confuse assembly language (a language) with an assembler (a translator).

Mark scheme
  1. 1 mark

    machine code

    Accept 'binary code'.

  2. 1 mark

    assembly language

    Accept 'assembly code'. Do not accept 'assembler' (that is a translator, not a language).

  3. 1 mark

    machine code is written in binary (0s and 1s) whereas assembly language uses mnemonics / short codes such as ADD / machine code can be executed directly whereas assembly language must be translated into machine code first

    Either difference. The answer must make clear which type has which feature. Do not accept 'one is harder than the other' with no reason.

Question 4

4 marks

A team of programmers is developing a revision app. It will be sold for phones, tablets and laptops, which have different types of processor. The app will be updated regularly by different members of the team.

State which level of programming language the team should use and justify your choice.

Model answer

They should use a high-level language.
It is portable, so the same code can be translated to run on phones, tablets and laptops with different processors instead of being rewritten for each one.
It is easier to read, so different team members can understand and update each other's code.
It is quicker to write and debug, so regular updates can be released quickly.

Explanation

Justify by linking features to the scenario: different processors means portability matters; regular updates by a team means readability and maintainability matter. A low-level language would need a separate version for each type of processor and would be slow to update. Efficiency is the main argument for low-level code, and it is not the priority here.

Mark scheme
  1. 1 mark

    high-level (language)

    If a low-level language is chosen, award 0 for the whole question. The choice mark may be given with any one justification below; max 3 marks for justification.

  2. 1 mark

    portable: the same code can be translated to run on the different processors of phones, tablets and laptops without being rewritten

    Must refer to running on different devices or processors.

  3. 1 mark

    easier to read / understand, so different team members can update and maintain each other's code

  4. 1 mark

    quicker to write / debug, so updates can be produced and released more quickly

  5. 1 mark

    programmers do not need to know the hardware details of each device / can use libraries and built-in functions (e.g. for the user interface)

    Do not accept 'high-level runs faster' or 'uses less memory'.

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.