Professional Documents
Culture Documents
GCSE
COMPUTER SCIENCE
(9210)
Unit 1 Programming
Mark scheme
Specimen 2018
Copyright © 2018 Oxford International AQA Examinations and its licensors. All rights reserved.
2
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 Assessment Writer.
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.
Copyright © 2018 Oxford International AQA Examinations and its licensors. All rights reserved.
3
Aims
When you are marking your allocation of scripts your main aims should be to:
Approach
It is important to be open minded and positive when marking scripts.
The specification recognises the variety of experiences and knowledge that students will have. It
encourages them to study language in a way that is relevant to them. The questions have been designed
to give them opportunities to discuss what they have found out about language. It is important to assess
the quality of what the student offers.
Do not mark scripts as though they were mere shadows of some Platonic ideal (or the answer you would
have written). The mark schemes have been composed to assess quality of response and not to
identify expected items of knowledge.
Assessment Objectives
This component requires students to:
AO1: Demonstrate knowledge and understand of the key concepts and principles of computer science.
AO2: Apply knowledge and understanding of key concepts and principles of computer science.
AO3: Analyse problems in computational terms in order to develop and test programmed solutions and
demonstrate an understanding of programming concepts.
Annotating scripts
You should write a summative comment at the end for each Assessment Objective and indicate the
marks for each Assessment Objective being tested at the end of the answer in the margin in sequence. It
is vital that the way you arrive at a mark should be recorded on the script. This will help you with making
accurate judgements and it will help any subsequent markers to identify how you are thinking. Please do
not write negative comments about students’ work or their alleged aptitudes; this is unprofessional and it
impedes a positive marking approach.
Copyright © 2018 Oxford International AQA Examinations and its licensors. All rights reserved.
4
Copyright © 2018 Oxford International AQA Examinations and its licensors. All rights reserved.
5
AO3=1
Copyright © 2018 Oxford International AQA Examinations and its licensors. All rights reserved.
6
03 1 mark: The boxes for inputting and outputting the filename should 5
be the other way around.
1 mark: The Yes and No labels are on the wrong branches // the AO3=5
boxes on the YES and No branches are on the wrong branches.
1 mark: Write PlainText to File should be Read from not Write to.
1 mark: The line above Close File is missing an arrow.
1 mark: The value returned should be PlainText not FileName.
Copyright © 2018 Oxford International AQA Examinations and its licensors. All rights reserved.
7
Sub DisplayMenu()
Console.WriteLine("CIPHER SYSTEM")
Console.WriteLine()
Console.WriteLine("K Input Key")
Console.WriteLine("P Input Plaintext")
Console.WriteLine("C Input Ciphertext")
Console.WriteLine("L Load Plaintext")
Console.WriteLine("E Encrypt Plaintext")
Console.WriteLine("D Decrypt Ciphertext")
Console.WriteLine("Q Quit")
End Sub
Sub Main()
Do
DisplayMenu()
Console.WriteLine("The Current Key is " & Key)
Console.Write("Enter Option > ")
Copyright © 2018 Oxford International AQA Examinations and its licensors. All rights reserved.
8
MenuOption = Console.ReadLine().ToUpper()
End Sub
Note that the last four marks can be awarded if the boundaries are
Copyright © 2018 Oxford International AQA Examinations and its licensors. All rights reserved.
9
incorrect.
Copyright © 2018 Oxford International AQA Examinations and its licensors. All rights reserved.
10
Sub Main()
Do
DisplayMenu()
Console.WriteLine("The Current Key is " & Key)
Console.Write("Enter Option > ")
MenuOption = Console.ReadLine().ToUpper()
End Sub
Copyright © 2018 Oxford International AQA Examinations and its licensors. All rights reserved.
11
Max 3 if functionality with upper case letters has been broken by the
modifications.
Copyright © 2018 Oxford International AQA Examinations and its licensors. All rights reserved.
12
End Function
Sub Main()
Do
DisplayMenu()
Console.WriteLine("The Current Key is " & Key)
Console.Write("Enter Option > ")
MenuOption = Console.ReadLine().ToUpper()
Copyright © 2018 Oxford International AQA Examinations and its licensors. All rights reserved.
13
Key = InputKey()
Case "P"
PlainText = InputPlainText()
Case "C"
CipherText = InputCipherText()
Case "L"
PlainText = LoadPlainText()
Console.WriteLine("Plaintext is : " +
PlainText)
Case "E"
CipherText = Encrypt(PlainText, Key)
Console.WriteLine("Ciphertext is : " +
CipherText)
Case "D"
PlainText = Decrypt(CipherText, Key)
Console.WriteLine("Plaintext is : " +
PlainText)
End Select
Loop Until MenuOption = "Q"
End Sub
Copyright © 2018 Oxford International AQA Examinations and its licensors. All rights reserved.
14
End Sub
Copyright © 2018 Oxford International AQA Examinations and its licensors. All rights reserved.
15
PairCount = PlainText.Length \ 2
For PairNum = 0 To PairCount - 1
CipherText = CipherText + PlainText(PairNum * 2 + 1)
+ PlainText(PairNum * 2)
Next
If PlainText.Length Mod 2 = 1 Then
CipherText = CipherText + PlainText(PlainText.Length
- 1)
End If
Return CipherText
End Function
Copyright © 2018 Oxford International AQA Examinations and its licensors. All rights reserved.
16
Sub Main()
Do
DisplayMenu()
Console.WriteLine("The Current Key is " & Key)
Console.Write("Enter Option > ")
MenuOption = Console.ReadLine().ToUpper()
End Sub
Copyright © 2018 Oxford International AQA Examinations and its licensors. All rights reserved.
17
Copyright © 2018 Oxford International AQA Examinations and its licensors. All rights reserved.