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 | |
|---|---|---|
| 1PROCEDURE ShowMenu | APROCEDURE ShowMenu OUTPUT "1. Play" OUTPUT "2. Quit" ENDPROCEDURE | |
| 2ENDPROCEDURE | BPROCEDURE PrintLine | |
| 3The statements in the body of a procedure are indented under the PROCEDURE line | CENDPROCEDURE is missing, so the procedure is never closed. Add ENDPROCEDURE on the last line. | |
| 4A procedure with no parameters is named without brackets after PROCEDURE | DBrackets were added although there are no parameters. The header should be PROCEDURE ShowMenu. | |
| 5PROCEDURE ShowMenu OUTPUT "1. Play" OUTPUT "2. Quit" | EStarts a procedure with no parameters: the keyword PROCEDURE and then the name, with no brackets | |
| 6PROCEDURE ShowMenu() | FCloses the procedure definition after the indented statements in its body |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
PROCEDURE ShowMenu — Starts a procedure with no parameters: the keyword PROCEDURE, then its name with no brackets. Indented statements follow, and ENDPROCEDURE closes it.PROCEDURE ShowMenu
OUTPUT "1. Play"
ENDPROCEDUREPROCEDURE Greet
OUTPUT "Hello"
ENDPROCEDUREPROCEDURE PrintLine
OUTPUT "-----"
ENDPROCEDUREPROCEDURE ShowMenu
OUTPUT "Menu"
ENDPROCEDUREPROCEDURE AskName
INPUT Name
ENDPROCEDURE