





Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






These questions focus primarily on topics that were not covered by the AQA AS and A-level Computing specifications, introduced in 2009. It is hoped that teachers will find questions on these new topics to be particularly useful.
Many example questions on topics that are common to the new and old specifications can be found on past papers for COMP1, 2 and 3 on our website. Past papers that are more than three years old can be accessed via e-AQA.
This document contains additional questions; it is not intended to be treated as a complete paper. The questions do not provide balance coverage of the specification or the assessment objectives in the same way that a fully live paper would do.
0 1 Table 1^ contains a list of problems.
Table 1
Letter Problem A (^) Finding the shortest route that visits all nodes in a graph exactly once B Finding the shortest path between two nodes in a graph C Finding an item in a large unordered list D Finding a route between two nodes in a graph E Finding out if any program will eventually stop if given a particular input
State the letter ( A-E ) that corresponds to the problem that Dijksta’s Algorithm is designed to solve.
Write the letter corresponding to the correct answer in the box provided in your Electronic Answer Document. [1 mark]
State the letter ( A-E ) that corresponds to an intractable problem.
Write the letter corresponding to the correct answer in the box provided in your Electronic Answer Document. [1 mark]
Explain the significance of problem E for computation. [1 mark]
The first item in the list has an index of 1.
What is meant by a recursive subroutine? [1 mark]
[1 mark]
number column have been completed for you.
Copy your answer in Table 1 into the Electronic Answer Document.
Table 1
Call number S E M List returned 1 1 5 3 2 1 3 2 3 1 2 1 4 1 1 [6] 3 1 2 1 5 2 2 [3] 3 2 6 2 1 7 8 7 9 7 1
[6 marks]
[1 mark]
A stack frame is used with subroutine calls.
State two items that will be stored in a stack frame for a subroutine call. [2 marks]
largest number of stack frames, generated by this subroutine call, that will be on the stack at any one time.
Explain why there will be three occasions when there will be four stack frames on the
[2 marks]
Turn over for the next question
Figure 3 contains a list of different sets.
Figure 3
S1 = {a, b} S2 = {a, b, c} S3 = {0, 1, 2} S4 = {a, ab} S5 = {a, b, c} S6 = {c}
What is a set? [2 marks]
State the name of a set listed in Figure 3 that has the same cardinality as set S2. [1 mark]
State the name of a set listed in Figure 3 that is a subset of set S2 but not a proper subset of S2. [1 mark]
Describe how set S6 could be created using the difference set operation together with two of the other sets listed in Figure 3. [1 mark]
What is the Cartesian product of sets S1 and S6? [1 mark]
A regular expression is a way of describing a set.
Write down two different regular expressions that describe the set S4. [2 marks]
A designer jewellery company have a scheme where people can pay a fee to borrow one or more items of jewellery for a week. This scheme is often used by actors and musicians attending awards ceremonies and parties.
A computer program running on the jewellery company’s server uses a dictionary to store details about who is currently borrowing which item of jewellery. A dictionary is a data structure that contains a collection of key-value pairs where the value is accessed via the associated key. The key used in the dictionary is the catalogue number of the item of jewellery and the key is the name of the client.
The current state of the dictionary is shown in Figure 4.
Figure 4
{1045 : 'Clark Gable', 1050 : 'Ingrid Bergman', 1052 : 'Katherine Hepburn', 2012 : 'Lauren Bacall'}
What value will be returned by a lookup operation using the key 1052? [1 mark]
A hash table has been used to implement the dictionary. The hashing algorithm
What value is returned by the hashing function when it is applied to the catalogue number 1052? [1 mark]
Explain how a value is stored in a hash table. [4 marks]