A3 Solutions – Programming languages
A3 Solutions – Programming languages
Lesson 1 - Translators
(Note for the assessor: A learner could write many variations here, but there should
be key characteristics for each example given)
Q3 If a program written in assembly language uses 400 lines of code, how many lines of
machine code will there be?
Answer: 400
Answer: An assembler
Q7 List three reasons why high-level languages are more suitable for programmers than
low-level languages?
Translators convert high-level languages into machine code. Computers can only
understand machine code, so translators were needed so that programmers could write
using high-level languages which could still be understood by computers after
translation.
A compiler creates an executable file that can then be used independently of the original
source code.
An interpreter translates and executes each line of code during runtime, the interpreter
is always required for the code to run.
Once code has been compiled, it can be run quickly because it requires no further
translation.
An interpreter translates during runtime which can slow down the process.
An executable file created by a compiler can easily be shared with other users.
The source code and the interpreter are required to run code translated by an
interpreter. This means that other users will need these before they can run the
program.
Explorer task
Create a mind map of all the key terms listed on the ‘Lost in translation’ handout.
Resources are updated regularly — the latest version is available at: ncce.io/tcc.
This resource is licensed under the Open Government Licence, version 3. For more information on this
licence, see ncce.io/ogl.