A registration form requires an email address. The program must validate that the email: Is not empty Contains exactly one @ symbol Contains at least one . ...

Assessment: Computer Science (9-1) 0984 | Paper 2 Mock 01 | Algorithms, Programming and Logic Subject: Computer Science (9-1) - 0984

Question 1 Report

A registration form requires an email address. The program must validate that the email:

  • Is not empty
  • Contains exactly one @ symbol
  • Contains at least one . (dot) after the @ symbol
  • Does not contain any spaces

(a) State one additional validation rule that could improve email checking. [1]

Answer Details

(a) One additional validation rule: check that there is at least one character before the @ symbol and at least one character between the @ and the dot. [1] This prevents addresses like "@domain.com" or "user@.com" from being accepted.

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