Past-paper question · 2018 October-November · Paper 41 · Q1(d)(i)

Question 1(d)(i) 2018 · October-November · Paper 41 · 1 mark

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

Official answer for Question 1

Part (d)

(i)

✓
A programming style/classification // characteristics/features that programming language has/uses

Question 1

Mark scheme 9608_w18_ms_41.pdf →

Show text version of question

Question 1

Part (d)

(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

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

(i)

Define the term programming paradigm.

...........................................................................................................................................

......................................................................................................................................

[1]
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_41.pdf

Keep practising this topic