





















































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
2024 AQA GCSE COMPUTER SCIENCE 8525/1B Paper 1 Computational thinking and programming skills – Python Verified Question Paper with Marking Scheme Combined. June 2024 Materials • There are no additional materials required for this paper. • You must not use a calculator. Instructions • Use black ink or black ball-point pen. Use pencil only for drawing. • Answer all questions. • You must answer the questions in the spaces provided. • If you need extra space for your answer(s), use the lined pages at the end of this book. Write the question number against your answer(s). • Do all rough work in this book. Cross through any work you do not want to be marked. • Questions that require a coded solution must be answered in Python. • You should assume that all indexing in code starts at 0 unless stated otherwise. Information The total number of marks available for this paper is 90. Advice For Examiner’s Use Question Mark 1 2–3 4–5 6–7 8–9 10–11 12 13–14 15 T
Typology: Exams
1 / 93
This page cannot be seen from the preview
Don't miss anything!
For the multiple-choice questions, completely fill in the lozenge alongside the appropriate answer.
CORRECT METHOD WRONG METHODS
If you want to change your answer you must cross out your original answer as shown.
If you wish to return to an answer previously crossed out, ring the answer you now wish to select as
shown.
Materials
Instructions
book. Write the question number against your answer(s).
marked.
Information
The total number of marks available for this paper is 90.
Advice
For Examiner’s Use
Question Mark
1
2 – 3
4 – 5
6 – 7
8 – 9
10 – 11
12
13 – 14
15
TOTAL
Do not write
outside the
Answer all questions.
box
Figure 1 shows an algorithm, represented using pseudo-code.
The algorithm assigns different values to two variables, then asks the user to input a
letter.
Figure 1
Shade one lozenge.
[1 mark]
string.
For example:
variables used in the algorithm in Figure 1.
Complete the pseudo-code statement to find the position of the first occurrence of the
[1 mark]
Do not write
outside the Turn over ►
Do not write
outside the
. 5 Write a Python program that: - gets the user to enter the name of a film - displays You enteredfollowed by the name of the film entered by the user.
The output from the program must be on one line.
You should use indentation as appropriate, meaningful variable name(s) and Python
syntax in your answer.
box
The answer grid below contains vertical lines to help you indent your code
accurately.
[2 marks]
Do not write
outside the
Turn over ►
Do not write
outside the
Figure 2 shows an algorithm, represented using pseudo-code.
Figure 2
The modulus operator is used to calculate the remainder after dividing one integer by
another.
For example:
box
. Where is a relational operator first used in the algorithm in Figure 2? Shade
one lozenge.
[1 mark]
A Line number 1
B Line number 2
C Line number 3
D Line number 6
Do not write
outside the Turn over ►
Do not write
outside the
Figure 3 shows an incomplete Python program for a number guessing game.
Figure 3
box
The program should generate a random number between 1 and 100 (including 1 and
100). This will be the number the user has to guess.
Write the Python code that should be used on line 2 in Figure 3 to:
[2 marks]
Do not write
outside the
[1 mark]
box
State the name for the process of breaking a problem down into sub-problems.
[1 mark]
Define the term abstraction.
Do not write
outside the
Figure 4 shows an algorithm, represented using pseudo-code.
The algorithm calculates the total cost of hiring a hotel for a wedding.
Figure 4
Complete the table below using the algorithm in Figure 4.
[3 marks]
box
Turn over ►
Input value for
Input value for
Output
Do not write
outside the
Turn over for the next question
box
Turn over ►
Do not write
outside the
box
A shop owner wants to create stock codes for each type of sweet they sell.
Figure 5 shows some of the sweets.
Figure 5
A stock code is made up of the:
For example:
Write a Python program to create the stock code for a sweet.
The program should:
You should use indentation as appropriate, meaningful variable name(s) and Python
syntax in your answer.
The answer grid below contains vertical lines to help you indent your code.
[4 marks]
Do not write
outside the
Figure 6 shows an algorithm, represented using pseudo-code.
Figure 6
Complete the trace table for the algorithm in Figure 6.
Part of the table has already been filled in.
You may not need to use all the rows in the table.
[6 marks]
box
Do not write
outside the
Which of the following best describes a data structure?
Shade one lozenge.
[1 mark]
box
A A number with a fractional part
B A value such as a whole number
C All of the data used and stored within a program
D An organised collection of values
Question 9 continues on the next page
Turn over ►