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

Pearson Edexcel Level 1/Level 2 GCSE (9–1) Computer Science PAPER 2: Application of Computational Thinking Programming Language Subset Version 4 2023

Rating
-
Sold
-
Pages
17
Grade
A+
Uploaded on
15-01-2024
Written in
2023/2024

Pearson Edexcel Level 1/Level 2 GCSE (9–1) Computer Science PAPER 2: Application of Computational Thinking Programming Language Subset Version 4 2023

Institution
Course










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

Written for

Institution
Study
Course

Document information

Uploaded on
January 15, 2024
Number of pages
17
Written in
2023/2024
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

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

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.
BRIXTON West Virgina University
Follow You need to be logged in order to follow users or courses
Sold
202
Member since
3 year
Number of followers
175
Documents
1371
Last sold
7 months ago

4.1

41 reviews

5
23
4
7
3
7
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 tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card 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