1.2aFree
Your guide: Miss HiraExplains computers with chai, cricket and your phone.
A bank keeps one card per employee: number, name, grade, designation, joining date, qualification. Today three things change: one promotion, one retirement, one new hire. Where do you write the changes, and what if the main cards get damaged mid-update?
The traditional file system answers with three kinds of file: a master file for the latest data, a transaction file for today's changes, and a backup file for safety.
Step 1 / 7
A bank keeps one card per employee: number, name, grade, designation, joining date, qualification. Today three things change: one promotion, one retirement, one new hire. Where do you write the changes, and what if the main cards get damaged mid-update?
The traditional file system answers with three kinds of file: a master file for the latest data, a transaction file for today's changes, and a backup file for safety.
A record is a collection of related fields treated as a single unit. A file, or data set, is a collection of related records treated as a single unit. Files are grouped by usage, by function, and by how they are organized on storage.
Q1. Define field, record and file using the bank employee example.
Field ⊂ record ⊂ file
Q2. Name the file type (usage point of view): (a) all students' admission data, (b) today's fee payments not yet posted, (c) a safety copy on another disk.
master · transaction · backup
Q3. Classify (functional point of view): result.xls, setup.exe, clients.mdb, lecture.mpg.
1 program file, 3 data files
✗ Calling one employee's details a file.
✓ One employee's fields form a record. A file is the collection of all such related records.
✗ Saying a backup file stores data before it is processed.
✓ That is the transaction file. A backup file is a protective copy of vital files.
✗ Writing that .com is the extension of source program files.
✓ The book prints this, but .com and .exe are both executable files. Source files use the language's extension, such as .c or .cpp.
1. A collection of related fields treated as a single unit is a:
(b) Related fields about one thing make a record; related records make a file.
2. Which file may be temporary?
(b) A transaction file may be kept only until the master file is updated.
3. The master file is updated by:
(b) The book lists three methods of updating: adding, deleting and editing records.
4. A file named clients.mdb is a:
(b) .dat, .dbf and .mdb are database data files.
5. Which extension belongs to an audio file?
(b) Audio files: .wav and .mid. .gif is an image, .avi a video, .rtf a document.