Comments with // (7a)
Two forward slashes start a comment. Everything after // to the end of the line is ignored by the computer and only explains the code to the reader.
Understanding Comments with // (7a) in IGCSE Computer Science Paper 2
What it does: The // line is a comment placed above the INPUT statement to explain what it does. Pseudocode has no block comment, so each line of a longer comment begins with its own //. Everything after // is only an explanation for the reader. The computer ignores it. The // goes before the comment text. Code comes first, then // and the comment. Comments do not change what the program does. They help people understand the code. Two forward slashes // start a comment. Backslashes do not.
Common mistakes: Cambridge pseudocode comments start with //, not #. The line should be: Area ← Width * Width // square. A comment needs two forward slashes. A single / is the division operator, so the line should end with // add them.
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 17–26) and word search (Modules 1–26).
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
//Fill in the Blanks
Spot the Error
Student with a class code? Join your class →