Past-paper question · 2014 May-June · Paper 32 · Q3(a)(iii)

Question 3(a)(iii) 2014 · May-June · Paper 32 · 1 mark

Original past-paper question for 3(A)(III)
Original past-paper question for 3(A)(III)
Reveal official mark-scheme answer Official mark-scheme answer for 3(A)(III)

Official answer for Question 3

Part (a)

(iii)

(iii)

✓
Who
✓
=
✓
moira
✓
Who
✓
=
✓
imram
✓
Who
✓
=
✓
jajid
✓
Who
✓
=
✓
sarah
✓
Who
✓
=
✓
sajid
✓
NB Names only …
✓
A. wrong case ….
[1]

Mark scheme 9691_s14_ms_32.pdf →

Show text version of question

Question 3

Part (a)

(iii)

Question 3

A football club runs four teams for boys and girls and stores the following data:

  • players
  • team names
  • the upper age limit for each team
  • the gender of each team.

The following facts are stored in a knowledge base to be used by a logic program.

Age is stored rather than date of birth to simplify the programming.

team(juniorFemale). team(juniorMale). team(femaleU16). team(maleU16). ageLimit(juniorFemale, 11). ageLimit(juniorMale, 11). ageLimit(femaleU16, 15). ageLimit(maleU16, 15). teamGender(juniorFemale, f). teamGender(juniorMale, m). teamGender(femaleU16, f). teamGender(maleU16, m). player(bill, m, 16). player(moira, f, 13). player(imram,f, 14). player(jajid, f, 15). player(wasim1, m, 14). player(wasim2, m, 10). player(sarah, f, 11). player(paul, m, 13). player(neville, m, 12). player(lewis, m, 14). player(sajid, f, 15). Show the data displayed when the following queries are executed.

(iii)

player(Who, f, _ )

[1]

Question 7

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 9691_s14_qp_32.pdf

Keep practising this topic