Computer Science Paper 1 SL Markscheme
Computer Science Paper 1 SL Markscheme
Markscheme
November 2018
Computer science
Standard level
Paper 1
11 pages
–2– N18/4/COMSC/SP1/ENG/TZ0/XX/M
Section A
1. Award [1] for identifying the nature of a network and [1] for a development of the first
point up to [2 max].
A group of computers and other computing hardware devices that are linked together
through communication channels/cables/wirelessly;
To enable communication (sharing files, sharing information) between systems/among
a wide range of users; [2]
2. (a) Award [1] for identifying a feature of a database management system and [1] for
an expansion up to [2 max].
(b) Award [1] of using beta testing and [1] for an expansion up to [2 max].
The real users have an opportunity to test a new product before it is (publicly)
released;
So, user acceptance is assured;
Any bugs identified could be (easily) fixed before the public release of the
product;
So, quality of the product is enhanced; [2]
4. Award [3 max].
Award [1] for a logic diagram representing A OR B with 2 inputs, 1 output and 3 logic gates.
Award [1] for the OR gate having 2 inputs, one of which is NOT A.
Award [1] for another input to the OR gate, which is A AND B.
[3]
5. (a) Award [1] for each possible compatibility issue identified up to [2 max].
(b) Award [1] for identifying how VPN will allow employees to communicate and [1]
for a development up to [2 max].
(c) Award [1] for identifying an issue and [1] for an expansion up to [2 max].
6. Award [4 max].
Packet switching entails data being separated into specially formatted units (packets);
Each packet contains data and information such as packet number, address that
identifies the sending computer and intended recipient, etc;
Packets are routed from source to destination using (different) network switches and
routers;
Using these addresses, network switches and routers determine how best to transfer
the packet on the path to its destination;
Packets are reassembled at the destination (using packet numbers);
If any of packets is missing it should be retransmitted; [4]
–5– N18/4/COMSC/SP1/ENG/TZ0/XX/M
7. Award [4 max].
A B B >= A output
3 7 true
4 6 3
true
5 5 1
true
6 4 –1
false
[4]
–6– N18/4/COMSC/SP1/ENG/TZ0/XX/M
Section B
(ii) Award [1] for the answer saying that the function of OS in primary memory
management is allocation of specific memory blocks to individual programs
and [1] for reallocation up to [2 max].
Note to examiners: Award only [1] an answer such as “OS maintains file
allocation table”. [2]
– 7– N18/4/COMSC/SP1/ENG/TZ0/XX/M
28/256; [1]
(iii) Award [1] for identifying why this byte could not be used to represent
characters such as those in Chinese and [1] for an expansion up to
[2 max].
A B C
0 0 1
0 1 0
1 0 0
1 1 1
[2]
– 8– N18/4/COMSC/SP1/ENG/TZ0/XX/M
9. (a) Award [1] for the answer identifying improved programmer productivity and [1] for
making reference to machine independence up to [2 max].
HLL saves programmer from knowing details of computer architecture (and using
all the specific (machine) instructions);
So giving more time to creating/developing the best way of coding a
problem/process of coding is simpler and more understandable; [2]
Award [1] for an answer stressing the usefulness of sub-procedures in any of the
following:
Program organization;
Program coding;
Program testing;
Maintenance;
Etc.
Simpler testing;
Each part of the program could be separately tested;
By the programmer who created the code or someone else in the team of
programmers;
Reusable code;
Sub-procedures already written/tested could be used in various programs;
Award marks for description of a specific example collections (in Java or any
other programming language) such as arrays, dictionaries, sets, lists, trees (they
– 9– N18/4/COMSC/SP1/ENG/TZ0/XX/M
have some characteristics in common, but also each of them has different way of
organizing the data elements/objects they contain).
Award [1] for initialization and for outputting correct result (COUNTER).
Award [1] for using collection methods.
Award [1] for correct loop.
Award [1] for retrieving a number (ELEMENT) from the collection.
Award [1] for if statement within the loop.
Award [1] for correct condition in if statement.
Award [1] for increasing COUNTER if needed.
Example answer:
COUNTER = 0
NUMBERS.resetNext()
loop while NUMBERS.hasNext()
ELEMENT = NUMBERS.getNext()
if ELEMENT >= -1 and ELEMENT <= 1 then // abs(ELEMENT) <= 1
COUNTER = COUNTER + 1
end if
end loop
output COUNTER
26.0; [1]
Example answer 1:
category(B)
if B < 18.5
output('underweight')
else if B < 25.0
output('normal weight')
else if B < 30.0
output('overweight')
else
output('obese')
end if
end category
Example answer 2:
category(B)
if B < 18.5
output('underweight')
end if
if B >= 18.5 and B < 25.0
output('normal weight')
end if
if B >= 25.0 and B < 30.0
output('overweight')
end if
if B >= 30.0
output('obese')
end if
end category [4]
Paul; [1]
– 11 – N18/4/COMSC/SP1/ENG/TZ0/XX/M
Binary search can be applied only on sorted array / array HEIGHT is not
sorted so binary search cannot be used; [1]
(ii) Award [1] for identifying each stage in the process of printing out a person’s
name up to [2 max].
Linear (sequential) search could be used to find the position (array index) of
a given height measurement in array HEIGHT;
And the name in array NAME at found position should be outputted; [2]
Award [3 max] marks for displaying appropriate names after calculating the
group’s average BMI.
Award [1] for an if statement within the correct loop.
Award [1] for condition in if (comparing the BMI of the person with the average
BMI).
Award [1] for the correct output [1] for correct parameters in the
method call ( calcBMI(HEIGHT[K], WEIGHT[K]).
Example answer:
sum = 0
loop for K from 0 to 29
sum = sum + calcBMI(HEIGHT[K], WEIGHT[K])
end loop
average = sum/30