levo

Programming Constructs and Operators

  • 5 subtopics
  • 15 things to know
  • Papers 1 and 2

Learn Programming Constructs and Operators in runs of four questions, then keep it with spaced repetition.

What Programming Constructs and Operators covers

Programming Constructs and Operators is examined in Paper 1, Principles of Computer Science, and Paper 2, Application of Computational Thinking. It covers the structure of a program; selection; iteration; arithmetic operators; and relational and logic operators.

Where it is assessed

Papers 1 and 2

Computer Science 4CP0: this topic is examined on Paper 1, Principles of Computer Science (2 hours, 50%), and on Paper 2, Application of Computational Thinking (3 hours, on screen, 50%).

Check the Pearson Edexcel specification ↗

The 5 subtopics

Each one has its own page.

What you need to know

Answer each one before you reveal it.

Your recallNot started
Key term

Why does C# need variables declared with a type while Python does not?

Key term

What is the result of 23 / 4, 23 // 4 and 23 % 4 in Python?

Key term

Which symbols does the pseudocode command set use for modulus, integer division and exponent?

Key term

How are equal to and not equal to written in the pseudocode command set?

Process

How does an IF ... ELSE statement work?

Key term

What is a count-controlled loop?

Key term

Name the structural components of a program

Key term

Write Python code that prints Adult for an age of 18 or more and Child otherwise

Key term

What is the difference between a WHILE loop and a REPEAT UNTIL loop?

Key term

What symbols are used for the relational operators in Python?

Key term

What is a variable declaration?

Key term

Write Python code that gives grade A for 70 or more, B for 50 to 69 and U below 50

Key term

Write Python code that keeps asking for a password until the user enters secret

Key term

Name the six arithmetic operators

Key term

Why is == used for comparison in Python rather than =?

Take Programming Constructs and Operators further

The same content, four other ways.

Commonly confused

Pairs that lose marks when they are blurred together.

  • Count-controlled loop vs Condition-controlled loop

    Count-controlled loop: a loop that repeats a fixed number of times. Condition-controlled loop: a loop that repeats until a condition changes.

  • Modulus vs Integer division

    Modulus: an operator giving the remainder after division. Integer division: an operator giving the whole-number part of a division.

  • AND vs OR

    AND: a logic operator giving True only when every condition is true. OR: a logic operator giving True when at least one condition is true.

Questions from this topic

Each one with the model answer underneath.

  1. 1

    Name the structural components of a program.

    Model answer

    A program is built from variable and type declarations, command sequences, selection and iteration. Programs also use data structures and subprograms.

  2. 2

    What is a variable declaration?

    Model answer

    A variable declaration names a variable and, in some languages, states its data type before it is used.

  3. 3

    Why does the order of statements in a command sequence matter?

    Model answer

    Each statement may use a value set by an earlier statement. The sequence SET Price TO 10, SET Price TO Price * 2, SEND Price TO DISPLAY outputs 20. Swapping the last two statements outputs 10 instead.

  4. 4

    Why do programs use data structures?

    Model answer

    Data structures such as arrays hold many related values under one name. The program can then process all the values with a loop.

  5. 5

    Why do programs use subprograms?

    Model answer

    Subprograms split a program into named blocks that each do one task. A block can be called whenever it is needed.

  6. 6

    Identify the structural components in this Python code: total = 0, then for mark in marks: if mark > 50: total = total + 1.

    Model answer

    The code uses a variable, a data structure called marks and a FOR loop for iteration. An if statement provides selection.

Everything in your subscription

Runs, plus a mode for every other kind of session.

1Flash
2Imposter
3Fade
4Brain dump

Learn every subtopic in runs of four questions

Facts flash and fade, a wrong word hides in some of them, and a brain dump decides which questions are locked in.

Algorithms
Searching and Sorting Algorithms
Decomposition and Abstraction
Developing and Testing Code

Cram the night before, weakest topic first

A quick scan finds your weakest topics. Recall each fact you missed three times in a row.

Denary is a base system.
1028

Blank Blitz consolidates the facts

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

✓What it iscovered
~Why it happenspartly there
How long it lastsnot there yet

Explain It tests your understanding

Explain a concept in your own words and see which of its points you covered.

Nibble means a group of four bits.
TrueFalse

Test It catches misconceptions

Spot the fault in a statement. The faults are the mistakes students make most often.

721941163128510

Brain Breaks between sessions

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

Programming Constructs and Operators revision questions

What does Programming Constructs and Operators cover in Edexcel IGCSE Computer Science?
5 subtopics: the structure of a program, selection, iteration, arithmetic operators and relational and logic operators. Each one has its own page with questions and model answers.
How is Programming Constructs and Operators organised?
By the Edexcel 4CP0 specification, subtopic by subtopic, so it matches the order you are taught it in.

Every question in Programming Constructs and Operators, on a schedule.

Learn it in runs of four questions, each ending on a brain dump against the clock. Every question you lock in comes back the next day, then at longer gaps, each time just before you would forget it.

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