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 k...

Assessment: Computer Science 4CP0 | Paper 2 Mock 01 | Written Paper 2 Subject: Computer Science - 4CP0

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]

Answer Details

(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.

Download The App On Google Playstore

Everything you need to excel in your exams

Green Bridge CBT Mobile App
Personalized AI Learning Chat Assistant
200,000+ Exam Questions Across IGCSE, JAMB, WAEC & NECO
Over 3,900 Lesson Notes
Offline Support - Learn Anytime, Anywhere
Green Bridge Timetable
Literature Summaries & Potential Questions
Track Your Performance & Progress
In-depth Explanations for Comprehensive Learning