A school has a library system which allows students to borrow books for a length of time. Information relating to students and books is stored in text files. Student information includes name, home address, email address, date of birth, tutor and subject choices. Book information includes author, title, subject category, library location and the date that the book was borrowed. A program helps the staff to manage the borrowing of books.
- (a)(i)A new module needs to be written to generate emails to send to students who have an overdue book. Students who are sent an email are prevented from borrowing any more books until the overdue book is returned. The process of abstraction has been used when designing the new module. State the purpose of applying abstraction to this problem.[1]
- (a)(ii)Identify one item of information that is required and one item that is not required in the new module. Justify your choices. Item required Justification Item not required Justification[2]
- (a)(iii)Identify two operations that would be required to process data when an overdue book is returned. Operation 1 Operation 2[2]
- (b)Part of the library program contains program modules with headers as follows: | Pseudocode module header | |:---| | PROCEDURE Module-X() | | PROCEDURE Module-Y(BYREF RA : INTEGER, SA : REAL) | | PROCEDURE Overlay() | | FUNCTION Replace(RA : INTEGER, RB : BOOLEAN) RETURNS BOOLEAN | | FUNCTION Reset(TA : STRING) RETURNS INTEGER | Module-X() and Module-Y() are both called from module Overlay(). Complete the structure chart. [Figure X.X][3]
This question uses a diagram from the original paper, which isn't shown here. Open the full paper from the past papers archive to see it.
Mark scheme
Marking points from the official mark scheme (May/June 2023). The mark or mark type is shown in brackets.
- [1] To filter out information (that is not necessary to solve the problem) // to include only essential information
- [2] Max 2 marks
- [2] Required: Student : Student name / email (address)
- [2] Required: Loan: Return/Issue date
- [2] Required: Book: Book title
- [2] Not Required: Student: Home address / DoB / tutor / subject choices
- [2] Not Required: Book: Library location / category / author / book title
- [2] Max 2 marks
- [2] • Clear the loan // indicate that the book has been returned // update loan history
- [2] • Take the student off 'block' // allow the student to borrow further books
- [2] • Send acknowledgement to the student when book is returned
- [3] Max 3 marks
- [3] MP1 All modules correctly labelled and interconnected.
- [3] MP2 Correct parameters and return type to Module-X and Reset
- [3] MP3 Correct parameters and return type to Module-Y and Replace
- [3] MP4 Correct parameters and return type to Overlay and Module-Y
Write your answer and get it marked
On Oracle Prep you can write or photograph your own answer and have it marked by AI against this mark scheme, with feedback on what you missed.
Sign up free →