This study notes covers OCR Pseudocode Syntax within Trace Tables for GCSE Computer Science. Revise Trace Tables in Algorithms for GCSE Computer Science with 15 exam-style questions and 8 flashcards. This topic appears regularly enough that it should still be part of a steady revision cycle. It is section 4 of 7 in this topic. Use this study notes to connect the idea to the wider topic before moving on to questions and flashcards.
Topic position
Section 4 of 7
Practice
15 questions
Recall
8 flashcards
OCR Pseudocode Syntax
| Operation | Pseudocode | Example |
|---|---|---|
| Assignment | variable = value | score = 0 |
| Input | variable = input("prompt") | name = input("Enter name") |
| Output | print(value) | print("Hello") |
| IF statement | if...then...elseif...else...endif | if age>=18 then print("Adult") endif |
| FOR loop | for i = start to end...next i | for i = 1 to 10...next i |
| WHILE loop | while condition...endwhile | while x < 10...endwhile |