Input with INPUT
Reads a value typed by the user and stores it in the variable named after INPUT (here Answer). Declare the variable first; its data type decides what can be entered.
Understanding Input with INPUT in IGCSE Computer Science Paper 2
What it does: DECLARE sets up the variable and its data type first, so INPUT has somewhere to store the value. The OUTPUT line is the prompt and the INPUT line stores the reply in Number. INPUT reads a value from the user. Displaying a message is the job of OUTPUT. A name is text, so the variable should be a STRING. A BOOLEAN can only hold TRUE or FALSE.
Common mistakes: Cambridge pseudocode uses the keyword INPUT to read a value from the user, not READ. The line should be INPUT Name. INPUT is a statement, not a value to assign. The variable name goes after INPUT, so the line should be INPUT Age.
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 327–336) and word search (Modules 317–336).
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 →