SQSS 2018 P1 Solution
SQSS 2018 P1 Solution
1 3
Description Function
Returns the number of
non-empty cells in the ● ● COUNT
given range references
● HLOOKUP
● CEILING
● FLOOR
2 One mark for the correct answer and one mark for showing the relevant
working
2a (2^0) + (2^3) + (2^4) + (2^7) 2
= 1 + 8 + 16 + 128 (Working)
= 153 (Answer)
4a modem 1
4b NIC 1
4c router 1
4d network bridge 1
4e network hub 1
4f SSID 1
Alternative
Device – CD ROM, DVD, Blu-ray
Method – Data is stored as very small pits or indentations that can be
read or written by a laser
Advantage – Large storage capacity of up to gigabytes of data
Disadvantage
- Data can only be written once for some non-rewritable formats
- lower maximum storage capacity than magnetic external storage
- Vulnerable to scratches and fingerprints
4
9 8
10 5
0 0
42 1 -8
77 1 27
85 2 35
-5
30 2 -20
91 3 41
-15
0 3 ,2
11a 5
X = (T AND (NOT L)) OR (A AND (NOT T))
A
6
11b 4
A T L X
0 0 0 0
0 0 1 0
0 1 0 1
0 1 1 0
1 0 0 1
1 0 1 1
1 1 0 1
1 1 1 0
15 8
- Initialisation of counter and output list
- Loop management ten repetitions
- Input word
- Exit to print out list of words if “Quit” is entered
- Checking for word in output list
- Appending the word to the output list if word not in list
- Printing out the list of non-repeated words in order
8
Sample flowchart
START
Count = 0
Output_list =[ ]
Is count N
<10?
INPUT word
Is word Y
“Quit”?
PRINT
N
output_list
Is word in N
output_list?
Y Append word to
output_list
Add 1 to count
9
count = 0
Output_list = [ ]
REPEAT
INPUT word
IF word = “Quit”
ENDIF
--------------------------------------------------------------------------------------------------------------------------------------
count = 0
Output_list = [ ]
INPUT word
WHILE count <10 OR word is not equal to “Quit”
IF word not in Output_list
Output_list = Output_list + word
count = count + 1
Else
count = count + 1
INPUT word
ENDWHILE
OUTPUT Output_list
10
Reference MS
Loop management (exits loop when the word input by the user is “Q”
Within the loop, check whether the word input is found in the output array/list
End of loop