A web portal is being developed for recreational drone pilots to log their flights. To submit a flight log, pilots must enter several details, including the flight duration in minutes (which must be between 10 and 120), a contact mobile phone number, and a unique drone registration ID.
Validating inputs is a key element of defensive design, ensuring that only clean, logical data enters the system.
Identify two different validation techniques and explain how each can be used to validate the inputs in this flight logging system.
Practise OCR GCSE Computer Science Defensive design with exam-style questions for GCSE Computer Science. 14 questions, matched to the OCR GCSE Computer Science (J277) specification and written in Component 01 and Component 02 style. Every question includes a full worked solution and mark scheme, so you can see where marks are awarded rather than just whether you got the answer right.