13 Data representation - Cambridge AS & A Level Class 12 Computer Science Notes, Diagrams and Solved Questions

User-defined types (enumerated, pointer, record, set, class), serial, sequential and random files with hashing, and two's complement floating-point numbers: conversion, normalisation and errors.

In this chapter

  • Declare enumerated, pointer, record, set and class types and choose the right one for a problem
  • Compare serial, sequential and random file organisation
  • Use sequential and direct access, including SEEK, GETRECORD and PUTRECORD
  • Write a hashing algorithm and deal with collisions
  • Convert between denary and two's complement binary floating point
  • Normalise a floating-point number and explain why
  • Explain the effect of the mantissa/exponent split, rounding errors, overflow and underflow