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 = yes THEN suspect = flu | AIF engine = silent THEN fault = battery | |
| 2IF rain = yes AND wind = high THEN storm = likely | BThe parts are in the wrong order: a rule must start with IF condition and then give THEN conclusion | |
| 3A rule links a fact to a conclusion using IF and THEN | CA single rule in the rule base: if the condition is true, the system draws the conclusion | |
| 4OR lets a rule fire when at least one of its conditions is true | DIF cough = yes OR sneeze = yes THEN check = cold | |
| 5THEN suspect = flu IF fever = yes | EAND makes the rule impossible to meet, because a temperature cannot be above 30 and below 10 at once | |
| 6IF temp > 30 AND temp < 10 THEN weather = hot | FA rule where both conditions must be true before the conclusion is drawn |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
rule base — The part of an expert system holding IF-THEN rules (IF condition THEN conclusion) that link facts to conclusions, often joined with AND/OR, which the inference engine uses to reach answers.IF fever = TRUE THEN diagnosis = "flu"IF fever = TRUE THEN diagnosis = "flu"IF fever = TRUE AND cough = TRUE
THEN diagnosis = "flu"IF rash = TRUE OR itch = TRUE
THEN advice = "see doctor"IF light = "red" THEN action = "stop"
IF light = "green" THEN action = "go"