Question 3
OCR Computer Science Specimen Paper 1A level16 marks
On the specification
- (a)
- 1.3 Exchanging data
- (b)
- 1.3 Exchanging data
- (c)(i)
- 1.3 Exchanging data
- (c)(ii)
- 1.3 Exchanging data
- (d)(i)
- 1.3 Exchanging data
- (d)(ii)
- 1.3 Exchanging data
Question text
3 The Big Brains exam board has produced a website that allows students to access revision videos. All pages in the site contain the following tag in the head section. <link href="themes/standard.css" rel="stylesheet" type="text/css" /> (a) Describe one advantage of storing the CSS in an external file rather than it being embedded within HTML files. [3] (b) The exam board wants to limit access to those students with a school email account (i.e. one ending .sch.uk). When students sign up JavaScript is used to check that the email address they have entered is from a school account. The address is checked again when it reaches the server before login details are sent to the address. Explain why it is important to check the email address with JavaScript and again when it reaches the server. [3] (c) The exam board wants to use a database to keep track of which videos each student has viewed. The structure it plans to use is shown below: Student Video (i) Identify one reason why this structure would not be suitable. [1] (ii) Draw a new version of the structure to solve this problem. [3] (d) The video table consists of the following fields: VideoID, VideoName, Presenter, Topic. (i) Describe what is meant by the term primary key. [2] (ii) Write an SQL query that finds the name and presenter of all videos on the Topic of “The CPU”. [4]