A car rental company uses a database to manage its fleet of vehicles. (a) The table shows part of the database. Suggest an appropriate data type for each fi...

Assessment: Information and Communication Technology (9-1) 0983 | Paper 1 Mock 21 | Theory Subject: Information and Communication Technology - 0417

Question 1 Report

A car rental company uses a database to manage its fleet of vehicles.

(a) The table shows part of the database. Suggest an appropriate data type for each field. [3]

FieldExampleData type
Registration numberAB12 CDE
Daily hire rate45.00
Available for hireTrue

(b) Describe two validation checks that could be applied to the Daily hire rate field. [2]

(c) State the purpose of using an input mask on the Registration number field. [1]

Answer Details

(a) Appropriate data types for each field:

FieldExampleData type
Registration numberAB12 CDEText/String [1] - because it contains a mixture of letters, digits, and a space, it cannot be treated as a number.
Daily hire rate45.00Currency/Real [1] - because it represents a monetary value with decimal places.
Available for hireTrueBoolean [1] - because it can only be one of two values: True or False.

(b) Two validation checks for the Daily hire rate field:

  1. Range check to ensure the value falls between a minimum and maximum acceptable rate, such as 20.00 and 500.00. [1] This prevents unrealistically low or high rates from being entered by mistake.
  2. Presence check to ensure the field is not left empty when adding a new vehicle to the database. [1] Every vehicle must have a hire rate for the business to function correctly.

(c) An input mask forces the user to enter data in a specific predefined format, such as two letters followed by two digits, a space, and three letters (LL99 LLL). [1] This reduces data entry errors by preventing incorrectly formatted registration numbers 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