Software, operating systems and translators – O Level Computer Science (2210)
Question text
11
State three functions provided by an operating system.
Function 1 …
…
…
Function 2 …
…
…
Function 3 …
…
…
[3]
Question text
1
(a) Give two reasons why a programmer would choose to write code in a low-level language.
1 …
…
…
2 …
…
…
[2]
(b) High-level languages require either an interpreter or a compiler to translate the program.
The table below lists a number of statements about language translators.
Tick (3) to show which statements refer to interpreters and which refer to compilers.
Statements
Interpreter (3)
Compiler (3)
Translates the source code into machine code
all at once
Produces an executable file in machine code
Executes a high-level language program one
instruction at a time
Once translated, the translator does not need to
be present for the program to run
An executable file is produced
[5]
Question text
2
State four functions of an operating system.
1 …
2 …
3 …
4 …
[4]
Question text
6
Four computer terms and eight descriptions are shown below.
Draw lines to connect each computer term to the correct description(s).
Computer term
Description
Data can be read but not altered
Arithmetic and logic
Carries out operations such as
unit (ALU)
addition and multiplication
Stores bootstrap loader and BIOS
Control unit
Fetches each instruction in turn
Carries out operations such as
AND, OR, NOT
Random access
memory (RAM)
Stores part of the operating system
currently in use
Read only memory
Stores data currently in use
(ROM)
Manages execution of each
instruction
[4]
Question text
6
High-level or low-level languages can be used when writing a computer program.
State two advantages of using a high-level language and two advantages of using a low-level
language.
High-level language advantage 1 …
…
High-level language advantage 2 …
…
Low-level language advantage 1 …
…
Low-level language advantage 2 …
…
[4]
Question text
8
Four descriptions about compilers and interpreters are shown below.
Draw lines to indicate which descriptions refer to a compiler and which descriptions refer to an
interpreter.
Description
It is more difficult to debug the
code since one error can
produce many other associated
errors.
The speed of execution of
Compiler
program loops is slower.
It produces fast, executable
Interpreter
code that runs directly on the
processor.
It is easier to debug the code
since an error is displayed as
soon as it is found.
[4]
Question text
1
Complete the following by writing either compiler, interpreter or assembler in the spaces
provided.
…
– translates source code into object code.
…
– translates low-level language into machine code.
…
– stops the execution of a program as soon as it
encounters an error.
[3]