Question 1(a)(i) 2018 · October-November · Paper 43 · 2 marks
Reveal official mark-scheme answer
Official answer for Question 1
Part (a)
(i)
Question 1
mark for each correct statement:
Question 2
Show text version of question
Question 1
Part (a)
(i)
Question 1
A declarative language is used to represent the following facts and rules about animals.
01 feature(dog, drinks_milk).
02 feature(dog, has_lungs).
03 feature(horse, has_lungs).
04 feature(tuna, lives_in_water).
05 feature(tuna, has_gills).
06 feature(crab, lives_in_water).
07 mammal(drinks_milk).
08 mammal(has_lungs).
09 fish(lives_in_water).
10 fish(has_gills).
11 is_a_mammal(X) IF (feature(X, Y) AND mammal(Y)) AND (feature(X, Z) AND mammal(Z)).
These clauses are explained in the following table.
Clause Explanation 01 A dog has the feature, drinks milk 07 A mammal drinks milk 11 X is a mammal, if:
- X has the feature Y and a mammal has a feature Y, and
- X has the feature Z and a mammal has the feature Z
More facts are to be included.
(i)
A bird has wings, and a bird lays eggs.
Write the additional clauses to record these facts.
12 ......................................................................................................................................
13 ......................................................................................................................................
Why this question appears here
71% assigned-topic match · Programming › Constructs
Topic-match percentages estimate how closely each question fits the selected syllabus topic. They are a guide for choosing stricter or broader practice.
Permanent source page: Educate A Change · From 9608_w18_qp_43.pdf
