Question 1 Report
A mobile game developer is testing a program that hides bonus words before they are displayed to players. The game uses a Caesar encryption algorithm with key 7. The following test record was copied from the code editor: plaintext word CODE, program ciphertext JVKL. The developer suspects that the output is wrong and must correct it before the next version of the game is released.
(a) Identify the plaintext word in the test record. [1]
(b) State the cipher key number. [1]
(c) Identify the first ciphertext letter that should be produced from plaintext letter C. [1]
(d) Write the correct ciphertext for the whole plaintext word. [4]
(a) The plaintext word is CODE [1].
(b) The cipher key is 7 [1].
(c) C shifted seven places becomes J [1].
(d) Apply the same shift to every letter: C to J [1], O to V [1], D to K [1], and E to L [1]. Therefore the correct ciphertext is JVKL [4]. The stated program ciphertext is therefore not wrong; it matches the correct encryption.
Everything you need to excel in your exams