ExamBank Scot · AH Computing Science question bank · All AH Computing Science questions
7 marks · UML use case diagrams
A UML use case diagram has been produced based on the description above. Identify two errors in this UML use case diagram. extend Log in Reset password Make booking include View booking history Cancel booking Customer extend Search for concerts Database Create account extend Manage accounts Update account Delete account Administrator extend Add concert A database developer is hired to develop the booking system. The concert venue provides the developer with the following rules that the system must satisfy: • registered performers may be allocated to play at zero, one or more concerts • each concert must be associated with a single performer, and this must be recorded when the concert details are added to the database • each concert will be identified by combining its concertDate, startTime and performerID • each booking will be identified by combining its bookingDate with the customerID, concertDate and startTime • once registered, customers can book tickets for one or more concerts. During the analysis of the database requirements, the developer has identified four entities: Performer, Concert, Booking and Customer. Explain why Performer would be a strong entity. Explain why Concert would be a weak entity. Describe one benefit of using a surrogate key in the Booking entity. A query will be used to find details of customers who have made at least 5 bookings for concerts that will take place in May or June 2026. A partially complete query design is shown below. Using appropriate Advanced Higher operators, state the missing entries A, B and C needed to complete this query design. Field(s)/ calculation(s) customerID Table(s) Customer, Booking, Concert Search criteria A Grouping customerID B C Sort order A concert venue is developing a booking system. There will be two types of users in the system: customers and administrators, and each user can perform specific tasks. Customer tasks: • log in to the system using their username and password • reset the password if it has been forgotten • search for concerts by date or performer • make bookings for concerts • view booking history and cancel a booking if necessary. Administrator tasks: • perform all tasks that a customer can perform • manage customer accounts (create, update, or delete accounts) • add details of new concerts.
• there is no relationship between the Administrator and Customer actors to show generalisation • cancel booking should be an extend use case from view booking history • cancel booking has not been connected to the database Award 1 mark for valid response. Maximum 2 marks. The Performer entity can exist with no reliance on other entities so is a strong entity. Award 1 mark for responses that indicate that Performer entity is independent of all other entities in the system. The Concert entity needs a performerID from the Performer entity to exist which makes it a weak entity. Award 1 mark for responses that indicate that the Concert entity can’t exist without having a performerID. A surrogate key would replace the compound key which would make it easier to form joins with the Customer and Concert entities and simplyfying query code. A single surrogate key would make it easier to access historical data. Queries would execute more quickly because joins would be formed using a single value. Award 1 mark for description of one benefit that would be gained from use of a surrogate key. • A: concertDate BETWEEN 1st May 2026 AND 30th June 2026 • B: HAVING C: count(*) >=5 Award 1 mark for A. Award 1 mark for B and C. Note: Ignore date format used in response.