Many programmers write computer programs in high-level languages. The programs need to be translated into machine code to be read by the computer. State two types of translator that can be used. Translator 1 Translator 2
- (a)Many programmers write computer programs in high-level languages. The programs need to be translated into machine code to be read by the computer. State two types of translator that can be used. Translator 1 Translator 2[2]
- (b)Explain two reasons why a computer programmer may choose to write a program in a high-level language, rather than a low-level language. Reason 1 Reason 2[4]
- (c)Three examples of computer code are given in the table. Tick (✔) to show whether each example of computer code is High-level language, Assembly language or Machine code. Computer code High-level language (✔) Assembly language (√) Machine code (✔) 10110111 11001100 01011100 FOR X = 1 TO 10 PRINT X NEXT X INP X STA X LDA Y[3]
Mark scheme
Marking points from the official mark scheme (Oct/Nov 2018). The mark or mark type is shown in brackets.
- [2] ∞ Compiler
- ∞ Interpreter
- [4] Four from:
- ∞ Closer to human language/English ...
- ∞ ... so it is easier/quicker to read/write/understand
- ∞ ... so it is easier/quicker to debug the program
- ∞ ... therefore, less likely to make errors
- ∞ The program can be used on many different platforms ...
- ∞ ... because it is written in source code
- ∞ ... because it is compiled into object code
- ∞ They have built-in functions/libraries ...
- ∞ ... this saves time when writing the program
- ∞ Do not need to manipulate memory addresses directly ...
- ∞ ... therefore, specialist knowledge of this is not required
- ∞ Only need to learn a single language ...
- ∞ ... as this can be used on many different computers
- [3] 1 mark for each correct tick (✔)
- 10110111, 11001100, 01011100: Machine code (✔)
- FOR X = 1 TO 10 PRINT X NEXT X: High-level language (✔)
- INP X STA X LDA Y: Assembly language (✔)
Write your answer and get it marked
On Oracle Prep you can write or photograph your own answer and have it marked by AI against this mark scheme, with feedback on what you missed.
Sign up free →