levo

Files, Records and File Organisation

Files, records and fields

  • 3 things to know
  • Component 2

Overview

Key field, composite key and how a program creates a new file.

What you need to know

Answer each one before you reveal it.

Your recallNot started
Key term

Define a record.

Key term

Define a field.

Key term

How are a file, a record and a field related?

Questions from this subtopic

Each one with the model answer underneath.

  1. 1

    Define a record.

    Model answer

    A record is a collection of related fields describing one entity, such as one pupil. A file is made up of many records of the same structure.

  2. 2

    Define a field.

    Model answer

    A field is a single item of data within a record, such as a surname or a date of birth. Each field has its own name and data type.

  3. 3

    How are a file, a record and a field related?

    Model answer

    A file contains records and each record contains fields. The hierarchy runs from file down to record down to field.

  4. 4

    What is a key field?

    Model answer

    A key field is the field whose value uniquely identifies a record in the file. A pupil number or an account number is a typical key field.

  5. 5

    Why must a key field be unique?

    Model answer

    Two records sharing a key value could not be told apart when one is searched for. Updates and deletions would then act on the wrong record.

  6. 6

    What is a composite key?

    Model answer

    A composite key is a key made from two or more fields together. The combination is unique even though neither field is unique on its own.

Other ways to work this

The same content, four other ways.

What is inside Levo

Six ways to work the same material.

1Closed book
2Open book
3Closed book

The 3-step method, run for you

Answer cold, learn it, then prove it stuck. Levo tracks the jump between your first attempt and your last.

Data Structures: Arrays, Records and Hash Tables
Stacks, Queues, Linked Lists and Trees
Boolean Logic and Simplification
Algorithms, Pseudo-Code and Programming Constructs

Cram a whole paper in one sitting

Sort every topic into what you know and what you do not, then drill only the weak ones.

KDW to HAT.
decryptsencryptscompresses

Blank Blitz makes facts automatic

Rapid timed gap-fills on the terms and numbers you need to recall without thinking.

AThe two are not the same.
BOpen source refers to the availability of the code.
CMuch open source software is free of charge.

Build It gets the exam shape right

Assemble a full-mark answer from its marking points, in the order an examiner wants them.

Backup means the copy of the data.
TrueFalse

Test It catches misconceptions

Spot the fault in a statement. The traps are the mistakes students actually make.

721941163128510

Brain Breaks between sessions

Short focus games to reset attention, so the next set lands better than the last.

Every question in Files, Records and File Organisation, on a schedule.

Attempt a question from memory, write the correct version, then attempt it again. Levo records the jump between your first attempt and your last, and brings each question back on the day you are due to forget it.

Or £46 a year, about £3.83 a month. Cancel anytime.