Chap 4 Marking Scheme
Chap 4 Marking Scheme
3$*(
2210/11 Cambridge O Level – Mark Scheme May/June 2018
PUBLISHED
Question Answer Marks
7 Compiler 6
Any three from:
mach
c in
ch
Translates high-level language into machine code
co de/low
de
ne code/low ow
w level language
go
g o/a
/alllll at
Translates (the source code) all in one go/all at once
on
nce
e
Produces an executable file
Produces an error report
Interpreter
Any three from:
– Translates high-level language into machine code/low llevel
evel
vel llanguage
anguage
an
Translates (the source code) line by line/statement by statement ntt
– Stops if it finds an error
– Will only continue when error is fixed
Question Answer
An swer
wer Marks
– Compiler
Question Answer
Answ
wer Marks
alignment
– The three large squares are used to define the alignme mentnt //
// uses alignment targets/modules
more
– Black squares reflect less light // white squares reflectt more
re light
– The app/device processes the image
– Each small square/pixel is converted to a binary value e
Question Answer
Answ
swerr Marks
6(a) x Compiler 2
x Interpreter
10110111
11001100 9
01011100
FOR X = 1 TO 10
PRINT X 9
NEXT X
INP X
STA X 9
LDA Y
3$*(
8 Fourr from: 4
x Used to attend to certain tasks/issues
x Used to make sure that vital tasks are d dealt with
ealtt w ith immediately
im
mme
m di diately
CPU/processor
x The interrupt/signal tells the CPU/proces sor (that
so (ttha
(tha
hat
at its
ts attention
a te
at tent ntion is required)
attta
x A signal that can be sent from a device ((attached t ch hed
ed ttoo th
thee coccomputer)
omputer)
x A signal that can be sent from software (inst (installed
stal
st a led
ed o onn tthe
h ccomputer)
he o puter)
om
x The interrupt will cause the OS/current processproce essss to pause
pa
p aus
use
x The OS/CPU/ISR will service/handle the interrup interrupt
upt
uppt
x They have different levels of priority
x After the interrupt is serviced, the (previous) process is continue continued
ued
ueed
x It enables multi-tasking to be carried out on a ccomputer ompu
om p te
pu terr
interrupt
x A valid example of an interru ptt e.g. ‘‘out paper’
outt off pape r’’ message ffor printer
or a p riinter
t
Question Answer
Answ
wer
e Marks
will begin
Once the certificate is authenticated, the transaction will beg
e in
True False
Statement
(9) (9)
1011100000110000
0000011011100010
INP
STA ONE
INP
STA TWO
ADD ONE
a = input()
b = input()
if a == b:
9
print("Correct")
3$*(
else:
print("Incorrect")
Question Answer
An swer
wer Marks
True False
Statement
(9) (9)
8 Fourr from: 4
x A hacker could have hacked the network «
r
x « and downloaded the malware onto the network
x downloaded
wnl
« so malware is not detected/checked for when files are dow n oa
oade
d d
9(d)(i) − 10110100 2
3$*(
− 11001001
9(d)(iii) − 93 2
− 1D
1(b)(i) − Fetch 2
− Execute
Question Answer
Answ
wer Marks
Question A
An
nsw
swer
err
Answer Marks
5(a)(i) Any two from: 2
x it is easier / quicker to read/write/understand
x it is easier / quicker to debug
x code is portable.
5(a)(ii) Any one from: 1
x arrd
not able to directly manipulate the ha dwa
ware
are
hardware
x may need to wait for translation before running
x program may be less efficient.
5(b) Software that provides useful functions for a programmer
err w
writing o puter program.
om
riting a ccomputer 1
Question An swer
wer
e
Answer Marks
3$*(
Question Answ
wer
e
Answer Marks
7(a) x nted
nt
All the characters and symbols that can be represent
representede by a co
omp
puter system.
computer 2
x val
allue
Each character and symbol is assigned a unique value.ue.
7(b) Each character is encoded using more bits. 1
© UCLES 2020 Page 7 of 10