Question 1(a)(ii) 2018 · October-November · Paper 43 · 2 marks
Reveal official mark-scheme answer
Official answer for Question 1
Part (a)
(ii)
Question 1
mark for each correct line:
Question 2
Show text version of question
Question 1
Part (a)
(ii)
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.
(ii)
An eagle has all the features of a bird.
Write the additional clauses to record this fact.
14 ......................................................................................................................................
15 ......................................................................................................................................
Question 3
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
