0% found this document useful (0 votes)
22 views8 pages

CWSS 2020 Computing P1 Solution

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views8 pages

CWSS 2020 Computing P1 Solution

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

COMMONWEALTH SECONDARY SCHOOL

PRELIMINARY EXAMINATION 2020


COMPUTING
Paper 1 (Theory)
Sec 4 E/4NA
Mark Scheme
Qn Answer Marks
1 Statement Register Main Secondary
Memory Storage
Data is lost during power interruption ✔ ✔
Non-volatile memory ✔
Slowest accessing speed ✔
Storage space directly used by the ✔
arithmetic logic unit and the control unit
Used to transfer large amounts of data ✔
from one device to another
2 Licence Description
Free and • • Software that is free for use for a period
Open Source after which users will need to pay a fee
to continue to use it.

Public • • Software where unauthorised copying of


Domain it is prohibited and its source code is kept
secret.

Freeware • • Software that is available as “lite” version


where users may use at no cost.

Shareware • • Software that is available for users to


use, copy, study and modify.

Proprietary • • For intellectual property that have


expired or simply surrendered.
3 8910 = 6410 + 1610 + 810 + 110
(a)
(i) = 26 + 24 + 23 + 20
= 010110012
3 910 = 10012 and B16= 10112 9B16 = 16 x 9 + 11
(a) 1
= 15510
(ii)
Thus, 9B16 = 1001 10112
= 12810 + 1610 + 810 + 210 + 110
= 15510
Qn Answer Marks
3 11102 =8+4+2 and 01012 = 4 + 1
(a)
= 1410 = 510
(iii)
= E16 = 516

Thus, 111001012 = E516


3 Unicode can encode more characters of different languages than ASCII.
(b)
(i)
3 RGB colour codes, memory dumps, network address, ASCII and Unicode, URL
(b)
Encoding
(ii)
(Any TWO)
4 Wired: Network devices are connected by a physical medium such as
cables.
Wireless: Signals are transmitted in the form of electromagnetic waves
such as radio waves and microwaves.
Wired: Less convenient when expansion required as additional wiring will
be needed.
Wireless: Network can be expanded easily with existing equipment.
Wired: Less convenient to use as equipment needs to be connected by
cables at all time.
Wireless: More convenient as one can work from any location within the
wireless network’s coverage area.
(Any TWO)
5 1. Technology and software have been able to reduce the time,
(a)
cost and effort needed for payments, investments, fundraising,
(i)
trading and/or data analytics for both business and individuals.
2. Algorithmic trading which is the study and refinement of algorithms
to make trading decisions at speed not possible by human being
can generate profits at a speed and frequency that is
impossible for a human trader.
3. Artificial intelligence can be used to calculate interest rates and
home values by using historical pricing charts to develop a
model that more accurately predicts the financial future by
taking numerous factors into account.
4. As computers can handle large volumes of information, they can
take over the manual work of analyzing data and creating
meaningful reports and so will be more efficient in tasks such
as detecting and preventing fraud.
Qn Answer Marks
5. The use of software and technology allows for easier
communication and collaboration among employees in the
financial sector which in turn results in the generation of more
profit for the financial institutions.
(ANY TWO)

(Marks to be awarded if key phrases (bold and underlined) are


used.)
5 1. Cyberattacks and ease of obtaining false information on the
(a)
Internet has made some people more vulnerable to financial
(ii)
scams and other get-rich-quick schemes.
2. Cyberattacks such as phishing and pharming can result in
money loss or fraudulent activities.
3. Technology has replaced huge number of jobs in the financial
sector. As such, many workers in the financial sector have lost
their jobs.
4. Data stored in database of financial institutions such as banks
may be corrupted, hacked or lost. This can result in loss of
important data or data leakage.
5. Over-dependence on technology can lead to banking activities
coming to a standstill during power outage or cyberattack such
as denial-of-service.
(ANY TWO)

(Marks to be awarded if key words/phrases (bold and underlined)


are used.)
5 1. Human error
(b)
Accidental damage to storage device can happen during
(i)
transportation.
Accidental overwriting of data can happen when multiple users
are working on the same file.
2. Power Failure
Data can be lost when power supply is interrupted during the
process of writing from the volatile memory (e.g. RAM) onto the
non-volatile storage device (e.g. hard disk)
3. Hardware failure or damage
Storage device can fail due to overuse, manufacturing defects
or damage.
4. Malicious software or viruses
Qn Answer Marks
Malicious software or viruses may damage or corrupt data.
(ANY ONE)

(Marks to be awarded if key words/phrases (bold and underlined)


are used.)
5 1. Make regular backups of data
(b)
(ii) 2. Use adequate protection when handling/transporting storage
devices.
3. Set up rules when collaborating so as to prevent accidental
overwriting of data.
4. Use backup power supply or UPS (Uninterruptible Power
Supply) so that the storage device can complete the writing of data
in case of power failures.
5. Check storage devices regularly and replace them immediately
when signs of failure are detected.
6. Install anti-virus and perform regular scans for viruses.
7. Avoid opening emails from unknown sources/suspicious web
links.
(ANY ONE)

(Marks to be awarded if key words/phrases (bold and underlined)


are used.)
6 Inputs:
(a) - Name of the required primary school
- A list of student names together with the name of their primary
school

Outputs:
- Name of students from that primary school
- Number of students from that primary school

Processes required:
- Search for all students from that primary school
- Count the number of students who are from that primary school
7 NOR
(a)
7 A B X
(b) 0 0 1
0 1 1
1 0 1
1 1 0
Qn Answer Marks
7 D AND NOT T [1m]
(c) D
AND L [1m]
T

L X

OR [1m]

NOT D AND T [2m]


AND NOT L [1m]

X = (D AND NOT T AND L) OR (NOT D AND T AND NOT L)


8 num1 = 10
(a)
num2 = 20
(Any values such that num1 < num2)
8 num1 num2 OUTPUT
(b) “Enter first number”
(i) 1
“Enter second number”
10
“Enter first number”
20
“Enter second number”
5
TRUE
8 The algorithm checks if num1 is divisible by num2.
(b)
(optional: It will display TRUE if num1 is divisible by num2 and display
(ii)
FALSE if num1 is not divisible by num2.)
8 Name of validation check: Presence check 1 for name
(c)
Description: To check that the user has entered a value for each input,
(i) 1 for
num1 and num2. description
Name of validation check: Format check
Description: To check that the user has entered only numbers for each
input, num1 and num2
(ANY ONE)
8 Test case condition Test data
(d) Normal condition 20, 2
Error condition a, b
9 Advantage:
(a)
• Program runs at a faster speed as translation has been done
beforehand.
• Compiler is not required to run the program after compilation is
complete.
Syntax errors are detected before program is run.
(Any ONE)
Disadvantage:
• Changes to source code require recompilation before taking effect.
• Does not offer interactive mode.
(Any ONE)
9 Python, Scratch
(b)
(Any ONE)
10 A5: Text
(a)
B2: Percentage
E9: Currency
10 PPMT
(b)
(i)
10 SUM
(b)
(ii)
(a)
10 $B$9
(b)
(ii)
(b)
11 - Initialisation of three counters for highest score (highest), highest
score index (h_index) and total score of all students (total) [before
loop]
- Loop management for reading scores of 20 students
- Input and store in list scores of 20 students (at start of loop)
- Validate scores (within 0 and 100)
- Totalling all students’ scores
- Checking for highest score…
- … updating highest score if highest score is found
- … updating highest score index if highest score is found
- Calculating average score of all students (outside of loop)
- Outputting average score of all students (outside of loop)
- Outputting index of highest score (outside of loop)
Sample pseudo-code:
highest, h_index, total = 0, 0, 0
FOR x = 0 TO 19
REPEAT
INPUT score[x]
UNTIL (score[x]>=0) and (score[x]<=100)
total = total + score[x]
IF score[x] > highest
highest = score[x]
h_index = x
ENDIF
NEXT
avg = total / 20
OUTPUT avg
OUTPUT h_index
12 Error 1: times = 1
Correction: times = 0
Error 2: INPUT words[times]
Correction: INPUT words[x]
Error 3: times = times – 1
Correction: times = times + 1
Error 4: IF times >= 0
Correction: IF times > 0
13 Sample Flowchart

Total = 7

START

newstrg = “”

OUTPUT
“Enter a string”

INPUT strg

OUTPUT “Enter a
character to remove”

INPUT chr

x=1

Y
x > length(strg)?
N
OUTPUT newstrg

strg[x] ! N
END == chr?

Y
newstrg = newstrg + chr

x=x+1

You might also like