100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4,6 TrustPilot
logo-home
Exam (elaborations)

GCSE Computer Science Specimen Paper 2 with Marking Scheme

Rating
-
Sold
-
Pages
42
Grade
A+
Uploaded on
11-07-2025
Written in
2024/2025

Access the GCSE Computer Science Specimen Paper 2 with Marking Scheme. Includes practice questions and detailed answers to help students prepare effectively for exams. Perfect for understanding key computer science concepts and improving problem-solving skills. Download instantly on Stuvia and get a high-quality resource to boost your GCSE Computer Science grades.

Show more Read less
Institution
Gcse Computer Science Specimen 2
Course
Gcse computer science specimen 2









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Gcse computer science specimen 2
Course
Gcse computer science specimen 2

Document information

Uploaded on
July 11, 2025
File latest updated on
July 11, 2025
Number of pages
42
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

Pearson Edexcel Level 1/Level 2 GCSE (9–1)
Specimen Assessment Material for first teaching
September 2020
Time: 2 hours Paper Reference 1CP2/02

Computer Science
Paper 2: Application of Computational Thinking



You must have:
• a computer workstation with appropriate programming language code
editing software and tools, including an IDE that you are familiar with
which shows line numbers
• a ‘STUDENT CODING’ folder containing code and data files
• printed and electronic copies of the Programming Language Subset (PLS)
document.


Instructions
• Answer all the questions on your computer.
• ‘COMPLETED
Save new or amended code using the file name provided and place it in the
CODING’ folder.
• You must not use the internet at any time during the examination.
Information
• The ‘STUDENT CODING’ folder in your user area includes all the code and data
files you need.
• The total mark for this paper is 75.
• The marks for each question are shown in brackets.
Advice
• Read each question carefully before you start to answer it.
• Check yourwork
Save your regularly.
• answers and work if you have time at the end.




Turn over



*S68826A0112*
S68826A
©2020 Pearson Education Ltd.

1/1/1/1/1/

, Answer ALL questions.
Suggested time: 15 minutes
1 A programmer is learning about subprograms. A program includes subprograms
to manipulate numbers and text. It prints out the contents of a data structure and
locates a substring in a quote. It does not function correctly.


Open file Q01.py


Amend the code to:

complete original line 16 to create a one-dimensional data structure,
implemented as a list, and initialise it with nine integers between 0 and 100,
inclusive. The integers can be in any order.
myList =

complete original line 19 to initialise a string variable to the quote:
Better a witty fool than a foolish wit
mySentence =
• fix the indentation error on original line 38
return (location)

complete original line 48 with a built-in function to find the length of the string
variable ‘mySentence’
end = mySentence)
• fix the syntax error on original line 51
while (location != -1)
• complete original line 55 with the keyword for selection
(location != -1):
• fix the syntax error on original line 57
print (FOOL + " found at location: " + str location)
• fix the NameError on original line 44
shwList (myList)
• fix the TypeError on original line 29
outString = outString + item + " "
• fix the logic error on original line 59 that causes an infinite loop.
start = location - 1
Do not add any additional functionality.
Save your amended code file as Q01FINISHED.py

(Total for Question 1 = 10 marks)





2

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Dokkie247 California State University - East Bay
Follow You need to be logged in order to follow users or courses
Sold
170
Member since
1 year
Number of followers
5
Documents
864
Last sold
1 day ago
Dokkie247

Dokkie247 Test Banks and Practice Exams Struggling to find the perfect study materials? Welcome to Dokkie247! We specialize in delivering high-quality test banks, practice exams, and study resources to make exam prep stress-free and effective. Tip: Success doesn’t happen by chance. It happens by choice. Choose Dokkie247 Test Banks and Practice Exams! Study smart, not hard. Your success story starts here! Let’s make exam success your new normal.

Read more Read less
4,5

52 reviews

5
41
4
4
3
3
2
0
1
4

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can immediately select a different document that better matches what you need.

Pay how you prefer, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card or EFT and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions