Question 3(c) 2017 · October-November · Paper 41 · 6 marks
Reveal official mark-scheme answer
Official answer for Question 3
Part (c)
Question 1
mark per bullet
Question 6
- might_like(B,A)
- Person(B)
- Food(A)
- AND
- AND NOT
- Dislikes predicate
Show text version of question
Question 3
Part (c)
Question 3
A declarative programming language is used to represent the following knowledge base:
01 person(jane). 02 person(ahmed). 03 person(caroline). 04 person(stuart). 05 food(chocolate). 06 food(sushi). 07 food(pizza). 08 food(chilli). 09 likes(jane, pizza). 10 likes(ahmed, chocolate). 11 likes(ahmed, pizza). 12 likes(jane, chilli). 13 likes(stuart, sushi). 14 dislikes(stuart, chocolate). 15 dislikes(jane, sushi). 16 dislikes(caroline, pizza).
These clauses have the following meanings:
Clause Explanation 01 Jane is a person 05 Chocolate is a food 09 Jane likes pizza 14 Stuart dislikes (does not like) chocolate
Part (c)
B might like A, if B is a person, A is a food and B does not dislike A.
Write this as a rule.
might_like(.................................................. , ..................................................)
IF .............................................................................................................................................
...................................................................................................................................................
...............................................................................................................................................[6]
Question 6
Why this question appears here
71% assigned-topic match · Hardware › Logic gates and logic circuits
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_w17_qp_41.pdf
