Back to marketplace

1.3.1 Compression, Encryption & Hashing

No description yet. This curated deck is ready for daily study.

Total cards: 24•Content version: v4•Public deck•Updated: 8/1/2026

Card preview (24)

#1
Front (Question)

What is compression?

Back (Answer)

A process used to reduce the storage space required by a file

#2
Front (Question)

What is the purpose of compression?

Back (Answer)

Increases the number of files that can be transferred in a given time Reduce download time

#3
Front (Question)

Name two types of compression.

Back (Answer)

Lossy Lossless

#4
Front (Question)

Describe lossless compression.

Back (Answer)

Reduces the size of a file less significantly as data isn’t removed The original file can be recovered

#5
Front (Question)

Describe lossy compression.

Back (Answer)

Reduces the size of a file significantly by removing some data The original file cannot be recovered

#6
Front (Question)

What is lossy compression suitable for?

Back (Answer)

Media Not text/program files as characters will be removed

#7
Front (Question)

What is lossless compression suitable for?

Back (Answer)

Media but won’t reduce file size as significantly Text/program files as can be recovered

#8
Front (Question)

What is Dictionary Encoding?

Back (Answer)

Method of lossless compression Frequently occurring pieces of data are replaced with an index Compressed data is stored with a dictionary which can be used to restore original data

#9
Front (Question)

What is Run Length Encoding?

Back (Answer)

Method of lossless compression Repeated values replaced with one occurrence followed by number of repititions

#10
Front (Question)

Give two disadvantages of Run Length Encoding.

Back (Answer)

Relies on consecutive pieces of data being the same Doesn’t offer much reduction in file size if little repitition

#11
Front (Question)

What is encryption?

Back (Answer)

A process used to ensure data is kept secure during its transmission Data is scrambled before transmission and deciphered at its destination

#12
Front (Question)

What is asymmetric encryption?

Back (Answer)

Encryption used two keys

#13
Front (Question)

What is symmetric encryption?

Back (Answer)

Encryption using a single key

#14
Front (Question)

Describe what is meant by a key pair.

Back (Answer)

A public key that can be published anywhere A private key that must remain secret Both keys mathematically related

#15
Front (Question)

How does asymmetric encryption work?

Back (Answer)

Messages encrypted with the public key can only be decrypted with the corresponding private key

#16
Front (Question)

How does symmetric encryption work?

Back (Answer)

Both sender and receiver share the same private key The key is distributed by key exchange and is used for both encryption/decryption

#17
Front (Question)

Why can symmetric encryption be less secure?

Back (Answer)

If the key is intercepted, communications can be intercepted

#18
Front (Question)

What is hashing?

Back (Answer)

An input is turned into a fixed size value (hash) by an algorithm

#19
Front (Question)

Why is storing password using hash functions secure?

Back (Answer)

The output cannot be reserved to gain the initial input

#20
Front (Question)

What is a salt?

Back (Answer)

A random value added to the input of a hash function to create an unique output

#21
Front (Question)

What is a hash table?

Back (Answer)

A data structure that holds key-value pairs that can be used to look up data in an array in constant time

#22
Front (Question)

What is constant time?

Back (Answer)

The time complexity O(1)

#23
Front (Question)

List the 4 features needed to be a good hash function.

Back (Answer)

Take any length input & produce fixed length output Be efficient & fast to compute Be computationally infeasible to invert Have a low chance of collision

#24
Front (Question)

What is a collison?

Back (Answer)

A collison is said to have occurred if two keys produce the same hash