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 | |
|---|---|---|
| 1inference engine | AThe reasoning part of an expert system that works out a conclusion | |
| 2inference engine + rule base | Bconclusion = inference_engine.match(answers, knowledge_base, rule_base) | |
| 3The inference engine chooses which question to ask next, based on the answers given so far | CThis confuses the inference engine with the knowledge base. The knowledge base stores the facts; the inference engine reasons using them. | |
| 4The inference engine matches the user's answers and the knowledge base against the rule base to reach a conclusion | Dnext_question = inference_engine.choose(answers, rule_base) | |
| 5The inference engine stores all the facts about the subject, so it is the knowledge base. | EThe inference engine applies the IF-THEN rules to the facts it has | |
| 6The inference engine is the screen where the user types answers and reads the advice. | FThis describes the expert system interface, not the inference engine. The inference engine does the reasoning behind the scenes. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
inference engine — The part of an expert system that reasons: it matches the user's answers and the knowledge base against the rule base to reach a conclusion. It is the 'brain' of the system.IF temperature > 38 THEN diagnosis ← "fever"result ← InferenceEngine(kb, rule_base)question ← NextQuestion(rule_base)IF fever = TRUE AND rash = TRUE THENconclusion ← InferenceEngine(kb, rb, ans)