Question 7
OCR Computer Science June 2019 Paper 1A level13 marks
On the specification
- (a)
- 1.3 Exchanging data
- (b)(i)
- 1.3 Exchanging data
- (b)(ii)
- 1.3 Exchanging data
- (c)
- 1.3 Exchanging data
- (d)
- 1.3 Exchanging data
- (e)
- 1.4 Data types, data structures and algorithms
Question text
7 RestaurantReview is a website that allows users to leave reviews and ratings for different restaurants. The website uses a database with the following structure. User Review Restaurant The database management system ensures referential integrity is maintained. (a) Explain what is meant by referential integrity, giving an example which refers to the database described above. [3] (b) Each review includes a score out of 5. When the score is entered on the website it is checked in the browser to ensure a number no higher than 5 has been entered. It is then checked again on the server. (i) State what is meant by the term ‘server’. [1] (ii) Explain why it is important that the review score that the user entered is also checked server-side. [2] Whenever a review is added to the system, the restaurant’s average rating is updated. This transaction is ACID. The A in ACID refers to Atomic. (c) Describe what is meant by the term ‘Atomic’ in the context of ACID transactions. You should refer to the example of a review being added. [2] (d) State what the letters CID refer to in ACID. C I D [3] The database previously stored reviews using the ASCII character set. ASCII uses 1 byte per character. It is decided to switch to the Unicode UTF-32 character set which uses 4 bytes per character. (e) Give an advantage and disadvantage of changing character sets from ASCII to Unicode UTF-32. Advantage Disadvantage [2]