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 | |
|---|---|---|
| 1DECLARE TotalScore : INTEGER | AA meta-variable in angled brackets that stands for any identifier you choose to write | |
| 2<identifier> | BThe keywords DECLARE and INTEGER are written in lower case. They must be in upper case, and the identifier should be PascalCase: DECLARE TotalScore : INTEGER | |
| 3Keywords such as CONSTANT are written in upper case and identifiers use PascalCase | CThe lines inside the IF statement are not indented. THEN and OUTPUT should be indented by four spaces. | |
| 4Lines inside a statement are indented by four spaces | DIF Score > 50 THEN OUTPUT "Pass" ENDIF | |
| 5declare totalscore : integer | ECONSTANT MaxScore ← 100 | |
| 6IF Age >= 16 THEN OUTPUT "Adult" ENDIF | FA keyword in upper case followed by an identifier in PascalCase, the standard layout for declaring a variable |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
DECLARE TotalScore : INTEGER — Pseudocode layout convention: keywords in UPPER CASE, identifiers in PascalCase, and lines inside a statement indented four spaces. Meta-variables use angled brackets, like <identifier>.DECLARE TotalScore : INTEGERCONSTANT MaxScore ← 100INPUT PlayerNameIF Score > 50 THEN
OUTPUT "Pass"
ENDIFDECLARE <identifier> : <data type>