A farm irrigation controller sends an encrypted alert when soil moisture is too low. Fig. 1 shows a trace from the controller program. The plaintext alert w...

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

Question 1 Report

A farm irrigation controller sends an encrypted alert when soil moisture is too low. Fig. 1 shows a trace from the controller program. The plaintext alert word is processed one character at a time using a Caesar key of 3. Table 1 contains moisture readings from three sensor zones and the ciphertext produced for their alert files. The grower needs to identify the alert that was created from the correct encryption algorithm.

for each letter in wordshift letter by 3append to codeExample: D becomes G© EAGLE BEACON GLOBAL

Fig. 1: program trace

ZoneMoisture (%)Plaintext alertCiphertext alert
North18DRYGUB
East21DRYGUB
West16DRYGXB

Table 1: irrigation alert data

(a) State the key used by the controller program. [1]
(b) Identify the zone with the lowest moisture reading. [1]
(c) Identify the ciphertext that is not correct. [1]
(d) Use Fig. 1 to write the correct ciphertext for DRY. [3]

Answer Details

(a) The controller key is 3 [1].

(b) The lowest moisture reading is 16%, so the zone is West [1].

(c) The incorrect ciphertext is GXB [1]. A shift of 3 must map R to U, not X.

(d) D becomes G [1], R becomes U [1], and Y becomes B after wrapping through Z [1]. Thus DRY encrypts to GUB [3].

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