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 | |
|---|---|---|
| 1Coding stage | AThe coding stage should follow the design. Ignoring the pseudocode or flowchart means the code may not match the plan. | |
| 2Build one sub-program at a time, then run it | BThe third PDLC stage, where the design is turned into program code in a programming language | |
| 3The design is the guide: each pseudocode line becomes a line of program code | CRequirement: reject marks over 100 -> IF Mark > 100 THEN | |
| 4Code is compared against the requirements to check it does what the user needs | DCode should be written in small parts and checked as you go. Leaving all checking to the end makes errors hard to find. | |
| 5Start writing code before the design is finished and ignore the flowchart | EOUTPUT "Enter a mark" becomes print("Enter a mark") | |
| 6Write the whole program in one go and only check it at the end | FCode is written in small parts so each part can be checked before the next is added |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
Coding stage — The third PDLC stage, where the design (pseudocode or flowchart) is turned into program code in a programming language, written step by step and checked against the requirements.// Stage 3 of the PDLC: Coding// Design: get the age from the user
INPUT Age// Design: add 1 to the count
Count ← Count + 1// Requirement: mark is 0 to 100
IF Mark >= 0 AND Mark <= 100 THEN// Design: repeat 5 times
FOR Count ← 1 TO 5
NEXT Count