s23-a500u10-1
s23-a500u10-1
s23-a500u10-1
A500U10-1 S23-A500U10-1
A 5 0 0 U101
01
ADDITIONAL MATERIALS
A WJEC pink 16-page answer booklet.
INSTRUCTIONS TO CANDIDATES
Answer all questions.
Write your answers in the separate answer booklet provided.
2. Clearly showing each step, simplify the following Boolean expressions using Boolean algebra,
identities and De Morgan’s Law.
B. ( A + C ).A.(A + C)
(b) [4]
5. This algorithm conducts basic statistical analysis on a one dimensional array producing the
maximum value, minimum value, sum, mean, number of values and range. The array has
been populated with floating point numbers:
Algorithm Stats
do
if (myArray[i] < min) then
set min = myArray[i]
elseif (myArray[i] > max) then
set max = myArray[i]
end if
A 5 0 0 U101
set total = total + myArray[i]
set i = i + 1
03
while (i < n)
(a) Evaluate the efficiency of the search algorithm and using Big O notation, determine the
growth rate for time performance. [5]
(b) Determine the rate of memory space used during a single run of the algorithm. [2]
(c) Identify the type of time complexity and draw a graph of the algorithm above to illustrate
the order of time performance. Graph paper is not required. [4]
6. Manufacturers use the European Article Number (EAN-13) standard for barcoding products.
Each EAN-13 barcode comprises a country code, manufacturer code, product code and check
digit. All EAN-13 barcodes are 13 digits long separated using hyphens (-).
• Product codes have a varying number of digits depending on the size of the
manufacturer’s code.
(a) Produce a Backus-Naur Form (BNF) definition for an EAN-13 barcode. [5]
7. A presentation software application uses a linked list to store each of its slides. The software
application also stores each edit a user makes allowing them to undo their actions.
(a) Draw a representation of a linked list tree using suitable example values. [2]
(b) Explain why inserting slides in a linked list is more effective than using an array. [3]
(c) Other than an array or linked list, select an appropriate data structure to store edits
made to a slide and explain how this data structure operates. [4]
9. Giving examples, explain the term data compression and describe how data compression
algorithms are used. [6]
10. Write an Insertion Sort algorithm in pseudo-code that will sort the contents of a one-
dimensional string array (myArray) into ascending order. [9]
11. Describe the processes carried out during the lexical, syntax and semantic analysis stages of
compilation. [6]
12. Discuss the possible effects of computers on the nature of employment in the computing
industry and wider society.
You should draw on your knowledge, skills and understanding from a number of areas across
your computer science course when answering this question. [12]
END OF PAPER
BLANK PAGE
BLANK PAGE