Past-paper question · 2018 October-November · Paper 43 · Q1(b)(i)

Question 1(b)(i) 2018 · October-November · Paper 43 · 2 marks

Original past-paper question for 1(B)(I)
Original past-paper question for 1(B)(I)
Reveal official mark-scheme answer Official mark-scheme answer for 1(B)(I)

Official answer for Question 1

Part (b)

(i)

Question 1

mark for each animal:

Question 2

✓
tuna, crab

Mark scheme 9608_w18_ms_43.pdf →

Show text version of question

Question 1

Part (b)

(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

(i)

Using the variable B, the goal

feature(B, drinks_milk)

returns

B
= dog

Write the result returned by the goal

feature(B, lives_in_water)

B
= ..............................................................................................................................
[2]
Topic relevance

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

Keep practising this topic