UTAMU
SCHOOL OF COMPUTING AND ENGINEERING
Bs.CS YEAR 2 SEMESTER ONE
TEST ONE: CS 203 ARTIFICIAL INTELLIGENCE
Date: 8/03/2021. 11:30 am
Instructions: All questions are compulsory. Indicate formulae where necessary. Avoid
Plagiarism or any form of copying as it will lead to cancellation of your submission.
Duration: 1.5 hours
1. Define the following terms:
i. Intelligent (1 Mark)
ii. ii. Rational Agent (1 Mark)
2. Explain the Concept of Artificial Intelligence and explain four applications where
this concept is being used. (8 Marks)
3. Describe these environment types, giving an example of the agents that operate
in such an environment
a) Deterministic vs Stochastic (2 Marks)
b) Single Agent vs Multi Agent (2 Marks)
4. Describe the components of a Learning Agent (4 Marks)
5. With the aid of a diagram, explain the difference between utility-based agent and
a goal-based agent (4 Marks)
6. What is the difference between Inductive Learning and Deductive learning? (2
Marks)
7. I don’t have a car. I come to work either by bike or by bus. If I take the bus, there
is a 10% chance that I’m late. If I take the bike, there is a 2% chance that I’m
late. I take the bike 4 days out of 5. Today I was late.
a) Write down and explain the formula used in Bayes' theorem for this problem.
(2marks)
b) Use Bayes theorem to calculate the probability that I took the bus today
(4marks)
8. Consider a small abstract of example data predicting the amount of loan that can
be given by a money lender based on the age of the client. Identify whether this
is a classification or regression problem - explain your answer. [2 marks]
# Age(X) Loan(y)
1 18 285000
2 24 1000500
3 27 7850000
a) Consider a hypothetical case where emails are sent by Faith and Tom. Sample
emails sent are below. Calculate P(Faith), P(Tom), P(u|Faith), P(b|Tom) [4 marks]
Faith: [(a,b,a,c,c,p),(d,e,f,f,a),(u,u,p,e)]
Tom: [(b,b,a,p),(c,c,t,t,d,u),(p,u,p,u),(p,a,f,d)]
b) If you receive an email like this (u,p,b,a,c). Who would you suspect sent this
email? [4 marks]
END