A school creates a database to store details about its computing equipment. Part of the database is shown below. AssetID DeviceType RoomNumber PurchaseDate ...

Assessment: Information and Communication Technology 0417 | Paper 1 Mock 01 | Theory Subject: Information and Communication Technology - 0417

Question 1 Report

A school creates a database to store details about its computing equipment. Part of the database is shown below.

AssetIDDeviceTypeRoomNumberPurchaseDateWarrantyExpiryWorking
A2001Laptop1412/09/202212/09/2025Yes
A2002Printer703/04/202103/04/2024Yes
A2003Projector1418/01/202318/01/2026No
A2004Laptop2205/11/202005/11/2023Yes
A2005Desktop722/06/202222/06/2025Yes

(a) State the data type for each of the following fields:

(i) DeviceType [1]

(ii) RoomNumber [1]

(iii) PurchaseDate [1]

(iv) Working [1]

(b) The school wants to find all working devices in Room 14. Write the search criteria. [2]

(c) Describe one validation check that could be applied to the RoomNumber field. [2]

Answer Details

(a) Data types for each field:

  1. (i) DeviceType: Text/Alphanumeric [1] - stores text values such as "Laptop", "Printer" and "Projector".
  2. (ii) RoomNumber: Number/Integer [1] - stores whole numbers representing room locations. Using a numeric type allows the database to perform comparisons and range checks.
  3. (iii) PurchaseDate: Date/Time [1] - stores calendar dates such as 12/09/2022. This data type allows date comparisons and calculations, such as determining whether the warranty has expired.
  4. (iv) Working: Boolean/Yes-No/Logical [1] - can only be "Yes" or "No", making it a two-state field.

(b) Search criteria to find all working devices in Room 14:

RoomNumber = 14 [1] AND Working = "Yes" [1]

Both conditions must be true. From the sample data, this would return the Laptop (A2001) and the Projector (A2003) would be excluded because Working = "No".

(c) One validation check for the RoomNumber field:

Range check: The room number must fall within a valid range, for example between 1 and 50. [1] This prevents a user from accidentally entering a room number that does not exist in the school building, such as 999 or a negative number. [1]

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