Expert system interface

Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.

Expert system interface

Name:
Date:
Class:

Quick Questions

Shade in the A or B circle for each question.

1. What is the interface of an expert system?
A The part the user sees and uses to enter answers and read the conclusion
B The part that stores all the expert's facts and rules
2. Which of these does the interface do?
A Searches the rule base for a matching rule
B Displays questions to the user
3. How does a user give the expert system information about their problem?
A By entering answers through the interface
B By editing the rule base directly
4. Where does the user see the final result of an expert system?
A The conclusion is displayed on the interface
B The conclusion stays hidden inside the inference engine
5. Why should an expert system interface be user-friendly?
A So only trained experts can use it
B So non-experts can use it without special training

Match the Pairs

Draw a line connecting each item on the left to its match on the right.

Left columnRight column
1Interface shows: "Does the patient have a fever? (Y/N)" AOUTPUT "Diagnosis: Flu"
2INPUT answer BOUTPUT "Is the engine making a noise? (Y/N)"
3The interface displays the conclusion to the user once the system has finished reasoning CThis describes the knowledge base and rule base, not the interface. The interface only handles input and output between the user and the system.
4A user-friendly interface lets non-experts choose from simple options instead of using technical terms DThe interface should be user-friendly for non-experts. Needing expert training defeats the purpose of an expert system.
5The interface stores the rules and facts that experts have collected EThe interface displays a question to the user
6The interface is designed so that only a trained expert can use it FThe interface lets the user enter an answer or fact

Definitions

user interface

Fill in the Blanks

Complete each line of code by filling in the missing parts.

1.
______ "Is the engine making a noise?"
2.
OUTPUT "Is the engine making a noise?" _____ answer
3.
______ "Conclusion: Check the battery"
4.
INPUT answer IF ______ = "YES" THEN
5.
OUTPUT "Enter symptom (YES/NO):" _____ symptom

Spot the Error

Shade in the letter of the line that contains an error.

Question 1
A OUTPUT "Is the car starting?"
B INPUT answer
C IF answer = "no" THEN
D INPUT "Check the battery"
E ENDIF
Question 2
A OUTPUT "Do you have a fever?"
B INPUT fever
C IF fever = "yes" THEN
D OUTPUT fever
E ENDIF
Question 3
A OUTPUT "Is the rash itchy?
B INPUT reply
C IF reply = "yes" THEN
D OUTPUT "Try a cream"
E ENDIF
Question 4
A INPUT "Welcome to Pet Help"
B OUTPUT "Is your pet a dog?"
C INPUT answer
D IF answer = "yes" THEN
E OUTPUT "Walk it daily"
F ENDIF
Question 5
A OUTPUT "Is the light on?"
B INPUT answer
C IF answer = "no"
D OUTPUT "Check the bulb"
E ENDIF

Answer Key

Expert system interface
Section A: Quick Questions
Q1
A — The part the user sees and uses to enter answers and read the conclusion
Q2
B — Displays questions to the user
Q3
A — By entering answers through the interface
Q4
A — The conclusion is displayed on the interface
Q5
B — So non-experts can use it without special training
Section B: Match the Pairs
Q1
Interface shows: "Does the patient have a fever? (Y/N)" → The interface displays a question to the user
Q2
INPUT answer → The interface lets the user enter an answer or fact
Q3
The interface displays the conclusion to the user once the system has finished reasoning → OUTPUT "Diagnosis: Flu"
Q4
A user-friendly interface lets non-experts choose from simple options instead of using technical terms → OUTPUT "Is the engine making a noise? (Y/N)"
Q5
The interface stores the rules and facts that experts have collected → This describes the knowledge base and rule base, not the interface. The interface only handles input and output between the user and the system.
Q6
The interface is designed so that only a trained expert can use it → The interface should be user-friendly for non-experts. Needing expert training defeats the purpose of an expert system.
Section C: Definitions
Q1
user interface — The part of an expert system the user sees. It shows questions, lets the user enter answers and facts, and displays the conclusion in a simple way for non-experts.
Section D: Fill in the Blanks
Q1
OUTPUT "Is the engine making a noise?"
Q2
OUTPUT "Is the engine making a noise?" INPUT answer
Q3
OUTPUT "Conclusion: Check the battery"
Q4
INPUT answer IF answer = "YES" THEN
Q5
OUTPUT "Enter symptom (YES/NO):" INPUT symptom
Section E: Spot the Error
Q1
D — The conclusion must be shown to the user, so it needs OUTPUT. INPUT would wait for the user to type something instead. It should be OUTPUT "Check the battery".
Q2
D — This displays the user's own answer instead of the conclusion. The interface should display the conclusion, OUTPUT "See a doctor".
Q3
A — The question text is missing its closing quote, so the interface cannot display it properly. It should be OUTPUT "Is the rash itchy?".
Q4
A — A welcome message is shown to the user, so it needs OUTPUT. INPUT is for the user entering answers. It should be OUTPUT "Welcome to Pet Help".
Q5
C — The IF line is missing THEN. The expert system can only act on the user's answer if the rule is written correctly: IF answer = "no" THEN.