[go: up one dir, main page]

0% found this document useful (0 votes)
47 views3 pages

INSTRUCTIONS: Question One Is Compulsory, Choose Two Other Questions

AI Programming Past Paper

Uploaded by

2003944
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
47 views3 pages

INSTRUCTIONS: Question One Is Compulsory, Choose Two Other Questions

AI Programming Past Paper

Uploaded by

2003944
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

UNIVERSITY EXAMINATIONS: 2023/2024

EXAMINATION FOR THE DEGREE OF BACHELOR OF SCIENCE IN


INFORMATION TECHNOLOGY / BUSINESS I. T/ APPLIED
COMPUTING/ INFO. SECURITY & FORENSICS/ SOFTWARE DEV.
BAC 3102 / BSD 3102: ARTIFICIAL INTELLIGENCE PROGRAMMING
FULL TIME/PART-TIME/DSTANCE LEARNING
ORDINARY EXAMINATIONS
DATE: DECEMBER, 2023 TIME: 2 HOURS

INSTRUCTIONS: Question One Is Compulsory, Choose Two Other Questions

QUESTION ONE (20 marks) Compulsory

a) Define a comment in the context of LISP programming and show the syntax for implementing
a comment (1 Mark)
b) LISP data types can be categorized as Scalar types and Data structures. Describe each category
and provide any two (2) types in each category (2 Marks)
c) What is a Macro in LISP? (1 Mark)
d) Show the output of the following LISP program (2 Marks)

(defmacro setTo10(num)
(setq num 10)(print num))
(setq x 25)
(print x)
(setTo10 x)

e) Use a truth table to prove that that P → Q is equivalent to ¬ Q → ¬ P, and Q→ P is equivalent


to ¬ P → ¬ Q : (3 Marks)
f) Compare and contrast inductive and deductive reasoning (3 Marks)
g) What is a function in LISP? (1 Mark)
h) Show the syntax for declaring a function. Include the 3 arguments needed in a declaration
(1 Mark)
i) Simple arguments can be used as building blocks to construct more complicated valid
arguments. Certain simple arguments that have been established as valid are very important in
terms of their usage. These arguments are called Rules of Inference. Using examples, explain
any four (4) rules of inference in propositional logic (4 Marks)
j) Briefly identify the 2 variable scopes in LISP programming. For each scope identified, use an
example to show the syntax used to declare such variables. (2 Marks)

QUESTION TW0 (15 marks)

a) What is probabilistic reasoning in AI? (1 Mark)


b) Why do we need probabilistic reasoning in AI? (2 Marks)
c) Identify any four (4) causes of uncertainty in the real world? (2 Marks)
d) Use Bayes’ theorem to compute the the probability of the following event:

What is the probability that a patient has diseases meningitis with a stiff neck?
(5 Marks)

Given Data:

A doctor is aware that disease meningitis causes a patient to have a stiff neck, and it occurs
80% of the time. He is also aware of some more facts, which are given as follows:

o The Known probability that a patient has meningitis disease is 1/30,000.


o The Known probability that a patient has a stiff neck is 2%.

e) Why is knowledge engineering important (3 Marks)


f) Briefly outline any 3 relevant skills sets of a knowledge engineer? (2 Marks)

QESTION THREE (15 marks)

a) Using a diagram explain the components of a production system (3 Marks)


b) Outline the steps involved in building and deploying an AI production system (5 Marks)
c) Identify any 3 real-world examples of AI production systems currently in use (3 Marks)
d) Compare and contrast planning agents and learning agents (4 Marks)
QUESTION FOUR (15 marks)

Imagine we have the following data about a marketing strategy. Let’s assume the company sent
out some promotion material to various houses and recorded a few facts about each house and also
whether the people responded or not:

Required:

a) Calculate the Average Entropy of this training data. (3 Marks)


b) Calculate the Average Entropy due to each attribute. (10 Marks)
c) Which is the best attribute to have as the root node in the construction of the decision tree?
Show all your workings. (2 Marks)

You might also like