100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
Paper 2 IGCSE Pearson Edexcel Computer Science June 2022 $12.25
Add to cart

Exam (elaborations)

Paper 2 IGCSE Pearson Edexcel Computer Science June 2022

 1 view  0 purchase
  • Course
  • Institution

Paper 2 IGCSE Pearson Edexcel Computer Science June 2022

Preview 3 out of 24  pages

  • January 5, 2025
  • 24
  • 2022/2023
  • Exam (elaborations)
  • Only questions
  • 107
avatar-seller
eM
Th
Please check the examination details below before entering your candidate information
Candidate surname Other names


Centre Number Candidate Number




Pearson Edexcel International GCSE (9–1)
Time 3 hours
Paper
reference 4CP0/02
Computer Science
 



PAPER 2: Application of Computational Thinking
You must have: Total Marks
A computer workstation with appropriate programming
language code editing software and tools, including a code
interpreter/compiler, CODES folder containing code and data files,
and pseudocode command set (enclosed)


Instructions
•• Use black ink or ball-point pen.
Fill in the boxes at the top of this page with your name,
centre number and candidate number.
•• Answer all questions.
Answer the questions requiring a written answer in the spaces provided
– there may be more space than you need.
• the
Only one programming language (Python, C# or Java) must be used throughout
examination.
• Carry out practical tasks on the computer system and save new or amended code
using the name given in the question with the appropriate file extension.
•• Do not overwrite the original code and data files provided to you.
You must not use the internet during the examination.

Information
•• The total mark for this paper is 80.
The marks for each question are shown in brackets
– use this as a guide as to how much time to spend on each question.
•• This paper covers Python, C# and Java.
The CODES folder in your user area includes all the code and data files you need.
• The invigilator will tell you where to store your work.
Advice
•• Read each question carefully before you start to answer it.
Save your work regularly.
• Check your answers if you have time at the end. Turn over



*P72406A0116*
P72406A
©2022 Pearson Education Ltd.

Q:1/1/1/e2/

, eM
Th
Answer all questions.
Answer the questions requiring a written answer in the spaces provided.
Some questions must be answered with a cross in a box . If you change your mind about an
answer, put a line through the box and then mark your new answer with a cross .
Carry out practical tasks on the computer system and save new or amended code using the
name given with the appropriate file extension.
Use only ONE programming language throughout the examination.
Indicate the programming language that you are using with a cross in a box .

C# Java Python



1 Programmers write code to solve problems.
(a) Identify the description of a variable in a computer program.
(1)
A A value that cannot be used more than once

B A value that must be input

C A value that is always used in a calculation

D A value that can change

(b) Identify the technique that improves the readability of code.
(1)

A Using indents on every line

B Using descriptive names for variables

C Using the correct operators

D Using suitable data structures

(c) Complete the table by giving an example value for each data type.
The first row has been completed for you.
(2)


Data type Example value

integer 12

char

real


2
*P72406A0216* 

, eM
Th
(d) Describe one difference between the data used in boundary testing and the data
used in erroneous testing.
(2)

. . . . . . . . . . . .. .. .. .. .. .. .. .. .. .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ............................................................................................................................................ ................ . . . . . . . . . . . . . . . . . . . .



. . . . . . . . . . . .. .. .. .. .. .. .. .. .. .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ............................................................................................................................................ ................ . . . . . . . . . . . . . . . . . . . .



. . . . . . . . . . . .. .. .. .. .. .. .. .. .. .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ............................................................................................................................................ ................ . . . . . . . . . . . . . . . . . . . .



. . . . . . . . . . . .. .. .. .. .. .. .. .. .. .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ............................................................................................................................................ ................ . . . . . . . . . . . . . . . . . . . .


(e) A program should output the value 2
However, there is an error in the code and the actual output is 4
Name this type of error.
(1)

. . . . . . . . . . . .. .. .. .. .. .. .. .. .. .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ............................................................................................................................................ ................ . . . . . . . . . . . . . . . . . . . .


(f ) Open Q01f in the code editor.
The program should allow the input of the length of the side of a square and
output the area of the square.
There are three errors in the code.
Amend the code to correct the errors.
Save your amended code as Q01fFINISHED with the correct file extension for the
programming language.
(3)
(g) A program is needed that will accept the input of a letter and compare it with a
stored letter.
It will check whether the letter comes earlier in the alphabet, later in the alphabet
or is the same letter as the stored letter.
It will output the letter and the stored letter with an appropriate message.
Open Q01g in the code editor.
Amend the code to complete the if statement used to produce the output.
You must use the structure given in Q01g to complete the program.
Do not add any further functionality.
Save your code as Q01gFINISHED with the correct file extension for the
programming language.
(4)

(Total for Question 1 = 14 marks)


3
 *P72406A0316* Turn over

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller themathlab. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $12.25. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

50990 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 15 years now

Start selling
$12.25
  • (0)
Add to cart
Added