levo

Exchanging Data

  • 9 subtopics
  • 20 things to know
  • Component 01

What Exchanging Data covers

Exchanging Data is examined on component 01 of OCR Computer Science, Computer systems. 122 recall questions across 9 subtopics.

Where it is assessed

Component 01

Computer systems, the whole of the first paper.

Check the OCR specification ↗

The 9 subtopics

Each one has its own page.

What you need to know

Answer each one before you reveal it.

Your recallNot started
Key term

Explain the difference between lossy and lossless compression.

Key term

Give a typical use for lossy compression and explain why the loss is acceptable there.

Key term

A student claims run length encoding always makes a file smaller. Explain why that is wrong.

Key term

Describe how symmetric encryption works.

Key term

Describe how asymmetric encryption works.

Key term

What is a hash function?

Key term

What is a collision?

Key term

How is a hash table used to store and retrieve data?

Key term

What is a relational database?

Evaluation

Explain three advantages a relational database has over a flat file.

Key term

What is indexing in a database?

Key term

A design has Doctor, Patient and Appointment tables. Identify the relationships and say where the foreign keys go.

Key term

Explain the benefits of normalising a database to 3NF.

Key term

What does normalisation cost? Give a balanced judgement.

Key term

Explain what LIKE does, and what the % wildcard matches.

Key term

Explain step by step what this query does: SELECT Title FROM Book WHERE AuthorID = (SELECT AuthorID FROM Author WHERE Surname = 'Pratchett').

Key term

Why does data need archiving as well as backing up, and what is the difference?

Key term

What precautions should be taken when personal data is exchanged between two organisations?

Key term

Name the four ACID properties and give each in a single phrase.

Key term

Write a query returning the title and author of every book in a Book table whose title begins with 'The'.

Take Exchanging Data further

The same content, four other ways.

Commonly confused

Pairs that lose marks when they are blurred together.

  • A primary key vs A foreign key

    A primary key: the attribute that uniquely identifies each record in its own table. A foreign key: an attribute that refers to the identifying attribute of another table.

  • Lossy compression vs Lossless compression

    Lossy compression: reducing file size by discarding detail that cannot then be recovered. Lossless compression: reducing file size in a way that allows the original to be restored exactly.

  • Atomicity vs Durability

    Atomicity: the requirement that a transaction either completes in full or has no effect at all. Durability: the requirement that a committed transaction survives a subsequent failure.

Questions from this topic

Each one with the model answer underneath.

  1. 1

    What is compression, and what is it actually for?

    Model answer

    Compression is the process of reducing the number of bits needed to store or transmit a file. It is used to save storage space, to reduce the bandwidth a transfer consumes, and so to shorten download, upload and streaming times. It can also reduce cost where storage or data transfer is charged by volume.

  2. 2

    Explain the difference between lossy and lossless compression.

    Model answer

    Lossy compression permanently discards some of the original data, usually detail a human is unlikely to notice, so the decompressed file is only an approximation of the original and the discarded data can never be recovered. Lossless compression removes only redundancy by recording the data more efficiently, so the original file can be reconstructed bit for bit exactly when it is decompressed.

  3. 3

    Lossy compression generally produces much smaller files than lossless. Why, then, is lossless ever used?

    Model answer

    Because for many kinds of data any loss at all destroys the file's meaning. Lossless is used whenever the exact original bits are needed, and the price of that guarantee is a smaller reduction in size. Lossy is only acceptable where an approximation is good enough for the human viewer or listener.

  4. 4

    Why would you never apply lossy compression to an executable program or a spreadsheet?

    Model answer

    Because every bit in them is significant. In an executable, changing or discarding bits alters machine code instructions or addresses, so the program will crash, misbehave or fail to run at all. In a spreadsheet, altered bits change the actual figures and formulae, producing silently wrong numbers. Neither file has any perceptually redundant detail that could be thrown away safely, so only lossless compression is appropriate.

  5. 5

    Give a typical use for lossy compression and explain why the loss is acceptable there.

    Model answer

    Photographs on a website, streamed music and streamed video. In a photograph, fine differences between adjacent shades are discarded; in audio, frequencies outside normal hearing or masked by louder sounds are removed. Human perception cannot detect most of what is thrown away, so the file looks or sounds close enough to the original while being far smaller, which matters greatly for fast page loading and smooth streaming.

  6. 6

    Name three kinds of file for which lossless compression is essential.

    Model answer

    Any three of: executable programs and other machine code, text documents and source code, spreadsheets and databases, archived files such as ZIP archives, medical or scientific images used for diagnosis or analysis, and any file whose hash or digital signature must still match after decompression. In each case an exact reconstruction of the original is required.

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.

Processors: Structure, Performance and Types
Input, Output and Storage
Systems Software
Applications Generation

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.

If it matches, the search .
succeedsfailsrestarts

Blank Blitz makes facts automatic

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

A0 + 0 gives 0.
B0 + 1 gives 1.
C1 + 1 gives 0 carry 1.

Build It gets the exam shape right

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

A global variable means a variable reachable from anywhere in the program.
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.

Exchanging Data revision questions

What does Exchanging Data cover in OCR A-Level Computer Science?
9 subtopics: compression, encryption, hashing, flat file and relational databases, keys and indexing, referential integrity, entity relationship diagrams and database management systems, normalisation to 3nf, sql: interpreting and modifying queries, capturing, selecting, managing and exchanging data and transaction processing, acid, record locking and redundancy. Each one has its own page with questions and model answers.
How is Exchanging Data organised?
By the OCR H446 specification, subtopic by subtopic, so it matches the order you are taught it in.

Every question in Exchanging Data, 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.