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 | |
|---|---|---|
| 1CALL ValidateAge() | AThis does not share the work. Sub-problems should be split between team members so they are written at the same time. | |
| 2Programmer A: PROCEDURE Login() Programmer B: PROCEDURE Report() | BCopying the same code again and again wastes time and risks errors. The check should be one subroutine that is reused. | |
| 3A validation subroutine written once can be reused in many programs | CFUNCTION ValidateInput(Value : INTEGER) RETURNS BOOLEAN | |
| 4A specialist works on the sub-problem that matches their skills | DRuns a finished validation subroutine that was already written, so it can be reused in a program without rewriting it | |
| 5Copy and paste the age check code into every new program | EDatabase expert writes PROCEDURE SaveRecords() | |
| 6One programmer writes all of the sub-problems one after another | FDifferent team members write different sub-problems at the same time |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
team work and reuse — Different programmers write separate sub-problems at the same time, using their own skills, and finished parts such as a validation subroutine can be reused in other programs.CALL ValidateAge()FUNCTION Check(N : INTEGER) RETURNS BOOLEANPROCEDURE ShowMenu()
OUTPUT "1. Play 2. Quit"
ENDPROCEDUREPROCEDURE CheckAge()
ENDPROCEDURE
CALL CheckAge()IF Age >= 0 AND Age <= 120 THEN