Computer Science · June 2023 · Mark scheme · Paper 1 Computational thinking and programming skills
AQA GCSE Computer Science mark scheme for Paper 1 Computational thinking and programming skills, June 2023 — 8525, file AQA-8525-Paper-1-Computational-thinking-and-programming-skills-MS-JUN23.pdf.
Text of this paper
GCSE
COMPUTER SCIENCE
8525/1A, 8525/1B, 8525/1C
Paper 1 Computational thinking and programming skills
Mark scheme
June 2023
Version: Final 1.0
*236G8525/1/MS*
MARK SCHEME – GCSE COMPUTER SCIENCE – 8525/1 – JUNE 2023
Mark schemes are prepared by the Lead Assessment Writer and considered, together with the relevant
questions, by a panel of subject teachers. This mark scheme includes any amendments made at the
standardisation events which all associates participate in and is the scheme which was used by them in
this examination. The standardisation process ensures that the mark scheme covers the students’
responses to questions and that every associate understands and applies it in the same correct way.
As preparation for standardisation each associate analyses a number of students’ scripts. Alternative
answers not already covered by the mark scheme are discussed and legislated for. If, after the
standardisation process, associates encounter unusual answers which have not been raised they are
required to refer these to the Lead Examiner.
It must be stressed that a mark scheme is a working document, in many cases further developed and
expanded on the basis of students’ reactions to a particular paper. Assumptions about future mark
schemes on the basis of one year’s document should be avoided; whilst the guiding principles of
assessment remain constant, details will change, depending on the content of a particular examination
paper.
Further copies of this mark scheme are available from aqa.org.uk
The following annotation is used in the mark scheme:
;
- means a single mark
//
- means alternative response
/
- means an alternative word or sub-phrase
A
- means acceptable creditworthy answer. Also used to denote a valid answer that goes beyond
the expectations of the GCSE syllabus.
R
- means reject answer as not creditworthy
NE - means not enough
I
- means ignore
DPT - in some questions a specific error made by a candidate, if repeated, could result in the
candidate failing to gain more than one mark. The DPT label indicates that this mistake should
only result in a candidate losing one mark on the first occasion that the error is made. Provided
that the answer remains understandable, subsequent marks should be awarded as if the error
was not being repeated.
Copyright information
AQA retains the copyright on all its publications. However, registered schools/colleges for AQA are permitted to copy material from this booklet for their own internal use,
with the following important exception: AQA cannot give permission to schools/colleges to photocopy any material that is acknowledged to a third party even for internal use
within the centre.
Copyright © 2023 AQA and its licensors. All rights reserved.
2
MARK SCHEME – GCSE COMPUTER SCIENCE – 8525/1 – JUNE 2023
Note to Examiners
In the real world minor syntax errors are often identified and flagged by the development environment.
To reflect this, all responses in a high-level programming language will assess a candidate’s ability to
create an answer using precise programming commands/instructions but will avoid penalising them for
minor errors in syntax.
When marking program code, examiners must take account of the different rules between the languages
and only consider how the syntax affects the logic flow of the program. If the syntax is not perfect but
the logic flow is unaffected then the response should not be penalised.
The case of all program code written by students is to be ignored for the purposes of marking. This is
because it is not always clear which case has been used depending on the style and quality of
handwriting used.
Examiners must ensure they follow the mark scheme instructions exactly. If an examiner is unsure as to
whether a given response is worthy of the marks they must escalate the question to their team leader.
Level of response marking instructions
Level of response mark schemes are broken down into levels, each of which has a descriptor. The
descriptor for the level shows the average performance for the level. There are marks in each level.
Before you apply the mark scheme to a student’s answer read through the answer and annotate it (as
instructed) to show the qualities that are being looked for. You can then apply the mark scheme.
Step 1 Determine a level
Start at the lowest level of the mark scheme and use it as a ladder to see whether the answer meets the
descriptor for that level. The descriptor for the level indicates the different qualities that might be seen in
the student’s answer for that level. If it meets the lowest level then go to the next one and decide if it
meets this level, and so on, until you have a match between the level descriptor and the answer. With
practice and familiarity you will find that for better answers you will be able to quickly skip through the
lower levels of the mark scheme.
When assigning a level you should look at the overall quality of the answer and not look to pick holes in
small and specific parts of the answer where the student has not performed quite as well as the rest. If
the answer covers different aspects of different levels of the mark scheme you should use a best fit
approach for defining the level and then use the variability of the response to help decide the mark within
the level, ie if the response is predominantly level 3 with a small amount of level 4 material it would be
placed in level 3 but be awarded a mark near the top of the level because of the level 4 content.
Step 2 Determine a mark
Once you have assigned a level you need to decide on the mark. The descriptors on how to allocate
marks can help with this. The exemplar materials used during standardisation will help. There will be an
answer in the standardising materials which will correspond with each level of the mark scheme. This
answer will have been awarded a mark by the Lead Examiner. You can compare the student’s answer
3
MARK SCHEME – GCSE COMPUTER SCIENCE – 8525/1 – JUNE 2023
with the example to determine if it is the same standard, better or worse than the example. You can then
use this to allocate a mark for the answer based on the Lead Examiner’s mark on the example.
You may well need to read back through the answer as you apply the mark scheme to clarify points and
assure yourself that the level and the mark are appropriate.
Indicative content in the mark scheme is provided as a guide for examiners. It is not intended to be
exhaustive and you must credit other valid points. Students do not have to cover all of the points
mentioned in the Indicative content to reach the highest level of the mark scheme.
An answer which contains nothing of relevance to the question must be awarded no marks.
4
MARK SCHEME – GCSE COMPUTER SCIENCE – 8525/1 – JUNE 2023
Question
Part
01
1
Marking guidance
2 marks for AO1 (recall)
Total
marks
2
A sequence / series of steps / instructions;
(that can be followed) to complete a task / to solve a problem;
A. set of instructions / steps
Question
Part
01
2
Marking guidance
Mark is for AO2 (apply)
C
Total
marks
1
10;
R. if more than one lozenge shaded
Question
Part
01
3
Marking guidance
Mark is for AO2 (apply)
D
Total
marks
1
San FranciscoAlcatraz Island;
R. if more than one lozenge shaded
Question
Part
01
4
Marking guidance
Mark is for AO2 (apply)
D
Total
marks
1
traz;
R. if more than one lozenge shaded
Question
Part
01
5
Marking guidance
Mark is for AO2 (apply)
C
Total
marks
1
4;
R. if more than one lozenge shaded
5
MARK SCHEME – GCSE COMPUTER SCIENCE – 8525/1 – JUNE 2023
Question
Part
02
1
Marking guidance
Mark is for AO2 (apply)
A
Total
marks
1
Line number 2;
R. if more than one lozenge shaded
Question
Part
02
2
Marking guidance
Mark is for AO2 (apply)
A
Total
marks
1
0;
R. if more than one lozenge shaded
Question
Part
02
3
Marking guidance
Mark is for AO2 (apply)
C
Total
marks
1
4;
R. if more than one lozenge shaded
Question
03
Part
Marking guidance
2 marks for AO1 (understanding)
1 mark for the advantage, 1 mark for the expansion point.
Maximum of 2 marks from:
● Structured programs are easier to read / understand / modify; as they
use logical structures // because the code is split into smaller
subroutines / chunks / modules / sections;
● Easier to test / debug a program; that is divided into smaller
subroutines / chunks / modules / sections;
● Subroutines can be reused; which reduces development time;
● Structured programs are easier to maintain; as they use clear
well-documented interfaces // local variables / parameters / return
values // as each subroutine is relatively independent of the other;
● Easier to divide projects up between teams; as code is split into
subroutines / chunks / modules / sections;
Note to examiners: both mark points can be taken from different
bullets, so long as the explanation is relevant to the advantage
eg: Structured programs are easier to understand. This makes it easier
to divide projects between teams (2 marks).
Maximum 1 mark if the explanation is not relevant to the stated
advantage.
Maximum 1 mark if there are two advantages but no explanation of
either.
6
Total
marks
2
MARK SCHEME – GCSE COMPUTER SCIENCE – 8525/1 – JUNE 2023
Question
Part
04
1
Total
marks
3
Marking guidance
3 marks for AO2 (apply)
Maximum 2 marks if Output shows numbers or text only with no other
errors OR fully correct but contains additional characters.
Maximum 1 mark if Output shows numbers or text only or is
inconsistent AND there is at least one error, even if additional
characters present.
First user
input
Second user
input
Third user
input
Output
5
6
–1
Area 30
10
4
0
Volume 0
3
5
10
Volume 150
I. quotation marks in the Output column
Question
Part
04
2
Marking guidance
Mark is for AO2 (apply)
Total
marks
1
Maximum of 1 mark from:
● Add validation; A. by example eg check width/length are positive
numbers // check height is –1 or a positive number;
● Change data types used in the question to float / single / double /
decimal / real for inputs;
7
MARK SCHEME – GCSE COMPUTER SCIENCE – 8525/1 – JUNE 2023
Question
Part
05
Total
marks
3
Marking guidance
3 marks for AO2 (apply)
a
b
c
0
1
1
1
1
2
1
2
3
2
3
5
1 mark for correct first row;
1 mark for correct second row;
1 mark for correct third and fourth rows;
Maximum 2 marks if any errors
I. different rows used as long as the order within columns is clear
I. duplicate values on consecutive rows within a column
Note to examiners: Check vertically as well as horizontally for the
effect of duplicate values.
Question
06
Part
Marking guidance
4 marks for AO3 (design)
1 mark for each correct answer
USERINPUT
username
''
R. ""
User not found
I. case / spelling mistakes so long as it is clear which option from
Figure 6 has been selected.
Note to Examiners: If the student has re-written the entire line and
added in the correct missing item, award the mark.
8
Total
marks
4
MARK SCHEME – GCSE COMPUTER SCIENCE – 8525/1 – JUNE 2023
Question
07
Part
Marking guidance
2 marks for AO3 (design), 4 marks for AO3 (program)
Total
marks
6
Program Design
Note that AO3 (design) marks are for selecting appropriate techniques
to use to solve the problem, so should be credited whether the syntax of
programming language statements is correct or not and regardless of
whether the solution works.
Mark A for inputting the number in the group and storing in a variable;
Mark B for using selection;
Program Logic
Mark C for correctly multiplying the number in the group by 15;
Mark D for using an appropriate correct Boolean condition(s) that covers
all paths through the problem, eg >=6 // >5 or equivalent;
Mark E for using an appropriate method to reduce the total charge by
£5;
Mark F for outputting the final total in a logical place;
Maximum 5 marks if any errors in code.
I. Case
I. Messages or no messages with input statements
I. Gaps/spaces throughout the code, except where to do so would
explicitly alter the logic of the code in a way that makes it incorrect.
C# Example 1 (fully correct)
All design marks are achieved (Marks A and B)
int group = Convert.ToInt32(Console.ReadLine());
int total = group * 15;
if (group >= 6) {
total = total - 5;
}
Console.WriteLine(total);
(C)
(D)
(E)
(F)
I. Indentation in C#
A. Write in place of WriteLine
Python Example 1 (fully correct)
All design marks are achieved (Marks A and B)
group = int(input())
total = group * 15
if group >= 6:
total = total - 5
print(total)
(C)
(D)
(E)
(F)
9
MARK SCHEME – GCSE COMPUTER SCIENCE – 8525/1 – JUNE 2023
VB.NET Example 1 (fully correct)
All design marks are achieved (Marks A and B)
Dim group As Integer = Console.ReadLine()
Dim total As Integer = group * 15
If (group >= 6) Then
total = total - 5
End If
Console.WriteLine(total)
(C)
(D)
(E)
(F)
I. Indentation in VB.NET
A. Write in place of WriteLine
Question
08
Part
Marking guidance
4 marks for AO1 (understanding)
Maximum of 4 marks from:
● The list is (repeatedly) divided into sub-lists (half the size / at the
midpoint) until each sub-list is of length 1 (singleton lists) // The list is
divided recursively until each sub-list is of length 1 (singleton lists);
● The algorithm compares / sorts individual elements as pairs;
● (After comparing) the individual items are then (repeatedly) merged
back together into sub-lists // (After comparing) the sub-lists are then
(repeatedly) merged back together;
● (Finally,) one list is produced in the right order (which is the sorted
list);
Note to Examiners: It is perfectly acceptable for the response given to
be based on the contents of Figure 7 rather than a generic explanation.
10
Total
marks
4
MARK SCHEME – GCSE COMPUTER SCIENCE – 8525/1 – JUNE 2023
Question
Part
09
1
Marking guidance
Mark is for AO2 (apply)
A
Total
marks
1
2;
R. if more than one lozenge shaded
Question
Part
09
2
Marking guidance
Mark is for AO2 (apply)
A
Total
marks
1
hulk.year 2003;
R. if more than one lozenge shaded
Question
Part
09
3
Marking guidance
Mark is for AO2 (apply)
C
Total
marks
1
LEN(filmCollection) – 1;
R. if more than one lozenge shaded
Question
Part
09
4
Marking guidance
Mark is for AO2 (apply)
Total
marks
1
antMan.beingShown True
//
filmCollection[0].beingShown True;
A. antMan Film('Ant-Man', '12A', 2015, True) R.
quotation marks around 2015
I. Case
A. = instead of
R. Ant-Man
R. Quotation marks around True
11
MARK SCHEME – GCSE COMPUTER SCIENCE – 8525/1 – JUNE 2023
Question
Part
10
1
Marking guidance
Total
marks
5
5 marks for AO2 (apply)
1 mark for count column correct;
1 mark for column i correct;
1 mark for the first Natalie row, including j and result correct – not
including i and count;
1 mark for the second Natalie row, including j and result correct –
not including i and count;
1 mark for all of Alex and Roshana rows correct as for Natalie above;
count
i
person
j
result
0
0
Natalie
0
78
1
81
0
27
1
51
0
52
1
55
1
2
1
Alex
3
4
2
Roshana
5
6
I. different rows used as long as the order within columns is clear
I. duplicate values on consecutive rows within a column
I. quotes used around letters (person column)
I. minor spelling mistakes in the person column
Question
Part
10
2
Marking guidance
Mark is for AO2 (apply)
C
Change line number 7 to:
R. if more than one lozenge shaded
12
FOR j 0 TO 2
Total
marks
1
MARK SCHEME – GCSE COMPUTER SCIENCE – 8525/1 – JUNE 2023
Question
Part
11
1
Total
marks
4
Marking guidance
4 marks for AO3 (test)
Test type
Normal
Erroneous
Boundary
Test data
startYear
1995
endYear
2010
startYear
2015
endYear
2000
startYear
2000
endYear
2023
validChoice
difference
False
-1
False
-1
True
23
1 mark for Normal validChoice result correct;
1 mark for Normal difference result correct;
1 mark for both Erroneous results correct;
1 mark for both Boundary results correct;
Question
Part
11
2
Marking guidance
Mark is for AO2 (apply)
Total
marks
1
IF startYear ≥ 2000 THEN // change the ‘less than’ symbol to a
‘greater than or equal to’ symbol;
13
MARK SCHEME – GCSE COMPUTER SCIENCE – 8525/1 – JUNE 2023
Question
Part
12
1
Marking guidance
Total
marks
4
4 marks for AO2 (apply)
animalToFind
wolf
validAnimal
False
start
0
finish
7
mid
3
4
5
6
6
7
7
True
1 mark for correct animalToFind, validAnimal and finish
columns and no other values;
1 mark for correct start column and no other values;
1 mark for having 5 as second value in mid column;
1 mark for the rest of mid column being correct and no other values;
Maximum 3 marks if any errors.
I. different rows used as long as the order within columns is clear
I. duplicate values on consecutive rows within a column
14
MARK SCHEME – GCSE COMPUTER SCIENCE – 8525/1 – JUNE 2023
Question
Part
12
2
Marking guidance
3 marks for AO3 (design), 4 marks for AO3 (program)
Total
marks
7
Note to Examiners: As the question asks them to write a routine for the
list fruits, if they have used a series of connected selection
statements rather than an iteration statement they can still gain marks C
and D.
Program Design
Note that AO3 (design) marks are for selecting appropriate techniques
to use to solve the problem, so should be credited whether the syntax of
programming language statements is correct or not and regardless of
whether the solution works.
Mark A for asking the user to input a word and storing the input in a
variable;
Mark B for using iteration;
Mark C for attempting to check each index location within the list/array
fruits;
Program Logic
Mark D for a loop which starts at one end of the list/array fruits and
could correctly iterate through each index to the other end;
Mark E for correctly comparing all 6 fruits against the word to find;
Mark F for code which correctly processes a match;
Mark G for outputting only one of the two messages True and False
depending on the result of the match;
Maximum 5 marks if they have not written their own linear search.
Maximum 6 marks if any errors in code.
I. Case
I. Messages or no messages with input statements
I. Gaps/spaces throughout the code, except where to do so would
explicitly alter the logic of the code in a way that makes it incorrect.
I. any rewritten code that defines fruit
15
MARK SCHEME – GCSE COMPUTER SCIENCE – 8525/1 – JUNE 2023
C# Example 1 (fully correct)
All design marks are achieved (Marks A, B and C)
string[] fruits = { "banana", "apple", "orange",
"pear", "grape", "pineapple" };
string wordToFind = Console.ReadLine();
bool found = false;
int count = 0;
while (found == false && count < fruits.Length)
{
if (fruits[count] == wordToFind)
{
found = true;
}
count += 1;
}
if (found == true)
{
Console.WriteLine("True");
}
else
{
Console.WriteLine("False");
}
(Part of D,
Part of F)
(E)
(F)
(Part of D)
(Part of G)
(Part of G)
I. Indentation in C#
A. Write in place of WriteLine
C# Example 2 (fully correct)
All design marks are achieved (Marks A, B and C)
string[] fruits = { "banana", "apple", "orange",
"pear", "grape", "pineapple" };
string wordToFind = Console.ReadLine();
bool found = false;
foreach (string fruit in fruits)
{
if (fruit == wordToFind)
{
found = true;
break;
}
}
if (found == true)
{
Console.WriteLine("True");
}
else
{
Console.WriteLine("False");
}
I. Indentation in C#
A. Write in place of WriteLine
16
(Part of D)
(E)
(Part of F)
(Part of F)
(Part of F)
(Part of G)
(Part of G)
MARK SCHEME – GCSE COMPUTER SCIENCE – 8525/1 – JUNE 2023
Python Example 1 (fully correct)
All design marks are achieved (Marks A, B and C)
fruits = ["banana", "apple", "orange", "pear",
"grape", "pineapple"]
wordToFind = input()
found = False
count = 0
while found == False and count <= len(fruits) - 1:
if fruits[count] == wordToFind:
found = True
count += 1
if found == True:
print("True")
else:
print("False")
(Part of D,
Part of F)
(E)
(Part of F)
(Part of D)
(Part of G)
(Part of G)
Python Example 2 (fully correct)
All design marks are achieved (Marks A, B and C)
fruits = ["banana", "apple", "orange", "pear",
"grape", "pineapple"]
wordToFind = input()
found = False
for fruit in fruits:
if fruit == wordToFind:
found = True
break
if (found == True):
print("True")
else:
print("False")
(D)
(E)
(Part of F)
(Part of F)
(Part of F)
(Part of G)
(Part of G)
17
MARK SCHEME – GCSE COMPUTER SCIENCE – 8525/1 – JUNE 2023
VB.NET Example 1 (fully correct)
All design marks are achieved (Marks A, B and C)
Dim fruits() As String = {"banana", "apple", "orange",
"pear", "grape", "pineapple"}
Dim wordToFind As String = Console.ReadLine()
Dim found As Boolean = False
Dim count As Integer = 0
While found = False And count <= fruits.GetLength(0) – 1
If fruits(count) = wordToFind Then
found = True
End If
count = count + 1
End While
If found = True Then
Console.WriteLine("True")
Else
Console.WriteLine("False")
End If
(Part of D,
Part of F)
(E)
(Part of F)
(Part of D)
(Part of G)
(Part of G)
I. Indentation in VB.NET
A. Write in place of WriteLine
VB.NET Example 2 (fully correct)
All design marks are achieved (Marks A, B and C)
Dim fruits() As String = {"banana", "apple",
"orange", "pear", "grape", "pineapple"}
Dim wordToFind As String = Console.ReadLine()
Dim found As Boolean = False
For Each fruit in fruits
If fruit = wordToFind Then
found = True
Exit For
End If
Next
If found = True Then
Console.WriteLine("True")
Else
Console.WriteLine("False")
End If
(D)
(E)
(Part of F)
(Part of F)
(Part of D)
(Part of G)
(Part of G)
I. Indentation in VB.NET
A. Write in place of WriteLine
Question
Part
12
3
Marking guidance
Mark is for AO2 (apply)
The list / array fruits is not ordered / sorted;
18
Total
marks
1
MARK SCHEME – GCSE COMPUTER SCIENCE – 8525/1 – JUNE 2023
Question
Part
12
4
Total
marks
3
Marking guidance
3 marks for AO2 (apply)
1 mark for each error corrected.
Maximum 2 marks if any logic errors
I. syntax and other minor errors while rewriting, eg spelling, missing
colons, brackets.
I. other terms for SUBROUTINE as long as they make sense.
Line 1
SUBROUTINE diffCurrencies(x)
Line 6
FOR i 7 TO 0 STEP -1
Question
13
Part
;
;;
Marking guidance
2 marks for AO3 (design), 4 marks for AO3 (program)
Total
marks
6
Program Design
Note that AO3 (design) marks are for selecting appropriate techniques
to use to solve the problem, so should be credited whether the syntax of
programming language statements is correct or not and regardless of
whether the solution works.
Mark A for using the variable check within their own code;
Mark B for using selection or equivalent to check the grid references;
Program Logic
Mark C for correctly using an appropriate technique
(slicing/indexing/substring function) with correct syntax to extract the
left and right characters of input // for correctly comparing all nine
possible valid grid references;
Mark D for using one appropriate correct Boolean condition, eg =”A” //
=”2” or equivalent;
Mark E for having all the appropriate correct Boolean conditions to
check the letters and numbers AND for check being set appropriately
in all cases;
Mark F for outputting an appropriate message in a logically appropriate
location if their checks have failed;
Maximum 5 marks if any errors in code.
I. Case
I. Gaps/spaces throughout the code, except where to do so would
explicitly alter the logic of the code in a way that makes it incorrect.
19
MARK SCHEME – GCSE COMPUTER SCIENCE – 8525/1 – JUNE 2023
C# Example 1 (fully correct)
All design marks are achieved (Marks A and B)
bool check = false;
while (check == false) {
string square = "";
while (square.Length != 2) {
Console.Write("Enter grid reference: ");
square = Console.ReadLine();
square = square.ToUpper();
}
char letter = square[0];
char number = square[1];
if ((letter == 'A' || letter == 'B' || letter
== 'C') && (number == '1' || number == '2' ||
number == '3'))
{
check = true;
}
else
{
Console.WriteLine("Not valid, try again.");
}
}
(Part of C,
Part of C)
(D)
(E)
(F)
I. Indentation in C#
I. Duplicate } at the end of the program (as if student has missed the bracket in
the writing lines)
A. use of double quotes for Mark E
A. Write in place of WriteLine
Python Example 1 (fully correct)
All design marks are achieved (Marks A and B)
check = False
while check == False:
square = ""
while len(square) != 2:
square = input("Enter grid reference: ")
square = square.upper()
letter = square[0]
number = square[1]
if letter in "ABC" and number in "123":
check = True
else:
print("Not valid, try again. ")
A. use of single quotes for Mark E
20
(Part of C,
Part of C)
(D)(E)
(F)
MARK SCHEME – GCSE COMPUTER SCIENCE – 8525/1 – JUNE 2023
VB.NET Example 1 (fully correct)
All design marks are achieved (Marks A and B)
Dim check As Boolean = False
While check = False
Dim square As String = ""
While square.Length <> 2
Console.Write("Enter grid reference: ")
square = Console.ReadLine()
square = square.ToUpper()
End While
Dim letter As String = square(0)
Dim number As String = square(1)
If (letter = "A" Or letter = "B" Or letter =
"C") And (number = "1" Or number = "2" Or number
= "3") Then
check = True
Else
Console.WriteLine("Not valid, try again. ")
End If
End While
(Part of C,
Part of C)
(D)
(E)
(F)
I. Indentation in VB.NET
I. Duplicate End While at the end of the program (as if student has missed the
bracket in the writing lines)
A. Write in place of WriteLine
A. use of single quotes for Mark E
21
MARK SCHEME – GCSE COMPUTER SCIENCE – 8525/1 – JUNE 2023
VB.NET Example 2 (fully correct)
All design marks are achieved (Marks A and B)
Dim check As Boolean = False
While check = False
Dim square As String = ""
While square.Length <> 2
Console.Write("Enter grid reference: ")
square = Console.ReadLine()
square = square.ToUpper()
End While
Dim letter As String = square.substring(0,1)
Dim number As String = square.substring(1,1)
If (letter = "A" Or letter = "B" Or letter =
"C") And (number = "1" Or number = "2" Or number
= "3") Then
check = True
Else
Console.WriteLine("Not valid, try again. ")
End If
End While
(Part of C,
Part of C)
(D)
(E)
(F)
I. Indentation in VB.NET
I. Duplicate End While at the end of the program (as if student has missed the
bracket in the writing lines)
A. Write in place of WriteLine
A. use of single quotes for Mark E
Question
14
Part
Marking guidance
3 marks for AO2 (apply)
1;
i;
method;
Note to Examiners: If the student has re-written the entire line and
added in the correct missing item, award the mark.
22
Total
marks
3
MARK SCHEME – GCSE COMPUTER SCIENCE – 8525/1 – JUNE 2023
Question
15
Part
Marking guidance
3 marks for AO3 (design), 5 marks for AO3 (program)
Any solution that does not map to the mark scheme refer to lead
examiner
Total
marks
8
Program Design
Note that AO3 (design) marks are for selecting appropriate techniques
to use to solve the problem, so should be credited whether the syntax of
programming language statements is correct or not and regardless of
whether the solution works.
Mark A for storing a user input in a variable with a meaningful name;
Mark B for using an iteration structure which attempts to pay the bill;
Mark C for using a selection structure with ELSE / ELSEIF // use of
multiple selection constructs;
Program Logic
Mark D for getting the user input for the total amount of the bill (outside
the loop) AND deducting a payment towards the bill (within the loop);
A. if there is no loop and both elements are present in the right order.
Mark E for a mechanism which will correctly terminate the iteration
structure, in all situations, when the bill is fully paid;
Mark F for two conditions. One which checks / handles if the amount
left to pay is 0 (or less, ie bill is paid), AND one which checks if the
amount left to pay is less than 0 (for tip);
Mark G for outputting in an appropriate place Tip is and the tip as a
number; R. if tip is outputted when the amount left to pay is not less than
zero
Mark H for outputting Bill paid and the amount left to pay in
logically appropriate places;
Maximum 7 marks if any errors in code.
I. Case
I. Gaps/spaces throughout the code, except where to do so would
explicitly alter the logic of the code in a way that makes it incorrect.
I. Messages or no messages with input statements
23
MARK SCHEME – GCSE COMPUTER SCIENCE – 8525/1 – JUNE 2023
C# Example 1 (fully correct)
All design marks are achieved (Marks A, B and C)
bool billPaid = false;
decimal total = Convert.ToDecimal
(Console.ReadLine());
while (billPaid == false)
{
decimal partPayment = Convert.ToDecimal
(Console.ReadLine());
total = total - partPayment;
Console.WriteLine(total);
if (total == 0)
{
Console.WriteLine("Bill paid");
billPaid = true;
} else if (total < 0)
{
Console.WriteLine("Tip is " + -total);
billPaid = true;
}
}
(Part of E)
(Part of D)
(Part of E)
(Part of D)
(Part of D)
(Part of H)
(Part of F)
(Part of H)
(Part of E)
(Part of F, G)
(Part of G)
(Part of E)
I. Indentation in C#
A. Write in place of WriteLine
Python Example 1 (fully correct)
All design marks are achieved (Marks A, B and C)
total = float(input())
billPaid = False
while billPaid == False:
partPayment = float(input())
total = round(total – partPayment, 2)
print(total)
if total == 0:
print("Bill paid")
billPaid = True
elif total < 0:
print(f"Tip is: {-total}")
billPaid = True
A. without rounding / round() statements
24
(Part of D)
(Part of E)
(Part of E)
(Part of D)
(Part of D)
(Part of H)
(Part of F)
(Part of H)
(Part of E)
(Part of F, G)
(Part of G)
(Part of E)
MARK SCHEME – GCSE COMPUTER SCIENCE – 8525/1 – JUNE 2023
VB.NET Example 1 (fully correct)
All design marks are achieved (Marks A, B and C)
Dim billPaid As Boolean = False
Dim total As Decimal = Console.ReadLine()
While billPaid = False
(Part of E)
(Part of D)
Dim partPayment As Decimal = Console.ReadLine()
total = total - partPayment
Console.WriteLine(total)
If total = 0 Then
Console.WriteLine("Bill paid")
billPaid = True
ElseIf total < 0
Console.WriteLine("Tip is " & -total)
billPaid = True
End If
End While
(Part of D)
(Part of D)
(Part of H)
(Part of F)
(Part of H)
(Part of E)
(Part of F, G)
(Part of G)
(Part of E)
I. Indentation in VB.NET
A. Write in place of WriteLine
25
MARK SCHEME – GCSE COMPUTER SCIENCE – 8525/1 – JUNE 2023
Question
16
Part
Marking guidance
4 marks for AO3 (design), 7 marks for AO3 (program)
Any solution that does not map to the mark scheme refer to lead
examiner
Note to Examiners: For marks E and J be careful not to penalise the
same error twice. For example, if they have used 6 instead of 7 in mark
E and then 21 instead of 22 in mark J apply a DPT
Program Design
Note that AO3 (design) marks are for selecting appropriate techniques
to use to solve the problem, so should be credited whether the syntax of
programming language statements is correct or not and regardless of
whether the solution works.
Mark A for attempting to randomly generate two numbers;
Mark B for use of selection to check the current score against 21;
Mark C for using iteration to keep rolling the dice;
Mark D for outputting the dice rolls in appropriate places;
Program Logic
Mark E for generating two random numbers between 1 and 6 inclusive;
Mark F for correctly adding the two dice values cumulatively to the
previous score;
Mark G for a loop that terminates if the current score is less than 21 and
player chooses not to roll again;
Mark H for a correct mechanism to end the game if the player has a
score greater than or equal to 21;
Mark I for a selection statement which correctly checks if the player has
lost (final score is greater than 21) OR won (final score is 21);
Mark J for generating a random number between 15 and 21 inclusive in
a logically correct place AND checking if the result is greater than the
final score;
Mark K for at least one correct set of messages output in appropriate
places to show whether the user has won or lost;
A. yes/y, no/n or any other appropriate equivalents
Maximum 10 marks if any errors in code.
I. Case
I. Gaps/spaces throughout the code, except where to do so would
explicitly alter the logic of the code in a way that makes it incorrect.
I. Messages or no messages with input statements
26
Total
marks
11
MARK SCHEME – GCSE COMPUTER SCIENCE – 8525/1 – JUNE 2023
C# Example 1 (fully correct)
All design marks are achieved (Marks A, B, C and D)
Random r = new Random();
int score = 0;
string rollAgain = "yes";
while (rollAgain == "yes")
{
int dice1 = r.Next(1, 7);
int dice2 = r.Next(1, 7);
score = score + dice1 + dice2;
Console.WriteLine("Roll 1: " + dice1);
Console.WriteLine("Roll 2: " + dice2);
Console.WriteLine("Current score: " + score);
if (score < 21)
{
rollAgain = Console.ReadLine();
} else
{
rollAgain = "no";
}
}
if (score > 21)
{
Console.WriteLine("You lost! ");
} else if (score == 21)
{
Console.WriteLine("You won! ");
} else
{
if (r.Next(15, 22) > score)
{
Console.WriteLine("You lost! ");
} else
{
Console.WriteLine("You won! ");
}
}
(C, Part of G,
Part of H)
(Part of A,E)
(Part of A,E)
(F)
(Part of D)
(Part of D)
(Part of D)
(Part of G)
(Part of G)
(Part of H)
(Part of I)
(Part of K)
(Part of I)
(Part of K)
(Part of I)
(J)
(Part of K)
(Part of K)
I. Indentation in C#
A. Write in place of WriteLine
27
MARK SCHEME – GCSE COMPUTER SCIENCE – 8525/1 – JUNE 2023
Python Example 1 (fully correct)
All design marks are achieved (Marks A, B, C and D)
import random
score = 0
rollAgain = "yes"
while rollAgain == "yes":
dice1 = random.randrange(1, 7)
dice2 = random.randrange(1, 7)
score = score + dice1 + dice2
print(f"Roll 1: {dice1}")
print(f"Roll 2: {dice2}")
print(f"Current score: {score}")
if score < 21:
rollAgain = input()
else:
rollAgain = "no"
if score > 21:
print("You lost! ")
elif score == 21:
print("You won! ")
else:
if random.randrange(15,22) > score:
print("You lost!")
else:
print("You won! ")
A. random.randint(1, 6)
A. random.randint(15, 21)
28
(C, Part of G,
Part of H)
(Part of A,E)
(Part of A,E)
(F)
(D)
(Part of G)
(Part of G)
(Part of H)
(Part of I)
(Part of K)
(Part of I)
(Part of K)
(Part of I)
(J)
(Part of K)
(Part of K)
MARK SCHEME – GCSE COMPUTER SCIENCE – 8525/1 – JUNE 2023
VB.NET Example 1 (fully correct)
All design marks are achieved (Marks A, B, C and D)
Dim
Dim
Dim
Dim
r As Random = New Random()
score As Integer
rollAgain As String = "yes"
dice1, dice2 As Integer
While rollAgain = "yes"
dice1 = r.Next(1, 7)
dice2 = r.Next(1, 7)
score = score + dice1 + dice2
Console.WriteLine("Roll 1: " & dice1)
Console.WriteLine("Roll 2: " & dice2)
Console.WriteLine("Current score: " & score)
If score < 21 Then
rollAgain = Console.ReadLine()
Else
rollAgain = "no"
End If
End While
If score > 21 Then
Console.WriteLine("You lost! ")
ElseIf score = 21 Then
Console.WriteLine("You won! ")
Else
If r.Next(15, 22) > score Then
Console.WriteLine("You lost! ")
Else
Console.WriteLine("You won! ")
End If
End If
(C, Part of G,
Part of H)
(Part of A,E)
(Part of A,E)
(F)
(Part of D)
(Part of D)
(Part of D)
(Part of G)
(Part of G)
(Part of H)
(Part of I)
(Part of K)
(Part of I)
(Part of K)
(Part of I)
(J)
(Part of K)
(Part of K)
I. Indentation in VB.NET
A. Write in place of WriteLine
29