Question 3

OCR Computer Science June 2019 Paper 1GCSE15 marks

On the specification

(a)(i)
1.6 System security
(a)(ii)
1.6 System security
(b)(i)
1.6 System security
(b)(ii)
1.6 System security2.2 Programming techniques2.6 Data representation
(b)(iii)
2.2 Programming techniques
Question text

3 Hamish stores confidential documents on his laptop. (a) Hamish needs his computer to be secure from unauthorised access when connected to a network. (i) Describe the problems that can arise from unauthorised access to his laptop and confidential documents. [3] (ii) Describe two ways Hamish can help prevent unauthorised access to his laptop. 1 2 [4] (b) If unauthorised access does occur, Hamish would like to use encryption to add another layer of protection to his documents. (i) Explain how encryption helps to protect Hamish’s documents. [2] (ii) One encryption method is a Caesar cipher. This Caesar cipher moves each letter of the alphabet one place to the right. The following table shows the original letters in the first row, and the new letters in the second row. A B C D E F G H I J K L M N O P Q R S T U V W X Y Z B C D E F G H I J K L M N O P Q R S T U V W X Y Z A For example, if the message read: HELLO This would be stored as: IFMMP The following pseudocode algorithm takes a string of uppercase letters as input and uses the Caesar cipher to encrypt them. The functions used in the algorithm are described in the table: Function Description Returns the ASCII value for character e.g. ASC(character) ASC("A") returns 65 Returns the single character for ASCIIvalue CHR(ASCIIvalue) e.g. CHR(65) returns "A" Returns the Number of characters starting at subString(Value, Number) position Value (where 0 is the first character) Complete the pseudocode algorithm to perform a Caesar cipher. 1 message = input("Please enter your string") 2 newMessage = "" 3 messageLength = message.length 4 for count = 0 to 5 ASCIIValue = ASC(message.subString( ,1)) 6 ASCIIValue = ASCIIValue + 7 if ASCIIValue >90 then 8 ASCIIValue = – 26 9 endif 10 newMessage = + CHR(ASCIIValue) 11 next count [5] (iii) The algorithm needs adapting. An extra line (line 12) is needed to output the encrypted message. Write line 12 to output the encrypted message in pseudocode or programming code. [1]