All papers

Computer Science · AQA 8525 · Paper 1: Computational thinking and programming skills · June 2023

AQA GCSE Computer Science Paper 1: Computational thinking and programming skills June 2023 question paper 8525/1

2h 90 marks

AQA 8525 · Paper 1

16 questions
Report a problem
What is wrong?

Goes to whoever maintains the question split. No account needed and nothing is published on this page.

Question 1

Figure for question 1

Define the term algorithm.

[2 marks]

Answer
Mark scheme for question 1.1
Figure for question 1

[1 mark]

Answer
Mark scheme for question 1.2

What is the result of concatenating the contents of the variables city and landmark in Figure 1 ?

Shade one lozenge.

Question 1, shown as an image
Question 1, shown as an image
Question 1, shown as an image
Question 1, shown as an image

[1 mark]

Answer
Mark scheme for question 1.3
Figure for question 1

[1 mark]

Answer
Mark scheme for question 1.4
Figure for question 1

[1 mark]

Answer
Mark scheme for question 1.5

Question 2

Figure for question 2

Where is iteration first used in the algorithm in Figure 2 ?

Shade one lozenge.

Question 2, shown as an image
Question 2, shown as an image
Question 2, shown as an image
Question 2, shown as an image

[1 mark]

Answer
Mark scheme for question 2.1

In the algorithm in Figure 2, what will be output when the user input is 10 ?

Shade one lozenge.

Question 2, shown as an image
Question 2, shown as an image
Question 2, shown as an image
Question 2, shown as an image

[1 mark]

Answer
Mark scheme for question 2.2

In the algorithm in Figure 2, what is the largest possible value of the variable counter when the user input is 36 ?

Shade one lozenge.

Question 2, shown as an image
Question 2, shown as an image
Question 2, shown as an image

[1 mark]

Answer
Mark scheme for question 2.3

Question 3

Explain one advantage of the structured approach to programming.

[2 marks]

Answer
Mark scheme for question 3

Question 4

Figure for question 4
Question 4, shown as an image
numOnenumTwonumThreeFinal output
56–1
1040
3510

[3 marks]

Answer
Mark scheme for question 4.1

Describe one way that the program in Figure 3 could be made more robust.

[1 mark]

Answer
Mark scheme for question 4.2

Question 5

Figure 4 shows an algorithm presented as a flowchart.

Figure for question 5

Complete the trace table for the algorithm in Figure 4.

You may not need to use all the rows in the table.

Figure for question 5

[3 marks]

Answer
Mark scheme for question 5

Question 6

Figure for question 6 Figure for question 6 Figure for question 6 Figure for question 6 Figure for question 6

[4 marks]

Answer
Mark scheme for question 6

Question 7

A theme park charges £15 per person for a daily ticket. If there are six or more people in a group, the group is given a £5 discount.

Write a C# program to calculate the total charge for a group of people visiting the theme park.

The program must:

• get the user to enter the number of people in a group

• calculate the total charge by: o charging £15 per person o reducing the total charge by £5 if there are six or more people

• output the total charge.

You should use meaningful variable name(s) and C# syntax in your answer.

The answer grid below contains vertical lines to help you indent your code.

Figure for question 7

[6 marks]

Answer
Mark scheme for question 7

Question 8

Figure 7 shows a merge sort being carried out on a list.

Figure for question 8

Explain how the merge sort algorithm works.

[4 marks]

Answer
Mark scheme for question 8

Question 9

Figure for question 9

How many different values can the field beingShown have?

Shade one lozenge.

Question 9, shown as an image
Question 9, shown as an image
Question 9, shown as an image

[1 mark]

Answer
Mark scheme for question 9.1

Which assignment statement changes the year the film Hulk was made to 2003?

Shade one lozenge.

Question 9, shown as an image
Question 9, shown as an image
Question 9, shown as an image
Question 9, shown as an image

[1 mark]

Answer
Mark scheme for question 9.2

What should the label in Figure 8 be replaced by?

Shade one lozenge.

Question 9, shown as an image
Question 9, shown as an image
Question 9, shown as an image
Question 9, shown as an image

[1 mark]

Answer
Mark scheme for question 9.3

Write a pseudo-code statement that updates the antMan record to show that the film is currently being shown at the cinema.

[1 mark]

Answer
Mark scheme for question 9.4

Question 10

Figure 9 shows an algorithm, represented in pseudo-code, used to display students’ test scores. The algorithm does not work as expected and the teacher wants to find the error.

The algorithm should display three test scores for each student:

• Natalie has results of 78, 81 and 72

• Alex has results of 27, 51 and 54

• Roshana has results of 52, 55 and 59.

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

Figure 9

Question 10, shown as an image

Complete the trace table for the algorithm shown in Figure 9.

You may not need to use all the rows in the table.

Figure for question 10

[5 marks]

Answer
Mark scheme for question 10.1

How could the error in the algorithm in Figure 9 be corrected?

Shade one lozenge.

Question 10, shown as an image
Question 10, shown as an image
Question 10, shown as an image
Question 10, shown as an image

[1 mark]

Answer
Mark scheme for question 10.2

Question 11

Figure for question 11

Table 1 shows three tests used to check the algorithm in Figure 10.

Complete the table to show what the values of the validChoice and difference variables would be for the given test data.

Figure for question 11

[4 marks]

Answer
Mark scheme for question 11.1

The algorithm in Figure 10 contains a logic error on line 11.

Describe how the error on line 11 can be corrected.

[1 mark]

Answer
Mark scheme for question 11.2

Question 12

Figure for question 12

[4 marks]

Answer
Mark scheme for question 12.1

Figure 12 shows a line of C# code that creates an array of fruit names.

Figure 12

string[] fruits = {"banana", "apple", "orange", "pear", "grape", "pineapple"};

Extend the program in Figure 12. Your answer must be written in C#.

The program should get the user to enter a word and perform a linear search on the array fruits to find if the word is in the array or not.

The program should:

• ask the user what word they would like to find

• output the message True if the word is found

• output the message False if the word is not found.

You must write your own linear search routine and not use any built-in search function available in C#.

You should use meaningful variable name(s) and C# syntax in your answer.

The answer grid below contains vertical lines to help you indent your code.

Figure for question 12 Figure for question 12

[7 marks]

Answer
Mark scheme for question 12.2

State why a binary search cannot be used on the array fruits

[1 mark]

Answer
Mark scheme for question 12.3

Figure 13 shows an algorithm, represented using pseudo-code, that should display currency names in reverse alphabetical order, starting with yen.

There are errors in the logic of the algorithm.

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

Figure 13

Question 12, shown as an image

Rewrite line 1 and line 6 from Figure 13 to make the algorithm work as intended.

Line 1

Line 6

[3 marks]

Answer
Mark scheme for question 12.4

Question 13

Figure for question 13 Figure for question 13

[6 marks]

Answer
Mark scheme for question 13

Question 14

Figure for question 14 Figure for question 14 Figure for question 14 Figure for question 14

[3 marks]

Answer
Mark scheme for question 14

Question 15

A group of people have a meal in a restaurant. Instead of one person paying for the whole meal, each person will pay for what they eat.

Write a C# program that asks each person in the group how much they are paying towards the meal and works out when the bill is fully paid. Each person can pay a different amount.

The program should:

• get the user to enter the total amount of the bill

• get a person to enter how much they are paying towards the bill

• subtract the amount entered from the bill: o if the amount left to pay is more than 0, output how much is left to pay and repeat until the amount left to pay is 0 or less o if the amount left to pay is 0, then output the message Bill paid o if the amount left to pay is less than 0, then output the message Tip is and the difference between the amount left to pay and 0

You should use meaningful variable name(s) and C# syntax in your answer.

The answer grid below contains vertical lines to help you indent your code.

Figure for question 15

[8 marks]

Answer
Mark scheme for question 15

Question 16

Figure for question 16 Figure for question 16

[11 marks]

Answer
Mark scheme for question 16

The paper as printed

June 2023 QP - Paper 1A AQA Computer Science GCSE

June 2023 QP - Paper 1B AQA Computer Science GCSE

June 2023 QP - Paper 1C AQA Computer Science GCSE

Spotted a mistake on this page?Report a problem