Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
Shade in the A or B circle for each question.
Draw a line connecting each item on the left to its match on the right.
| Left column | Right column | |
|---|---|---|
| 1Algorithm: find the larger input a, b if a > b then print a | AWrong — this is Python syntax, not pseudocode. Pseudocode does not use def, colons after conditions or print() with parentheses | |
| 2# Pseudocode is a design tool # written before coding begins # to plan algorithm logic | BPseudocode belongs to the design stage and is written before any programming language code to plan and communicate algorithm logic | |
| 3Pseudocode uses plain English and common symbols without following any specific programming language syntax | CWrong — pseudocode is not a programming language and cannot be compiled or run. It is a human-readable design tool only | |
| 4Pseudocode is read by humans to verify algorithm logic and is never executed or compiled by a computer | DAlgorithm: check age input age if age >= 18 then print "Adult" end if | |
| 5def check(x): if x > 0: print("positive") | EA valid pseudocode example: uses plain English, common symbols and no language-specific syntax to describe an algorithm step by step | |
| 6# Pseudocode is a programming # language that compiles and # runs on any computer | F# Pseudocode -> human reads it # Real code -> computer runs it # Both describe the same logic |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
pseudocode — A way of writing algorithms using plain English and common symbols without the rules of any specific programming language, used to plan logic before coding begins# Pseudocode describes an algorithm# Pseudocode is read by humans# Pseudocode uses plain English# Pseudocode is a design tool# Pseudocode has no language rules