AQA-7517-1-COMPUTER SCIENCE QUESTION PAPER 1-A LEVEL-10Jun2024.
8 views 0 purchase
Module
COMPUTER SCIENCE
Institution
COMPUTER SCIENCE
AQA-7517-1-COMPUTER SCIENCE QUESTION PAPER 1-A LEVEL-10Jun2024.
0 1 State three advantages of using subroutines.
For each advantage, you must explain how the advantage is achieved.
[3 marks]
0 2 Circular queues and linear queues are examples of data structures that can be
implemented using ...
E
Monday 10 June 2024 Afternoon Time allowed: 2 hours 30 minutes
C
Materials
For this paper you must have:
N
• a computer
• a printer
IE
• appropriate software
• the Electronic Answer Document
• an electronic version and a hard copy of the Skeleton Program
SC
• an electronic version and a hard copy of the Preliminary Material
• an electronic version of the Data files puzzle1.txt, puzzle2.txt, puzzle3.txt and puzzle4.txt.
You must not use a calculator.
R
Instructions
• Type the information required on the front of your Electronic Answer Document.
TE
• Before the start of the examination make sure your Centre Number, Candidate Name and
Candidate Number are shown clearly in the footer of every page (also at the top of the front
cover) of your Electronic Answer Document.
• Enter your answers into the Electronic Answer Document.
PU
• Answer all questions.
• Save your work at regular intervals.
Information
M
• The marks for questions are shown in brackets.
• The maximum mark for this paper is 100.
O
• No extra time is allowed for printing and collating.
• The question paper is divided into four sections.
C
Advice
You are advised to allocate time to each section as follows:
Section A – 40 minutes; Section B – 20 minutes; Section C – 20 minutes; Section D – 70 minutes.
At the end of the examination
Tie together all your printed Electronic Answer Document pages and hand them to the Invigilator.
Warning
It may not be possible to issue a result for this paper if your details are not on every page of your
Electronic Answer Document.
IB/G/Jun24/G4001/E12 7517/1
Page 1 of 24
,000002
2
Section A
You are advised to spend no longer than 40 minutes on this section.
Enter your answers for Section A in your Electronic Answer Document.
You must save this document at regular intervals.
0 1 State three advantages of using subroutines.
For each advantage, you must explain how the advantage is achieved.
[3 marks]
E
C
0 2 Circular queues and linear queues are examples of data structures that can be
implemented using a fixed-length array.
N
IE
0 2 . 1 Explain why, when implemented using a fixed-length array, a circular queue is usually
considered to be a better choice of data structure than a linear queue.
SC [2 marks]
0 2 . 2 Describe the steps that must be completed to remove (dequeue) an item from a
circular queue that has been implemented using a fixed-length array.
R
[5 marks]
TE
0 3
PU
0 3 . 1 Describe the Halting problem.
[2 marks]
M
0 3 . 2 Explain the importance of the Halting problem.
O
[1 mark]
C
IB/G/Jun24/7517/1
Page 2 of 24
, 000003
3
0 4 Figure 1 shows four sets R, S, T and U. Three dots (…) means the remaining
members of the set follow the same pattern as the previous members of the set.
Figure 1
R = {a, b}
S = {a, abb, abbbb, abbbbbb, …}
T = {bb, bbbb, bbbbbb, …}
U = {c, d, bb, b}
0 4 . 1 What is meant by the cardinality of a set?
E
[1 mark]
C
N
0 4 . 2 Explain what is wrong with the statement:
IE
‘The only subsets of R are the sets {a}, {b} and {a, b}’.
[1 mark]
SC
0 4 . 3 How many members are there in the set formed by the intersection of R and U?
[1 mark]
R
0 4 . 4 The language defined by a regular expression can be represented as a set.
TE
Explain the functionality of the | (vertical bar) metacharacter when it is used in a
regular expression.
[1 mark]
PU
The members of the set V are strings that match the regular expression a?b+
M
Set W is formed by the union of sets S and T.
O
Set X is formed by the set operation V – W.
C
0 4 . 5 Write a regular expression that would match with all the members of the set W.
[2 marks]
0 4 . 6 Write a regular expression that would match with all the members of the set X.
[2 marks]
Turn over ►
IB/G/Jun24/7517/1
Page 3 of 24
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller revisionmaster111. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for £11.41. You're not tied to anything after your purchase.