levo

Files, Records and File Organisation

Fixed and variable length fields and records

  • 3 things to know
  • Component 2

Overview

Fixed length field and variable length field.

What you need to know

Answer each one before you reveal it.

Your recallNot started
Key term

What is a fixed length field?

Key term

What is a variable length field?

Evaluation

Give two advantages of fixed length records.

Questions from this subtopic

Each one with the model answer underneath.

  1. 1

    What is a fixed length field?

    Model answer

    A fixed length field always occupies the same number of bytes, whatever value it holds. Short values are padded with spaces or zeros to fill the space.

  2. 2

    What is a variable length field?

    Model answer

    A variable length field occupies only as many bytes as the value needs. A separator character or a length count marks where the field ends.

  3. 3

    Give two advantages of fixed length records.

    Model answer

    The position of any record can be calculated directly from its number, allowing direct access. Programs are also simpler, because every record has the same layout.

  4. 4

    Give two disadvantages of fixed length records.

    Model answer

    Storage is wasted whenever a value is shorter than the space reserved. Any value longer than the field is truncated and data is lost.

  5. 5

    Give two advantages of variable length records.

    Model answer

    Variable length records waste no space on padding, so the file is smaller. Long values are never truncated, however unusual their length.

  6. 6

    Give two disadvantages of variable length records.

    Model answer

    The start of a record cannot be calculated, so direct access is difficult. Extra processing is needed to find each separator or read each length count.

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.