Pearson Edexcel Level 1/Level 2 GCSE (9–1)
Paper
reference 1CP2/02
Computer Science
PAPER 2: Application of Computational Thinking
Programming Language Subset
Version 4
PLS Booklet
You do not need any other materials.
Pearson Edexcel Level 1/Level 2 GCSE (9–1) Computer Science PAPER 2: Application
of Computational Thinking Programming Language Subset Version 4 2023
Turn over
W75198A
©2022 Pearson Education Ltd.
1/1/1
,Contents
Introduction .................................................................................................. 4
Comments .................................................................................................... 5
Identifiers .................................................................................................... 5
Data types and conversion .................................................................................. 5
Primitive data types ..................................................................................... 5
Conversion................................................................................................ 5
Constants ................................................................................................. 5
Combining declaration and initialisation ............................................................. 5
Structured data types ................................................................................... 5
Dimensions ............................................................................................... 5
Operators ..................................................................................................... 6
Arithmetic operators .................................................................................... 6
Relational operators .................................................................................... 6
Logical/Boolean operators ............................................................................. 6
Programming constructs .................................................................................... 7
Assignment ............................................................................................... 7
Sequence ................................................................................................. 7
Blocking ................................................................................................... 7
Selection .................................................................................................. 7
Repetition ................................................................................................ 7
Iteration .................................................................................................. 7
Subprograms ............................................................................................. 8
Inputs and outputs ........................................................................................... 8
Screen and keyboard .................................................................................... 8
Files ....................................................................................................... 8
Supported subprograms ..................................................................................... 9
Built-in subprograms ....................................................................................9
List subprograms ....................................................................................... 10
String subprograms .................................................................................... 11
Formatting strings ................................................................................. 12
2 W75198A
, Library modules ............................................................................................ 13
Random library module ............................................................................... 13
Math library module ................................................................................... 13
Time library module ................................................................................... 13
Turtle graphics library module ....................................................................... 14
Tips for using turtle ............................................................................... 14
Turtle window and drawing canvas ............................................................. 14
Turtle creation, visibility and movement .....................................................................15
Turtle positioning and direction ................................................................. 15
Turtle filling shapes ............................................................................... 15
Turtle controlling the pen ........................................................................ 16
Turtle circles ....................................................................................... 16
Turtle colours ...................................................................................... 16
Console session............................................................................................. 16
Code style................................................................................................... 16
Line continuation .......................................................................................... 17
Carriage return and line feed ............................................................................ 17
W75198A 3
Turn over
Paper
reference 1CP2/02
Computer Science
PAPER 2: Application of Computational Thinking
Programming Language Subset
Version 4
PLS Booklet
You do not need any other materials.
Pearson Edexcel Level 1/Level 2 GCSE (9–1) Computer Science PAPER 2: Application
of Computational Thinking Programming Language Subset Version 4 2023
Turn over
W75198A
©2022 Pearson Education Ltd.
1/1/1
,Contents
Introduction .................................................................................................. 4
Comments .................................................................................................... 5
Identifiers .................................................................................................... 5
Data types and conversion .................................................................................. 5
Primitive data types ..................................................................................... 5
Conversion................................................................................................ 5
Constants ................................................................................................. 5
Combining declaration and initialisation ............................................................. 5
Structured data types ................................................................................... 5
Dimensions ............................................................................................... 5
Operators ..................................................................................................... 6
Arithmetic operators .................................................................................... 6
Relational operators .................................................................................... 6
Logical/Boolean operators ............................................................................. 6
Programming constructs .................................................................................... 7
Assignment ............................................................................................... 7
Sequence ................................................................................................. 7
Blocking ................................................................................................... 7
Selection .................................................................................................. 7
Repetition ................................................................................................ 7
Iteration .................................................................................................. 7
Subprograms ............................................................................................. 8
Inputs and outputs ........................................................................................... 8
Screen and keyboard .................................................................................... 8
Files ....................................................................................................... 8
Supported subprograms ..................................................................................... 9
Built-in subprograms ....................................................................................9
List subprograms ....................................................................................... 10
String subprograms .................................................................................... 11
Formatting strings ................................................................................. 12
2 W75198A
, Library modules ............................................................................................ 13
Random library module ............................................................................... 13
Math library module ................................................................................... 13
Time library module ................................................................................... 13
Turtle graphics library module ....................................................................... 14
Tips for using turtle ............................................................................... 14
Turtle window and drawing canvas ............................................................. 14
Turtle creation, visibility and movement .....................................................................15
Turtle positioning and direction ................................................................. 15
Turtle filling shapes ............................................................................... 15
Turtle controlling the pen ........................................................................ 16
Turtle circles ....................................................................................... 16
Turtle colours ...................................................................................... 16
Console session............................................................................................. 16
Code style................................................................................................... 16
Line continuation .......................................................................................... 17
Carriage return and line feed ............................................................................ 17
W75198A 3
Turn over