Chapter 4 Software Guess Papers
Chapter 4 Software Guess Papers
3$*(
3$*(
7 Translators, such as a compiler and an interpreter, are used when writing and running computer
programs.
Compiler ...........................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
Interpreter .........................................................................................................................................
...................................................
..........................................................................................................
..........................................................................................................................................................
.............................................
...
..............................................................................................................
..
..........................................................................................................................................................
..................................
.. ..
.....
....
.............
. .......................................................................................................
..........................................................................................................................................................
.........
......
......................
..........................
. ...........
....
..........
. ......
. ..............................
. ................................
. ..................................
..........................................................................................................................................................
............
............
. .................................
. .......................................................................................................
..........................................................................................................................................................
[6]
He needs to send just the machine code for the program to his friend, electronically.
Identify which translator will be most suitable for Dimitri to use. Explain your choice.
Explanation ......................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
...................................................
.........................................................................................................
..
..........................................................................................................................................................
[4]
9 maga
maga
magazine
e displays
An advertisement in a magazine displ
p ayys this barcode:
.............................................................................................................................................. [1]
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
.............................................................................................................................................. [4]
© UCLES 2018 2210/12/M/J/18
3$*(
6 (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.
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)
c) Thrree
Threeee xa
amp
mple
less of compute
examples ter code are given in the table.
te
computer
Hyper Text Transfer Protocol The website address that is typed into the
(HTTP) address bar
[5]
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
......................................................................................................................................................[4]
7 David is writing a program using a high-level language. The program will be published and sold for
profit.
Feature 1 ..................................................................................................................................
...................................................................................................................................................
Feature 2 ..................................................................................................................................
...................................................................................................................................................
Feature 3 ..................................................................................................................................
...................................................................................................................................................
[3]
Benefit 1 ...........
........
....
.....................................................................................................................
...................................................................................................................................
..
.............
.. ......... .....
.........................................
.......................
...................
..........
. ..............
.........
......
......
................
................................................................................................................................................... . ......
................
.....
......................................................................................................................................................
...................................................................................................................................................
......
....................
................................................................................................................................
...................................................................................................................................................
Benefit 2 ...........................
..........................................................................................................
...................................................................................................................................
.............................................
. ......................................................................................................
..
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
[4]
1 ................................................................................................................................................
2 ................................................................................................................................................
3 ................................................................................................................................................
[3]
• Assembly
• Converter
• Denary
• Hexadecimal
• High-level language
langu
gu
uag
ge
• Low-level
Low-le
leve
ve
el language
lang
langua
nguage
ua
• Machine
Ma
ach
chin
ine
e Code
Co
Code
• Source
Sour
Sou ce Code
ur Cod
o e
• Syntax
Sy
ynt
ntax
tax
• Translator
T
Tran
ran
ansl
slat
slator
ato
or
....................................................
.................... . A programming language that uses natural
.......................................................................
....................................................................... language.
[6]
True False
Statement
() ()
High-level languages need to be translated into machine code to run on a
computer
High-level languages are written using mnemonic codes
+LJKOHYHOODQJXDJHVDUHVSHFLILFWRWKHFRPSXWHU·VKDUGZDUH
High-level languages are portable languages
[4]
(b) Tick () to show which of the following is an example of a high-level language program.
Tick
Example program
()
1011100000110000
101
10111
100000110000
00
0000
011011100010
0000011011100010
INP
STA ONE
ONE
INP
STA TWO
TWO
ADD ONE
ONE
ON
a = input()
input()
in
b = input()
input()
in
if a == b:
print("Correct")
else:
:
print("Incorrect")
[1]
12
True False
Statement
() ()
Interrupts can be hardware based or software based
Interrupts are handled by the operating system
Interrupts allow a computer to multitask
Interrupts work out which program to give priority to
Interrupts are vital to a computer and it cannot function without them
[5]
DOZD
DO
Explain twoZD\VWKDWWKHPDO Z UHFRXOGKDYHEHHQLQWURGXFHGWRWKHFRPSDQ\·VQHWZRUN
ZD
twoZD\VWKDWWKHPDOZDUHFRXOGKDYHEHHQLQWURGXFHGWRWKHFRPSDQ\·VQHWZRUN
.....................................
.......
....
...........
..........................................................................................................
..........................................................................................................................................................
..........
......
.........
.. ...................................
. ......................................................................
. .....................
...............................
..........................................................................................................................................................
.............
.....
. ....
. .........
.. ....
.......................
. .......................................................................................................
..........................................................................................................................................................
..
....................
.............................................................................................................................................
..........................................................................................................................................................
..................................................
..........................................................................................................
..........................................................................................................................................................
...................................................
........................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
.................................................................................................................................................... [4]
Permission to reproduce items where third-party owned material protected by copyright is included has been sought and cleared where possible. Every
reasonable effort has been made by the publisher (UCLES) to trace copyright holders, but if any items requiring clearance have unwittingly been included, the
publisher will be pleased to make amends at the earliest possible opportunity.
To avoid the issue of disclosure of answer-related information to candidates, all copyright acknowledgements are reproduced online in the Cambridge
Assessment International Education Copyright Acknowledgements Booklet. This is produced for each series of examinations and is freely available to download
at www.cambridgeinternational.org after the live examination series.
Cambridge Assessment International Education is part of the Cambridge Assessment Group. Cambridge Assessment is the brand name of the University of
Cambridge Local Examinations Syndicate (UCLES), which itself is a department of the University of Cambridge.
10
Feature 1 ..................................................................................................................................
Feature 2 ..................................................................................................................................
Feature 3 ..................................................................................................................................
[3]
Example 1 .................................................................................................................................
Example 2 .................................................................................................................................
[2]
(c) Give one drawback of writing programs in a low-level language, instead of a high-level
language.
...........................................
.........................................................................................................
...................................................................................................................................................
.................................
...
. ............................................................................................................ [1]
.............................................................................................................................................
(d) A low-leeve
vell language
low-level la
ang
ngua
uage
ge needs
ds to
o be converted
co
onvertted to binary
onv bina
bina
nary before
bef
e ore
e itit can
can be
be processed
proc
pro esse
s d by a
comp
com ut
mp uter
e.
er
computer.
(i) G ive
ve tthe
Give he
e 8-bit
8-bi
8- biit binary vvalue
alue of the two denary values:
1 0 .....................................................................................................................................
18
180 ......................................................................................................................................
201 ............................
..........................................................................................................
....................................................................................................................................
[2]
Working space
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
1 A Von Neumann model for a computer system has a central processing unit (CPU) that makes
use of registers.
Register 1 .................................................................................................................................
Register 2 .................................................................................................................................
Register 3 .................................................................................................................................
[3]
Stage 1 ..............................................................................................................................
Stage 2 .......................
..........................................................................................................
..............................................................................................................................
[2]
.....
.......
. ..
....
....
. ................................................
.. . ....................................
. ..................................
..................................................................................................................................... . ..................... [1]
2 Both an
n interpreter
inte
inte
int rp
rpre
rpre
ete
terr and
an
nd a compiler
compiiler can be used when writing a program in a high-level language.
((a)
a) Expl
pllai
ain
Explain n why
why a programmer
programmerr would
would make use of both an interpreter and a compiler.
...........................................
..........................................................................................................
...................................................................................................................................................
.............................................
. ......................................................................................................
..
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [4]
(b) Give three reasons why a programmer would choose to write a program in a high-level
language, instead of a low-level language.
Reason 1 ..................................................................................................................................
...................................................................................................................................................
Reason 2 ..................................................................................................................................
...................................................................................................................................................
Reason 3 ..................................................................................................................................
...................................................................................................................................................
[3]
3 A company collects and stores data about its customers. The data is stored on a server in the
company’s office.
..
.....................
. .....
.............................................................
....................
..........
. ..............
.........
......
.....................
................................................................................................................................................... . ......
................
.....
...
. ..
..................................................................................................................................................
...................................................................................................................................................
......
................
. ....
................................................................................................................................
...................................................................................................................................................
...........................................
..........................................................................................................
...................................................................................................................................................
.............................................
. ......................................................................................................
..
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [4]
(b) Give three other methods that can be used to secure the data in the office.
Method 1 ...................................................................................................................................
...................................................................................................................................................
Method 2 ...................................................................................................................................
...................................................................................................................................................
Method 3 ...................................................................................................................................
...................................................................................................................................................
[3]
© UCLES 2020 2210/12/M/J/20 [Turn over
3$*(
Tick (9) one box to show the part of a computer of which the bootstrap is an example.
A application software
B firmware
D MAC address
[1]
(a) (i) Identify two advantages to the programmer of using a high-level language instead of a
low-level language.
1 .............................
............................................................................................................
........................................................................................................................................
2 ...................
.......
. .............................................................................................................. [2]
..
...................................................................................................................................
(ii)
i)) Sugg
Su gges
e t on
Suggest ne d
one isadvan
ntttage
n
disadvantage e to
o the
the
e programmer
pro
ogrram
mme
mer of
of using
usiing
ng a high-level
hig
igh
h-le
eve
vel
e language
lang
ng
guage
ua
a e instead
instead of
a low-level
low-le
lo leve
eve
vell language.
l nguage.
la
...
...........
........................................
....
....
. ..
. ..
....
. ..
.......
....
. ..
. ..
. ..
. ..
........
. ............
.. . ..
....
. .....
....
. ...........
.......
. .....
..........................................................................................................................................
..........
.......
....
..............
. .. [1]
...................................................................................................................................................
.............................................................................................................................................. [1]
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