The two types of AI in this course

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

The two types of AI in this course

Name:
Date:
Class:

Quick Questions

Shade in the A or B circle for each question.

1. How many types of AI does the 0478 course ask you to know?
A Two: expert systems and machine learning
B Four: expert systems, machine learning, robots and chatbots
2. Which statement describes an expert system?
A It uses stored facts and rules to give advice
B It learns from data to improve its own results
3. Which statement describes machine learning?
A It only follows fixed rules typed in by an expert
B It learns from data and improves over time
4. A question asks you to name a type of AI. Which answer would be accepted for 0478?
A Computer vision
B Machine learning
5. A medical program asks the doctor questions, applies stored rules and suggests a diagnosis. Which type of AI is it?
A Expert system
B Machine learning

Match the Pairs

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

Left columnRight column
1expert system AThis describes an expert system, not machine learning. Machine learning learns from data and improves, rather than only following fixed rules.
2machine learning BOne of the two AI types in the course: it uses stored facts and rules to give advice or make decisions
3An AI type that applies stored IF-THEN rules written from experts' knowledge Cmodel = train(data)
4An AI type that improves by finding patterns in lots of training data DRobotics is wrongly listed as a third type. The course covers only two types of AI: expert systems and machine learning. Other kinds are not examined.
5AI types = expert system, machine learning, robotics EThe other AI type in the course: it learns from data and improves its performance over time
6machine learning = fixed rules from an expert FIF fever AND cough THEN flu

Definitions

Two types of AI: expert systems and machine learning

Fill in the Blanks

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

1.
AI type 1: expert system AI type 2: ________________
2.
expert system: stored facts and _____
3.
machine learning: learns from ____
4.
numberOfAITypes ← _
5.
Other kinds of AI are ___ examined

Spot the Error

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

Question 1
A INPUT usesRulesAndFacts
B IF usesRulesAndFacts THEN
C OUTPUT "Machine learning"
D ELSE
E OUTPUT "Machine learning"
Question 2
A type1 ← "expert system"
B type2 ← "machine learning"
C total ← 2
D OUTPUT type1 + " and " + type3
Question 3
A INPUT kind
B IF kind = "expert system"
C OUTPUT "Examined"
D ENDIF
Question 4
A expert ← "facts and rules"
B learner ← "fixed rules only"
C OUTPUT expert
Question 5
A INPUT adaptsFromData
B IF adaptsFromData = TRUE THEN
C type ← "expert system"
D ELSE
E type ← "expert system"
F OUTPUT type

Answer Key

The two types of AI in this course
Section A: Quick Questions
Q1
A — Two: expert systems and machine learning
Q2
A — It uses stored facts and rules to give advice
Q3
B — It learns from data and improves over time
Q4
B — Machine learning
Q5
A — Expert system
Section B: Match the Pairs
Q1
expert system → One of the two AI types in the course: it uses stored facts and rules to give advice or make decisions
Q2
machine learning → The other AI type in the course: it learns from data and improves its performance over time
Q3
An AI type that applies stored IF-THEN rules written from experts' knowledge → IF fever AND cough THEN flu
Q4
An AI type that improves by finding patterns in lots of training data → model = train(data)
Q5
AI types = expert system, machine learning, robotics → Robotics is wrongly listed as a third type. The course covers only two types of AI: expert systems and machine learning. Other kinds are not examined.
Q6
machine learning = fixed rules from an expert → This describes an expert system, not machine learning. Machine learning learns from data and improves, rather than only following fixed rules.
Section C: Definitions
Q1
Two types of AI: expert systems and machine learning — The 0478 course covers only two types of AI. An expert system uses stored facts and rules to give advice. Machine learning learns from data to improve. Other kinds of AI are not examined.
Section D: Fill in the Blanks
Q1
AI type 1: expert system AI type 2: machine learning
Q2
expert system: stored facts and rules
Q3
machine learning: learns from data
Q4
numberOfAITypes ← 2
Q5
Other kinds of AI are not examined
Section E: Spot the Error
Q1
C — A system that uses stored rules and facts is an expert system, so this branch should output "Expert system". Machine learning belongs in the ELSE branch.
Q2
D — Only two types of AI are examined and only type1 and type2 exist. type3 was never declared, so the line should use type2 (machine learning).
Q3
B — An IF statement must end with THEN. The line should be IF kind = "expert system" THEN.
Q4
B — Machine learning learns from data and examples to improve. Fixed rules only describes an expert system, so the line should be learner ← "data and examples".
Q5
C — If a system adapts by learning from data, it is machine learning. This line should set type to "machine learning"; the expert system belongs in the ELSE branch.