levo

Problem Solving with Programming

  • 9 subtopics
  • 27 things to know
  • Paper 2

What Problem Solving with Programming covers

Problem Solving with Programming is examined in Paper 2, Application of Computational Thinking. It covers readable code, debugging and testing, selection and loops in Python, data types, conversion, variables and constants, string handling, lists, two-dimensional lists and records, keyboard input, screen output and CSV files, validation and authentication in Python, operators, functions and variable scope, and turtle graphics.

Where it is assessed

Paper 2

Application of Computational Thinking, a two-hour onscreen paper in Python worth 50% of the GCSE.

Check the Pearson Edexcel specification ↗

The 9 subtopics

Each one has its own page.

What you need to know

Answer each one before you reveal it.

Your recallNot started
Key term

What is a CSV file, and how does Python open one for reading?

Key term

How can Python read a CSV file line by line, and how do readline() and readlines() differ?

Key term

Explain why indentation is essential in Python.

Key term

What is the difference between initialisation and assignment?

Key term

Which Python data types store a whole number and a number with a decimal part?

Key term

State what is printed by print(len("Hello world")).

Key term

How is an array represented in Python?

Key term

Define validation.

Key term

What is printed by print(23 % 4) and then print(23 // 4)?

Key term

How is a comment written in Python, and why are comments used?

Process

Define a command sequence.

Key term

What values can a Boolean hold, and what is one used for?

Key term

What character is word[2] when word = "Python"?

Key term

What is printed by scores = [12, 15, 9, 20], then print(scores[2])?

Key term

Why do programs validate input?

Key term

What is printed by secs = 200, then print(str(secs // 60) + " min " + str(secs % 60) + " s")?

Key term

Why is score_total a better identifier than st?

Key term

What is printed when x = 7 runs through if x > 10: print("big"), then elif x > 5: print("medium"), then else: print("small")?

Key term

Describe how Python stores a single character.

Key term

State what is printed by word = "computer", then print(word[3:6]).

Key term

What does scores.append(7) do when scores = [12, 15, 9]?

Key term

What does name = input("Name: ") do when it runs?

Key term

What is a presence check, and how is one written in Python?

Numbers

State what is printed by print(2 ** 10).

Process

What do pen.pencolor("red") and pen.pensize(5) change?

Process

What do hideturtle() and showturtle() do?

Process

What do pen.left(90) and pen.right(90) do?

Take Problem Solving with Programming further

The same content, four other ways.

Commonly confused

Pairs that lose marks when they are blurred together.

  • Function vs Procedure

    Function: a subprogram that hands a value back to the code that called it. Procedure: a subprogram that carries out a task without handing any value back.

  • Local variable vs Global variable

    Local variable: a named value that exists only inside the subprogram where it is created. Global variable: a named value created in the main program that any part of the code can read.

  • Variable vs Constant

    Variable: a named memory location whose value can change while the program runs. Constant: a named value that stays fixed while the program runs, written in capitals by convention.

Questions from this topic

Each one with the model answer underneath.

  1. 1

    Explain why indentation is essential in Python.

    Model answer

    Python uses indentation to show which lines belong to a block, such as the body of a loop. Wrong indentation changes what the code does or causes an error.

  2. 2

    How is a comment written in Python, and why are comments used?

    Model answer

    A comment starts with the # character, and Python ignores the rest of that line. Comments explain the purpose of the code to anyone maintaining it later.

  3. 3

    Why is score_total a better identifier than st?

    Model answer

    The name score_total says what the variable holds. A reader can follow the code without guessing what st stands for.

  4. 4

    How does white space make a program easier to read?

    Model answer

    Blank lines separate a program into logical sections. Spaces around operators make each line easier to scan.

  5. 5

    How do a flowchart’s decision box and loop-back arrow become Python code?

    Model answer

    A decision box becomes an if statement testing the same condition. A loop-back arrow becomes a while loop that repeats until the decision lets control move on.

  6. 6

    Explain what it means to refine a program.

    Model answer

    Refining a program means improving code that already works. The aim is clearer, shorter or more efficient code that gives the same results.

What is inside Levo

Six ways to work the same material.

1Closed book
2Open book
3Closed book

The 3-step method, run for you

Answer cold, learn it, then prove it stuck. Levo tracks the jump between your first attempt and your last.

Computational Thinking
Data
Computers
Networks

Cram a whole paper in one sitting

Sort every topic into what you know and what you do not, then drill only the weak ones.

The check is 45 + 27 = 72.
denarybinaryhexadecimal

Blank Blitz makes facts automatic

Rapid timed gap-fills on the terms and numbers you need to recall without thinking.

AA normal test value is 14.
BA boundary test value is 16.
CAn erroneous test value is 20.

Build It gets the exam shape right

Assemble a full-mark answer from its marking points, in the order an examiner wants them.

A kibibyte (KiB) is 1,024 bytes. The figure 1,024 is 2¹⁰.
TrueFalse

Test It catches misconceptions

Spot the fault in a statement. The traps are the mistakes students actually make.

721941163128510

Brain Breaks between sessions

Short focus games to reset attention, so the next set lands better than the last.

Problem Solving with Programming revision questions

What does Problem Solving with Programming cover in Edexcel GCSE Computer Science?
9 subtopics: readable code, debugging and testing, selection and loops in python, data types, conversion, variables and constants, string handling, lists, two-dimensional lists and records, keyboard input, screen output and csv files, validation and authentication in python, operators, functions and variable scope and turtle graphics. Each one has its own page with questions and model answers.
How is Problem Solving with Programming organised?
By the Edexcel 1CP2 specification, subtopic by subtopic, so it matches the order you are taught it in.

Every question in Problem Solving with Programming, on a schedule.

Attempt a question from memory, write the correct version, then attempt it again. Levo records the jump between your first attempt and your last, and brings each question back on the day you are due to forget it.

Or £46 a year, about £3.83 a month. Cancel anytime.