Docsity

AQA A - LEVEL COMPUTER SCIENCE PAPER 2023, Exams of Computer Science

Toggle sidebar
bg1
A-level
COMPUTER SCIENCE
Paper 1
Additional Questions
IMPORTANT NOTES
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.
7517A/B/C/D/E
Specimen material
pf3
pf4
pf5
pf8
pf9

Partial preview of the text

Download AQA A - LEVEL COMPUTER SCIENCE PAPER 2023 and more Exams Computer Science in PDF only on Docsity!

A-level

COMPUTER SCIENCE

Paper 1

Additional Questions

IMPORTANT NOTES

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.

7517A/B/C/D/E

Specimen material

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]

0 1.^2

The Len function takes a list and returns the number of items that are in the list. For

example, if Names is the list ["Gemma", "Richard", "Georgina",

"Margaret"] then the function call Len(Names) will return the value of 4.

The Append function takes an item and a list and returns a list that has all the items from the

original list followed by the item. For example, if Names is the list ["Gemma",

"Richard", "Georgina", "Margaret"] then the function call Append("Matt",

Names) will return the list ["Gemma", "Richard", "Georgina", "Margaret",

"Matt"].

The first item in the list has an index of 1.

What is meant by a recursive subroutine? [1 mark]

What is the base case for the subroutine MergeSort?

[1 mark]

Complete Table 1 to show the result of tracing the MergeSort algorithm shown in

Figure 1 with the function call MergeSort(ListToSort, 1, 5).

ListToSort is the list [6, 3, 4, 8, 5]. The first six rows and the Call

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]

0 2.^1

0 2.^2

What is the time complexity for the MergeSort algorithm shown in Figure 1?

[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]

When the subroutine call MergeSort(ListToSort, 1, 5)is made four is the

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

stack when the subroutine call MergeSort(ListToSort, 1, 5)is made.

[2 marks]

Turn over for the next question

0 2.^4

0 2.^6

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]

0 4.^2

0 4.^3

0 4.^5

0 5.^3

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

that has been used is Catalogue Number MOD 100.

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]