JWSS 2018 P1 Solution
JWSS 2018 P1 Solution
JWSS 2018 P1 Solution
Name:
MARKING
SCHEME
[4]
2 Cloud services allow users to run programs and access data anywhere over
the Internet without having to be at a particular physical location.
Describe two safety measures you can take to prevent unauthorised access
to your private information when using cloud services.
Safety
(a) Measures:
Safety measure 1 ………………………………………………………………..
……………………………………………………………………………………..
• Read and fully understand the privacy policy of the cloud service.
……………………………………………………………………………………..
• Do not store secret or confidential information on cloud services.
• Ensure that the traffic between your device and the cloud service is
(b) Safety measure
encrypted before2 using
………………………………………………………………..
the cloud service.
• Constantly change your cloud passwords
……………………………………………………………………………………..
…………………………………………………………………………………….. [2]
3 Insert five of the following words about network devices and components,
in the correct place in the text below.
port
The ……………..…………… number is used together with an IP address to
uniquely identify a program that is running on a network.
network hub
The ……………..…………… is a device that connects multiple devices to the
same network and transmits received packets to all connected devices.
modem
The ……………..…………… is a device that converts digital signals to analog
signals and vice-versa.
SSID
The ……………..…………… is a 32-bit string that identifies a wireless access
point and all devices connected to it.
router
The ……………..…………… is a device that forwards packets between
separate networks. [5]
Identify two ways by which source code can be translated into machine code
and state an advantage of each method.
Using an Interpreter
Method 1 .…………………………………………………………………………….
- Changes to the source code take effect immediately.
Advantage …….……………………………………………………………….……..
- Interpreters usually offer an interactive mode, which facilitates
………………….……………………………………………………………….……..
learning and experimentation.
Using a Compiler
Method 2 ……………………………………………………………………………..
- The resulting program runs at a faster speed because all the
Advantage …….……………………………………………………………….……..
translation has been done beforehand.
…………....…….……………………………………………………………………... [4]
- The compiler is not needed to run the program after
compilation
Is complete.
5 A meteorologist wants to find out the day and mean temperature recorded, for
the hottest day in the month of January, which contains 31 days.
Identify two examples of inputs where it may not be possible to find the
hottest day in the month of January.
String (str)
(i) ………...…………………….………………………………………………
List (list)
(ii) ………...…………………….……………………………………………… [2]
(a) Describe how the following causes can contribute to data corruption and
provide a preventive measure for each cause.
When multiple users write to the same file at the same time.
(i) Human error ...…………….………………………………………………
….…………………………………………………………………………...
Preventive Measure:
Preventive Measure
- Make regular backups...……………………………………………………
of data
- Use adequate protection when transporting storage devices
….…………………………………………………………………………... [2]
- Set up rules when collaborating with multiple users
(i) The word “be” was sent across the internet. Assuming an odd
parity system was used, state if there were any errors in the
transmission for each character.
Data received
ASCII character at destination Was there an error?
b 01100010 NO
…………………….……
e 01100101 YES
…………………………. [2]
(ii) -State
For instance, it is able
one limitation to detect
of parity that an error has occurred but
checks.
cannot determine where the error occurred.
….…………………………………………………………………………...
- If there is a case where more than 1 bit has changed, it will result
in correct parity even though the data is actually corrupted
….…………………………………………………………………………... [1]
Star Topology
Choice .…………………….………………………………………………
Reason .……….……………………………………………………………
If a fault occurs at a computer or cable, it is easy to isolate the
….…………………………………………………………………………... [2]
fault and do a replacement without affecting the rest of the
network.
(ii) State two advantages of a client-server network over a P2P network.
Advantage 1 ………………………………………………………............
If a P2P network were to be used, the bandwidth of the network
could decrease if the number of computers were to increase.
……………………………………………………………………................
Advantage 2 ………………………………………………………............
……………………………………………………………………………….
A client-server network is best for implementing a secure system where [2]
users are required to authenticate to a network, while a P2P network
offers little to no security.
10 An algorithm is required to find the highest and lowest numbers based on 100
positive inputs provided by the user. Study the following pseudo-code.
highest = 0
lowest = 0
Counter = 1
WHILE Counter < 100
INPUT Number
IF Number < highest
highest = Number
ENDIF
IF Number < lowest
Number = lowest
ENDIF
Counter = Counter + 1
ENDWHILE
OUTPUT highest, lowest
There are four errors in this pseudo-code. Locate the errors and state the
correct pseudo-code.
lowest = 0
Error 1 ………………………………………………………………………………
lowest = 9999
Correction ………………………………………………………………………….
……………………………………………………………………………………….
Number = lowest
Error 4 ………………………………………………………………………………
lowest = Number
Correction ………………………………………………………………………….
………………………………………………………………………………………. [8]
JWSS Preliminary Examinations 2018 Computing (7155/01) Secondary 4 Express
9
11 (a) Identify the logic gate represented by the following truth table.
Inputs Output
X Y Q
0 0 0
0 1 1
1 0 1
1 1 1
OR Gate
…………………………………………………………………………………… [1]
A B C X
0 0 0 1
0 1 0 0
1 0 0 0
1 1 0 0
0 0 1 1
0 1 1 0
1 0 1 0
1 1 1 1
(c) A nuclear power plant has a safety system, that is controlled by a three-input
logic circuit made up of AND, OR and NOT gates only. A WARNING signal
(S = 1) is produced based on certain conditions, shown in the table below.
Input Binary Condition
T 0 Temperature ≤ 115oC
1 Temperature > 115oC
P 0 Reactor pressure ≤ 15 bar
1 Reactor pressure > 15 bar
W 0 Cooling water ≤ 120 litres/hour
1 Cooling water > 120 litres/hour
T
AND
W NOT
OR S
NOT
AND
OR
P
NOT
[7]
12 Study the following flowchart and answer the questions that follow.
START
total1 = 0
total2 = 0
x=0
y=0
count = 1
INPUT temp
NO
NO
count = count + 1
OUTPUT
avg1, avg2
END
[7]
Flowchart Solution:
INPUT
house
1 mark
OUTPUT
tax
Is count
< 5001?
Pseudo-code Solution:
End Of Paper