Past-paper question · 2014 May-June · Paper 31 · Q3(c)(ii)

Question 3(c)(ii) 2014 · May-June · Paper 31 · 3 marks

Original past-paper question for 3(C)(II)
Original past-paper question for 3(C)(II)
Original past-paper question for 3(C)(II)
Original past-paper question for 3(C)(II)
Reveal official mark-scheme answer Official mark-scheme answer for 3(C)(II)Official mark-scheme answer for 3(C)(II)

Official answer for Question 3

Part (c)

(ii)

(ii)

✓
ageLimit(TeamY, AgeY) and AgeX <= AgeY // AgeX < AgeY

Question 1

Question 1

Question 1

✓
(or description for 1 only) There must be a check on the age limit
[3]
✓
Mark Scheme
✓
Syllabus
✓
Paper
✓
GCE A LEVEL – May/June 2014
✓
9691

Question 31

Mark scheme 9691_s14_ms_31.pdf →

Show text version of question

Question 3

Part (c)

(ii)

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). The following rule is added to the knowledge base:

eligiblePlayer(PlayerX, TeamY) if player(PlayerX, GenderX, AgeX) and teamGender(TeamY, GenderY) and GenderX=GenderY.

(ii)

Identify what needs to be added to the above rule to check if a player is eligible to play

for a team.

[3]

Question 8

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_31.pdf

Keep practising this topic