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 | |
|---|---|---|
| 1abstraction | ARemove a detail that does not help the solution work, such as the colour of a library book | |
| 2IF detail NOT needed THEN IGNORE it | BToo much detail: colour, weight and cover art are not needed, so the problem is harder than it should be | |
| 3A library system needs the book title and the borrower to record a loan, so these details are kept | Cloan <- [bookTitle, borrowerName] | |
| 4The book's colour is irrelevant to lending, so it is left out of the record | DToo little detail: the borrower is missing, so the system cannot tell who has the book and the solution fails | |
| 5loan <- [bookTitle] | Ebook <- [title, author] // no colour | |
| 6loan <- [title, borrower, colour, weight, coverArt] | FKeeping only the details the solution needs to work and ignoring the rest |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
abstraction — Keep only the details the solution needs to work and ignore the rest. A library system needs the book title and borrower, not the book's colour. Too few details fails; too many makes it harder.INPUT BookTitleBorrower ← "Mia"INPUT BookTitle
OUTPUT BookTitleIF DaysLate > 0 THEN
OUTPUT "Fine due"
ENDIFPROCEDURE CheckOut(Borrower, BookTitle)
OUTPUT Borrower, BookTitle
ENDPROCEDURE