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 | |
|---|---|---|
| 1Age >= 18 | AThe condition is written in words. It should use a symbol: IF Age >= 18 THEN. | |
| 2Mark <> 0 | BA precise condition that is true when Age is 18 or more | |
| 3To test whether a name is Ali, use the = symbol with the text in double quotes, not words | CThe condition is written in words. It should be IF Mark <> 0 THEN, using the not equal symbol. | |
| 4A decision in a flowchart must also hold a symbol condition, not a sentence | DAge >= 18 ? | |
| 5IF Age is 18 or more THEN | EA precise condition that is true when Mark is not zero | |
| 6IF Mark is not zero THEN | FName = "Ali" |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
Age >= 18 — Write a condition with symbols such as >=, <> and =, not words. Age >= 18 is correct; 'Age is 18 or more' is not accepted. This applies in pseudocode and flowcharts.IF Age >= 18 THEN
OUTPUT "Adult"
ENDIFIF Mark <> 0 THEN
OUTPUT "Has a mark"
ENDIFIF Name = "Ali" THEN
OUTPUT "Hello Ali"
ENDIFFlowchart decision diamond:
Age < 18 ?IF Age >= 18 AND Age <= 65 THEN