INSTRUCTIONS: Question One Is Compulsory, Choose Two Other Questions
INSTRUCTIONS: Question One Is Compulsory, Choose Two Other Questions
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)
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:
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: