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 | |
|---|---|---|
| 1IF fever = TRUE AND rash = TRUE THEN diagnosis ← "measles" | ALooking up a stored answer, which is not reasoning | |
| 2answer ← LOOKUP(savedAnswers, question) | BPrinting a saved answer is only a lookup. Reasoning means using rules on data to work out a new conclusion. | |
| 3Reasoning step by step: the first conclusion becomes a new fact for the next rule | CIF age < 18 AND ticket = TRUE THEN price ← "child" | |
| 4Combining facts and rules reaches a new conclusion that was never stored | DIF wet = TRUE THEN slippery ← TRUE IF slippery = TRUE THEN warning ← TRUE | |
| 5A system reasons whenever it prints a saved answer from its data | EA rule that combines two facts to reach a conclusion | |
| 6IF rain = TRUE THEN umbrella ← TRUE (the rule is never applied to any facts) | FA rule on its own is not reasoning. The system must use the rule on its data (such as rain = TRUE) to reach a conclusion. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
reasoning — An AI system reasons when it applies its rules to its data to work out a new conclusion that was not stored directly, instead of just looking up a saved answer.IF fever AND cough THEN fluIF fever AND cough THEN fluIF fever AND cough THEN fluIF cat THEN mammal ← TRUE
IF mammal THEN animal ← TRUE
OUTPUT animalfever ← TRUE
cough ← TRUE
IF fever AND cough THEN flu ← TRUE