Past-paper question · 2022 May-June · Paper 12 · Q5

Question 5 2022 · May-June · Paper 12 · 8 marks

Original past-paper question for 5
Original past-paper question for 5
Reveal official mark-scheme answer Official mark-scheme answer for 5

Official answer for Question 5

✓
Eight from:

Question 8

✓
Advantages
✓
Once it is compiled a program does not have to be translated again
✓
A compiled program can run faster than interpreted software
✓
Compiling a program is a much quicker process /translates it faster than
✓
interpreting…
✓
… as whole program is translated all in one go /all at once …
✓
…unlike interpreter translates one line at a time
✓
Once the program is already compiled into machine language, there is no
✓
translation software that the user has to keep up to date
✓
Compilers also improve security for programmers…
✓
…makes it much harder to copy code/machine code is difficult to understand
✓
and alter…
✓
…so fewer risks of copyright infringement…
✓
… with an interpreted program, the source code can always be seen so
✓
greater risk of software copyright infringement
✓
Disadvantages
✓
Can only be used on one operating system
✓
… source code can be interpreted on any operating system provided
✓
interpreter is present…
✓
…will need to use an interpreter if program is to be shared…
✓
It is slow/(more) difficult to debug the program/find errors…
✓
…the whole program needs to be compiled again after an error is corrected…
✓
…error messages are output at the end…
✓
…whereas with an interpreter error messages are output as they are found
✓
It uses up more memory than an interpreter…
✓
…as whole program has to be loaded…
✓
…interpreter only requires a few statements of the program to be in memory
✓
Unlike an interpreter, does not allow small pieces of code to be tested to
✓
make sure they work before continuing with the rest of the program
✓
More likely to crash the computer as it is running directly on the CPU
✓
Must have at least two of each to gain full marks
✓
Must be a proper discussion to obtain full marks
✓
Must have expansions or comparisons to be a proper discussion
✓
9626/12
✓
Cambridge International AS & A Level – Mark Scheme
✓
May/June 2022
✓
PUBLISHED
✓
Question
✓
Answer
✓
Marks

Mark scheme 9626_s22_ms_12.pdf →

Show text version of question

Question 5

When a high level language program is written, it has to be translated so the computer can run it. This can be achieved using a compiler or an interpreter.

Discuss the advantages and disadvantages of using a compiler rather than an interpreter.

..........................................................................................................................................................

..........................................................................................................................................................

..........................................................................................................................................................

..........................................................................................................................................................

..........................................................................................................................................................

..........................................................................................................................................................

..........................................................................................................................................................

..........................................................................................................................................................

..........................................................................................................................................................

..........................................................................................................................................................

..........................................................................................................................................................

..........................................................................................................................................................

..........................................................................................................................................................

..........................................................................................................................................................

..........................................................................................................................................................

..........................................................................................................................................................

..........................................................................................................................................................

..........................................................................................................................................................

..........................................................................................................................................................

....................................................................................................................................................

[8]

Question 6

Topic relevance

Why this question appears here

80% assigned-topic match · Hardware and software › Hardware and software

Topic-match percentages estimate how closely each question fits the selected syllabus topic. They are a guide for choosing stricter or broader practice.

Permanent source page: Educate A Change · From 9626_s22_qp_12.pdf

Keep practising this topic