Question 4
OCR Computer Science June 2023 Computer systems (H446-01)A level35 marks
On the specification
- (a)
- 1.2 Software and software development
- (b)(i)
- 1.1 The characteristics of contemporary processors, input, output and storage devices
- (b)(ii)
- 1.1 The characteristics of contemporary processors, input, output and storage devices
- (c)
- 1.3 Exchanging data
- (d)(i)
- 1.3 Exchanging data
- (d)(ii)
- 1.3 Exchanging data
- (e)(i)
- 1.5 Legal, moral, cultural and ethical issues
- (e)(ii)
- 1.5 Legal, moral, cultural and ethical issues
- (f)
- 1.3 Exchanging data
Question text
4 A team of programmers create a robot that will be used in a factory. The robot will be able to do the work of multiple humans. The programmers discuss whether to write the instructions for the robot in assembly language or a high-level language. (a) Describe two differences between assembly language and high-level languages. Difference 1 Difference 2 [4] (b) The robot uses a multi-core processor. The programmers assume that this means that the robot will execute programs more quickly than using a single core processor. (i) Give one reason why this assumption can sometimes be true. [1] (ii) Explain why this assumption is not always true. [2] (c)* The robot stores data internally and also communicates with other robots and users via a wireless network which is password protected. All data for these tasks is secured using either encryption or hashing. Compare the robot’s use of encryption and hashing for storing and communicating data. You should include the following in your answer: • the different types of encryption that could be used and how this would secure data • how hashing could be used to secure data and which data would be suitable • why encryption and hashing are used by the robot for stored data and communications. [9] (d) The robot provides a web-based interface for users. The home screen webpage for this interface is shown in Fig. 4. Robot User Interface Robot prime directives • Serve the company trust • Protect data • Uphold standards Updates Login Password Submit Fig. 4 (i) Complete this HTML code that will display the webpage shown in Fig. 4. <html> <head> <title>Robot User Interface</title> </head> <body> <h1>Robot prime directives</h1> <li>Serve the company trust</li> <li>Protect data</li> <li>Uphold standards</li> <a = "updates.html">Updates</a> <p> </p> <form action="dologin.php"> Password <input type = " " name="pw"> <input type = " "> </form> </body> </html> [5] (ii) Write CSS code that could be used in an external stylesheet to format all text using the <h1> tag as white with a red background. [3] The robot’s web interface uses images that show the robot in action. These photographs have been taken using a digital camera. (e) The programmers do not want other people to download and use these images. (i) State the name of one relevant piece of legislation and describe how this would protect these images. Legislation Description [3] For other areas of the web interface, the programmers need to use images that they have not created themselves. (ii) Give two ways that they could make sure these images are used legally. 1 2 [2] (f) Details of all users that have accessed the robot are stored in a database table called TblAccessLog. This table stores the username and user type of each user. When a user accesses the robot, the current date is added to the DateAccessed field for that user. A selection of the data from this table is shown here. Username is the key field. Username UserType DateAccessed Mrphy003 User 08/05/21, 07/06/21, 08/06/21 Lwis076 Admin 17/04/21, 19/07/21 Bbby412 NotNeeded 01/06/21, 02/07/21, 14/07/21 TblAccessLog (i) Write an SQL statement to delete all records from the table TblAccessLog for users who have a UserType of "NotNeeded". [2] (ii) State two requirements for a database to be in First Normal Form (1NF). 1 2 [2] (iii) Explain why the structure of TblAccessLog means that this database is not in First Normal Form (1NF). [2]