Question 6(b)(iv) 2016 · May-June · Paper 31 · 7 marks
Reveal official mark-scheme answer
The answer for this question is in the official mark scheme: open the mark scheme.
Show text version of question
Question 6
Part (b)
(iv)
Question 6
<sentence> ::= <verbPhrase> | <sentence><nounPhrase>
Using the above rules, explain the following statements:
(iv)
The adverbs quietly, quickly and slowly are to be included in the rules.
When an adverb is used in a sentence it always precedes the verb.
The rules are to be changed to make:
the cat quietly slept a valid <sentence>
This needs a new rule. Write this new rule.
...........................................................................................................................................
It also needs a change to an existing rule. Write the amended rule.
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
......................................................................................................................................
Question 4
2 A number of music bands use a manager to organise their bookings. Each manager will manage one or more bands. Each band:
- has one manager
- has a set fee payable for a booking
- plays a particular genre of music
Data for bands and managers are to be organised and stored in a relational database.
Part (a)
A first attempt at the table design is:
MANAGER(ManagerName, Telephone, BandName, Genre, NumberInBand, SetFee)
ManagerName Telephone BandName Genre NumberInBand SetFee($)
Yi Ling Chen 908765 Rachael Daz Covers 1 200 Jazz Tones Modern jazz 4 450 Lockwood Bros 674442 Midnight Blues Modern jazz 5 350 Loose Beats Dance 3 400 Asyraf Duo Covers 2 250 The Flying Fleas Hip hop 8 700 Rachael Wang 118976 Li Wei Chen Covers 1 250 Gig Associates 567575 Buster Beats Reggae 6 600 Hits Forever Covers 3 300 Rap Incorporated Hip hop 5 800
State why the table MANAGER is not in First Normal Form (1NF).
...................................................................................................................................................
..............................................................................................................................................
Part (b)
The database design is changed to:
BAND(BandName, Genre, NumberInBand, SetFee, ManagerName)
MANAGER(ManagerName, Telephone)
The primary key for each table has not been shown.
Assume that the band names and manager names are unique.
(i)
State the relationship that exists between BAND and MANAGER.
......................................................................................................................................
(ii)
Explain how this relationship is implemented.
...........................................................................................................................................
...........................................................................................................................................
......................................................................................................................................
Question 5
Why this question appears here
72% 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 9691_s16_qp_31.pdf
