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 | |
|---|---|---|
| 1ELSE IF mark >= 60 THEN | AThe ELSE IF condition is missing THEN after it | |
| 2ELSE DISPLAY "C" | BELSE IF must be written as two separate words, not ELSEIF | |
| 3A keyword used to chain another condition onto a selection block | CEND IF | |
| 4The single keyword pair that closes an entire chained selection block | DELSE IF | |
| 5IF x = 1 THEN DISPLAY "One" ELSEIF x = 2 THEN DISPLAY "Two" | EChecks another condition after the first one was false | |
| 6IF n < 5 THEN DISPLAY "Small" ELSE IF n < 10 DISPLAY "Medium" | FThe final branch that runs when no earlier condition matched |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
ELSE IF — A keyword that adds another condition to check if the previous IF or ELSE IF condition was falseIF x > 90 THEN
DISPLAY "A"
ELSE IF x > 50 THENELSE IF y < 10 THEN
DISPLAY "Low"
END IFELSE IF a = 2 THEN
DISPLAY "Two"
ELSEELSE IF score >= 70 THENELSE IF n = 3 THEN