ExamBank Scot · AH Computing Science question bank · All AH Computing Science questions

AH Computing Science 2016 Question 2 (CfE)

15 marks · Requirements

Using the above example, explain the terms scope and constraints. The management of Radio Lowden has commissioned a developer to create a new website for the radio station. One of the pages of the new website will give access to playlists from recent radio programmes. The developer suggests that the layout and interface of the website belonging to a rival radio station could be copied and used by Radio Lowden. Discuss whether this is acceptable practice. An initial build of the playlist page of Radio Lowden’s website is created. The layout of this page is shown. Usability testing of the interface of the playlist page is carried out. The developer provides the test group with the following test case. Jackie has injured her wrist and is unable to use a mouse. Earlier today, she heard Radio Lowden’s AM programme and would like to listen to the 3rd song on its playlist again. Explain how the test case would help the developer evaluate the accessibility of the playlist page of the Radio Lowden website. A PlayList table is used to store details of all playlists created by Radio Lowden and details of each song are stored in a separate table called Song. These tables are part of a relational database. Sample data for the PlayList and Song tables are shown. Attribute Sample Sample ProgrammeID 1 SongID A34213 DatePlayed 27/05/15 TimePlayed 09:00 Attribute SongID A34213 Title Jack & Dee Artist Soozie – L Year 1997 PlayList Table Song Table Write the SQL statement which will create the structure of the PlayList table. Write the SQL query which will list the title of each song played on 26 May 2016. The titles of the songs in one of the playlists are exported to a program for processing using a queue structure. The queue has been implemented as a 1-D array. The contents of the queue are shown. front My Name is Lynnie Jack & Dee Moviestar Monster Draughty Man Blues back Use pseudocode to write an algorithm to remove a played song from the top of the playlist queue. Radio Lowden plays songs from the years 1990 to 1999 inclusive. The songs played by the radio station must have featured in the official UK top 40 singles chart from these years.

Marking scheme

Scope – what is to be included, in this case, for example, songs from 1990 to 1999 inclusive Constraint – the limits imposed, in this case, for example, only songs from top 40 singles chart. 1 mark for scope 1 mark for constraint Answers must relate to scenario. Without permission from the creators or developers of the rival website, this would be a breach of their Intellectual Property Rights since IPR protects the visual design of their website. Copyright is an example of IPR. This gives the original creator exclusive rights to any artwork used on the website and use of those images by Radio Lowden would breach their copyright Trademarks are also examples of IPR. Since the rival radio station is likely to have used trademarked designs or logos on their website, use of these trademarks would be a breach of IPR. 1 mark each for any two relevant points. Many alternative answers are possible. The test group would be given the test case and asked to carry out the task described. Since the test case indicated that the user cannot make use of a mouse, the test group would be required to perform the task using keyboard alternatives (or using speech input to control the movement of the screen pointer). The developers would observe the task being performed and make notes on any difficulties that the test group encountered. Since the test case requires alternatives to mouse input, difficulties with task completion would give the developers feedback regarding the accessibility of this page of the website. 1 mark for description of use made of test case by test group. This must acknowledge need for alternatives to mouse input. 1 mark for description of role of developers during observation of task performance. This must refer to difficulties encountered and accessibility of the page. CREATE TABLE PlayList ( ProgrammeID int NOT NULL, SongID text(6) NOT NULL, DatePlayed date NOT NULL, TimePlayed time NOT NULL, PRIMARY KEY (Dateplayed, Timeplayed), FOREIGN KEY (SongID) REFERENCES Song(SongID) ); 1 mark for correct structure of SQL CREATE statement 1 mark for four correct data types (char or varchar are acceptable alternatives to text for SongID) 1 mark for correct primary key Note: alternative primary key is possible (programmeID, songid, dateplayed) 1 mark for correct foreign key SELECT Title FROM PlayList, Song WHERE PlayList.SongID = Song.SongID AND DatePlayed = '2016/05/26'; 1 mark for SELECT with correct FROM 1 mark for correct WHERE clause with join 1. IF front = back THEN 2. <queue is empty> 3. ELSE 4. <play playlist[front]> 5. SET front TO front-1 6. END IF 1 mark for queue empty check 1 mark for use of front pointer when removing from queue (step 4 or equivalent) 1 mark for update of front pointer

Previous question: AH Computing Science 2016 Question 1 (CfE)

Next question: AH Computing Science 2016 Question 3 (CfE)