levo

Files, Records and File Organisation

Files, records and fields

  • 3 things to know
  • Component 2
Start revising · £5/month

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.

Everything in your subscription

Runs, plus a mode for every other kind of session.

1Flash
2Imposter
3Fade
4Brain dump

Learn every subtopic in runs of four questions

Facts flash and fade, a wrong word hides in some of them, and a brain dump decides which questions are locked in.

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

Cram the night before, weakest topic first

A quick scan finds your weakest topics. Recall each fact you missed three times in a row.

KDW to HAT.
decryptsencryptscompresses

Blank Blitz consolidates the facts

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

✓What it iscovered
~Why it happenspartly there
How long it lastsnot there yet

Explain It tests your understanding

Explain a concept in your own words and see which of its points you covered.

Backup means the copy of the data.
TrueFalse

Test It catches misconceptions

Spot the fault in a statement. The faults are the mistakes students make most often.

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.

Learn it in runs of four questions, each ending on a brain dump against the clock. Every question you lock in comes back the next day, then at longer gaps, each time just before you would forget it.

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