UNIVERSITY EXAMINATIONS: 2023/2024
EXAMINATION FOR THE DEGREE OF BACHELOR OF SCIENCE IN
SOFTWARE DEVELOPMENT/ BACHELOR OF SCIENCE IN APPLIED
COMPUTING/ BACHELOR OF SCIENCE IN INFORMATION
TECHNOLOGY
BIT 04206 / BAC 2305/ BSD 2303/ EXPERT SYSTEMS
FULLTIME/ PART TIME/DISTANCE LEARNING
ORDINARY EXAMINATION
DATE: AUGUST, 2024 TIME: 2 HOURS
INSTRUCTIONS: Question One Is Compulsory, Choose Two Other Questions
QUESTION ONE (20 MARKS) Compulsory
a) Describe the usage of the deffunction construct [4 marks]
b) Explain the characteristics of a human expert [6 marks]
c) Describe the three major components of expert systems [6 marks]
d) Explain using relevant examples the problem areas addressed by expert systems
[4 marks]
QUESTION TWO (15 MARKS)
a) What is the role of internet in knowledge acquisition? [5 marks]
b) Explain the following code [6 marks]
(deftemplate emergency (slot type) (slot location))
(deftemplate fire-squad (slot name) (slot location))
(deftemplate evacuated (slot building))
(defrule all-fires-being-handled
(forall (emergency (type fire) (location ?where))
(fire-squad (location ?where))
(evacuated (building ?where)))
=>
(printout t “All buildings that are on fire “ crlf
1
“have been evacuated and” crlf
“have firefighters on location” crlf))
c) What is the contribution of machine learning in expert systems [4 marks]
QUESTION THREE (15 MARKS)
a) What are the difficulties in knowledge acquisition [6 marks]
b) Using appropriate examples describe the structure of the defrule in CLIPS
[5 marks]
c) Describe the two basic forms of computational logic [4 marks]
QUESTION FOUR (15 MARKS)
a) Explain each line of the following code snippet [5 marks]
(deftemplate person
(multislot name)
(multislot children))
(deffacts some-people
(person (name John Q. Public)
(children Jane Paul Mary))
(person (name Jack R. Public)
(children Rick) ) )
(defrule print-children
(print-children $?name)
(person (name $?name)
(children $?children))
=>
(printout t ?name " has children" ?children
crlf) )
d) What are the considerations for evaluating a knowledge representation [6 marks]
e) Discuss the applicability of the following in developing the inference engine
i) Conditional probability [2 marks]
ii) Bayes probability [2 marks]