INPUT command
INPUT followed by a variable name reads a value typed by the user and stores it in that variable. Use one variable per INPUT, and OUTPUT a prompt first.
Understanding INPUT command in IGCSE Computer Science Paper 2
What it does: The OUTPUT line prompts the user and INPUT Name stores what they type in the variable Name. Each INPUT command reads one value into one variable, so two values need two INPUT lines. Cambridge pseudocode allows one variable per INPUT, so the two names must be split over two INPUT commands.
Common mistakes: INPUT reads a value into a variable, so it needs a variable name, not a message. Use OUTPUT to show the prompt: OUTPUT "Enter your name". Cambridge pseudocode keywords are written in capital letters. It should be INPUT Score.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 27–36) and word search (Modules 27–46).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
INPUT AnswerFill in the Blanks
Spot the Error
Student with a class code? Join your class →