Past-paper question · 2018 October-November · Paper 43 · Q1(d)(ii)

Question 1(d)(ii) 2018 · October-November · Paper 43 · 2 marks

Original past-paper question for 1(D)(II)
Original past-paper question for 1(D)(II)
Original past-paper question for 1(D)(II)
Original past-paper question for 1(D)(II)
Reveal official mark-scheme answer Official mark-scheme answer for 1(D)(II)

Official answer for Question 1

Part (d)

(ii)

Question 1

mark for each:

Question 2

✓
•
✓
Low-level
✓
•
✓
Imperative // Procedural
✓
9608/43
✓
Cambridge International AS/A Level – Mark Scheme
✓
October/November 2018
✓
PUBLISHED
✓
Question
✓
Answer
✓
Marks

Mark scheme 9608_w18_ms_43.pdf →

Show text version of question

Question 1

Part (d)

(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

Declarative programming and object-oriented programming are two examples of programming paradigms.

(ii)

Give two examples of programming paradigms, other than declarative and object-oriented

programming.

1 ........................................................................................................................................

2 ........................................................................................................................................

[2]

Question 4

Topic relevance

Why this question appears here

98% assigned-topic match · Further programming › Programming paradigms

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