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 | |
|---|---|---|
| 1decomposition | AShowing the score is an output sub-problem, not an input. Input is getting the player's answer. | |
| 2input, process, output | BThree kinds of sub-problems: getting data in, working with it, and showing the result | |
| 3Sub-problems that are independent can be solved separately by different people | CThis does not split the problem into smaller parts. It should be split into sub-problems like input (answers), process (check score) and output (show result). | |
| 4After solving each sub-problem, combine the solutions to solve the whole problem | DSub-problem A: design the quiz questions Sub-problem B: design the score screen | |
| 5Decompose a quiz app: 1. Make the whole app at once | ESplitting a big problem into smaller sub-problems that can each be solved on their own | |
| 6Sub-problems: Input = the score is shown on screen | FCombine: menu + order form + receipt = canteen ordering app |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
decomposition — Splitting a big problem into smaller sub-problems, such as input, process and output. Each part can be solved on its own, then the solutions are combined.Problem: Make a quiz score app
Sub-problem 1: Input the answers
Sub-problem 2: Process the scoreSub-problem 1: Input the answers
Sub-problem 2: Process the score
Sub-problem 3: Output the resultInput: type in the quiz answers
Process: add up the correct answers
Output: show the final scoreProblem: Plan a class party
Decompose into: food, music, invites
Solve each part on its ownSub-problem A: solved on its own
Sub-problem B: solved on its own
solution = combine(A, B)