Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

2024 AQA GCSE COMPUTER SCIENCE 8525/1B Paper 1 Computational thinking and programming ski, Exams of Computer Science

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

2024/2025

Available from 05/02/2025

ann-mayes
ann-mayes 🇺🇸

4.5

(2)

247 documents

1 / 93

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
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.
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
23
45
67
89
1011
12
1314
15
TOTAL
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b
pf5c
pf5d

Partial preview of the text

Download 2024 AQA GCSE COMPUTER SCIENCE 8525/1B Paper 1 Computational thinking and programming ski and more Exams Computer Science in PDF only on Docsity!

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.

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

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

film "Godzilla vs. Kong"

year 2021

OUTPUT "Please guess a letter"

letter USERINPUT

Which pseudo-code statement assigns the length of the string filmto a variable called value?

Shade one lozenge.

[1 mark]

A

film LEN(value)

B film film + value

C value film

D value LEN(film)

The POSITIONsubroutine returns the position of the first occurrence of a character in a

string.

For example:

  • POSITION("Godzilla vs. Kong", "o")would return 1
  • POSITION("Godzilla vs. Kong", "z")would return 3 letterand filmare

variables used in the algorithm in Figure 1.

Complete the pseudo-code statement to find the position of the first occurrence of the

contents of letterin filmand store this position in the variable location

You must use the POSITIONsubroutine in your answer.

[1 mark]

location

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.

  • Line numbers are included but are not part of the algorithm.

Figure 2

1 num USERINPUT

2 IF NOT(num > 1) OR num > 20 THEN

3 OUTPUT "False"

4 ELSEIF num > 1 AND num < 15 THEN

5 OUTPUT "Almost"

6 ELSEIF num MOD 5 = 0 THEN

7 OUTPUT "True"

8 ELSE

9 OUTPUT "Unknown"

10 ENDIF

The modulus operator is used to calculate the remainder after dividing one integer by

another.

For example:

  • 14 MOD 3 evaluates to 2
  • 24 MOD 5 evaluates to 4

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.

  • Line numbers are included but are not part of the program.

Figure 3

box

1 import random

3 print("Enter a number")

4 userNumber = int(input())

5 while userNumber < 1 or userNumber > 100:

6 print("Invalid number")

7 userNumber = int(input())

8 print("Valid number entered")

9 if randomNumber == userNumber:

10 print("Number guessed correctly")

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:

  • generate a random number between 1 and 100 inclusive
  • assign this number to the appropriate variable from the program.

You must use random.randrange(a, b) in your Python code.

random.randrange(a, b) generates a random integer in the range a to b

starting at a but finishing one before b

[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

numberOfGuests  USERINPUT

numberOfRooms  USERINPUT

charge  25

IF numberOfGuests > 50 THEN

totalCost  numberOfGuests * 2

ELSE

IF numberOfGuests ≥ 25 THEN

totalCost  numberOfGuests * 4

ELSE

totalCost  numberOfGuests * 5

ENDIF

ENDIF

totalCost  totalCost + (numberOfRooms * 100)

IF totalCost < 1400 THEN

totalCost  totalCost + charge

ENDIF

OUTPUT totalCost

Complete the table below using the algorithm in Figure 4.

[3 marks]

box

Turn over ►

Input value for

numberOfGuests

Input value for

numberOfRooms

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

sweetID sweetName brand

S1 WINE GUMS MAYNARDS

S2 COLA CUBES BERRYMANS

S3 STARBURST WRIGLEY

A stock code is made up of the:

  • sweetID
  • first letter and the second letter in sweetName
  • first letter of the brand

For example:

  • the stock code for WINE GUMS would be S1WIM
  • the stock code for STARBURST would be S3STW

Write a Python program to create the stock code for a sweet.

The program should:

  • get the user to enter the sweetID, sweetName and brand
  • create the stock code
  • assign the stock code to a variable called code

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

days  [10, 15, 4]

sales  [20, 33, 12]

weeks  [0, 0, 0]

FOR i  0 TO 2

daysTotal  days[i] + sales[i]

weeks[i]  daysTotal DIV 7

ENDFOR

weeksTotal  weeks[0] + weeks[1] + weeks[2]

OUTPUT weeksTotal

The DIV operator is used for integer division.

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

i daysTotal

weeks

weeksTotal

[0] [1] [2]

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 ►