Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

H446_4_DB_Compression Quiz

Total questions: 79

Worksheet time: 40mins

Name
Class
Date
1.

What is the primary purpose of file compression?

a)

To increase the file size

b)

To reduce the storage space of files on disk

c)

To enhance the quality of images

d)

To slow down data transmission

2.

What is the difference between lossy and lossless compression?

a)

Lossy compression retains all information, lossless removes unnecessary information

b)

Lossy compression removes non-essential information, lossless retains all information

c)

Both remove all information

d)

Both retain all information

3.

Why is compression important for images on websites?

a)

To make images look more colorful

b)

To enable a web page to load quickly

c)

To increase the file size

d)

To reduce the number of images

4.

What is a consequence of lossy compression on images?

a)

Improved image quality

b)

Increased file size

c)

Displaying untidy and blocky compression artefacts

d)

Slower data transmission

5.

What type of compression is likely to be used for the following: a website image, a zipped file of long text documents and images, a PDF instruction manual?

a)

Lossy compression

b)

Lossless compression

c)

Run Length Encoding

d)

MP3 compression

6.

What is the main advantage of lossless compression?

a)

It reduces file size significantly

b)

It maintains exact accuracy with no data loss

c)

It is faster to process than lossy compression

d)

It is used for audio files

7.

What does Run Length Encoding (RLE) primarily record?

a)

Every pixel in a sequence

b)

The value and number of times a pixel repeats

c)

Only the color of each pixel

d)

The position of each pixel

8.

In the context of the document, what is a common use of MP3 files?

a)

Storing high-quality images

b)

Compressing video files

c)

Reducing audio file size

d)

Encoding text documents

9.

What is the main advantage of dictionary-based compression techniques?

a)

It eliminates the need for encryption.

b)

It reduces the size of the message significantly.

c)

It increases the complexity of the message.

d)

It requires more storage space.

10.

In the context of encryption, what is the term for the original data or message?

a)

Ciphertext

b)

Key

c)

Plaintext

d)

Algorithm

11.

What is a key in the context of encryption?

a)

The original message

b)

The encrypted message

c)

The method used to encrypt data

d)

The secret information used to lock or unlock the message

12.

What type of cipher is the Caesar cipher?

a)

Transposition cipher

b)

Substitution cipher

c)

Vernam cipher

d)

Block cipher

13.

How does the Caesar cipher work?

a)

By reversing the order of letters

b)

By shifting the letters of the alphabet by a given number of characters

c)

By replacing each letter with a number

d)

By using a complex mathematical algorithm

14.

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Using the list above, what is the ciphertext for 'JULIUS CAESAR' using a shift of 5?

a)

OZNQZX HFJXFW

b)

KXQKXU FBDTFS

c)

MZQMYV GCEUGT

d)

PZORAY IGKYGX

15.

What word can be translated from the following ciphertext using a key of -2: ZYBECP?

a)

APPLE

b)

ORANGE

c)

BANANA

d)

CHERRY

16.

What is the Vernam cipher known for?

a)

Being the first cipher invented

b)

Being unbreakable

c)

Being the simplest cipher

d)

Being the most complex cipher

17.

What is a one-time pad?

a)

A type of paper used for encryption

b)

A key that is shorter than the plaintext

c)

An encryption key that is random and used only once

d)

A method of decrypting messages

18.

Using the ASCII chart and the XOR operator, what ciphertext character will be produced from the letter E with the key w?

a)

A

b)

Z

c)

W

d)

K

19.

What is the main advantage of using symmetric (private key) encryption?

a)

A) It uses two separate keys for encryption and decryption.

b)

B) The same key is used for both encryption and decryption. Fast and easy to operate

c)

C) It is impossible to intercept the key.

d)

D) It does not require key exchange.

20.

Why is a truly random sequence important in cryptanalysis and perfect security?

a)

A) It can be easily predicted.

b)

B) It ensures the key is mathematically impossible to break.

c)

C) It is generated by a computer.

d)

D) It is always the same for every encryption.

21.

What is a potential risk of asymmetric (public key) encryption?

a)

A) The public key is kept secret.

b)

B) The private key can be easily deduced from the public key.

c)

C) A message can be encrypted by a malicious third party.

d)

D) It does not require digital signatures.

22.

What is the primary purpose of a hashing function?

a)

To encrypt data for secure transmission

b)

To map an arbitrary length input to a fixed length output

c)

To compress data for storage efficiency

d)

To generate random numbers for cryptographic use

23.

What is a hash total also referred to as?

a)

Checksum or digest

b)

Encryption key

c)

Digital signature

d)

Public key

24.

What is the role of a digital signature in message security?

a)

To encrypt the entire message

b)

To verify the sender's identity and ensure message integrity

c)

To compress the message for faster transmission

d)

To generate a checksum for the message

25.

What is a digital certificate used for?

a)

To verify the trustworthiness of a message sender or website

b)

To encrypt data for secure transmission

c)

To store large amounts of data

d)

To compress files for easier storage

26.

Which infrastructure does a digital certificate allow the holder to use?

a)

Public Key Infrastructure (PKI)

b)

Transport Layer Security (TLS)

c)

Secure Sockets Layer (SSL)

d)

File Transfer Protocol (FTP)

27.

What is the purpose of a digital signature in a digital certificate?

a)

To authenticate the certificate as real

b)

To encrypt the message content

c)

To compress the data

d)

To store the certificate's serial number

28.

What is the difference between lossy and lossless data compression?

a)

Lossy compression reduces file size by removing some data, while lossless compression retains all data

b)

Lossy compression retains all data, while lossless compression removes some data

c)

Both lossy and lossless compression remove data

d)

Both lossy and lossless compression retain all data

29.

What is an example of a pattern substitution compression algorithm?

a)

Run-length encoding (RLE)

b)

Huffman coding

c)

Lempel-Ziv-Welch (LZW)

d)

Arithmetic coding

30.

What is one disadvantage of lossless compression methods for images?

a)

They do not reduce file size as much as lossy methods

b)

They reduce image quality

c)

They are more complex to implement

d)

They are not suitable for text files

31.

What is meant by symmetric encryption?

a)

The same key is used for both encryption and decryption

b)

Different keys are used for encryption and decryption

c)

It uses a public key for encryption

d)

It uses a private key for decryption

32.

Why is asymmetric encryption considered more secure than symmetric encryption?

a)

It uses different keys for encryption and decryption

b)

It uses the same key for both encryption and decryption

c)

It is faster to implement

d)

It requires less computational power

33.

What is an entity in the context of database concepts?

a)

A type of database

b)

A category of object, person, event, or thing of interest

c)

A programming language

d)

A type of data storage device

34.

Which of the following is an example of an entity in a database system for Human Resource Management?

a)

Hard drive

b)

Operating system

c)

Employee

d)

Software application

35.

What is a flat file database?

a)

A database with multiple tables

b)

A database consisting of a single file

c)

A database with complex relationships

d)

A database stored in the cloud

36.

Which attribute might be included for the entity 'Dentist'?

a)

Genre

b)

Qualification

c)

Release Date

d)

Manufacturer

37.

What is the primary key in the entity description for a Dentist?

a)

Title

b)

DentistID

c)

Surname

d)

Qualification

38.

Which of the following is an example of a one-to-one relationship?

a)

Mother and Child

b)

Customer and Order

c)

Husband and Wife

d)

Student and Course

39.

What is a secondary key used for in a database?

a)

To uniquely identify an entity

b)

To maintain an index of primary keys

c)

To quickly search the database

d)

To create a new database

40.

Which relationship type is represented by the connection between a Customer and a Product in an Order Processing database?

a)

One-to-one

b)

One-to-many

c)

Many-to-many

d)

None of the above

41.

What is a foreign key in a relational database?

a)

A unique identifier for each record in a table

b)

An attribute that creates a join between two tables

c)

A field that stores large amounts of text

d)

A key that is used to encrypt data

42.

In a one-to-many relationship between Dentist and Patient, which attribute acts as the foreign key?

Dentist(dentistID, dentistName)

Patient(patientID, patientName, dentistID)

a)

PatientID

b)

DentistID

c)

Address

d)

Qualification

43.

What is required to link tables in a many-to-many relationship?

a)

A single foreign key

b)

A composite key

c)

An extra table

d)

A unique identifier

44.

What is a composite primary key?

a)

A key that consists of a single attribute

b)

A key that consists of more than one attribute

c)

A key that is used to encrypt data

d)

A key that is used to link two tables

45.

What is the purpose of drawing an entity relationship diagram in a database system?

a)

To show all the relationships between different entities

b)

To create a visual representation of data flow

c)

To design the user interface of a database

d)

To manage database security settings

46.

In the example of a hospital inpatient system, which entities are involved?

a)

Ward, Nurse, Patient, Consultant

b)

Doctor, Patient, Medicine, Room

c)

Hospital, Staff, Equipment, Visitor

d)

Nurse, Doctor, Room, Equipment

47.

What is referential integrity in a relational database?

a)

Ensuring a component is not deleted if it is used in a product

b)

Creating a backup of the database regularly

c)

Designing the database schema

d)

Optimizing database queries for speed

48.

What type of relationship is shown in the screenshot for enforcing referential integrity?

a)

One-to-Many

b)

Many-to-Many

c)

One-to-One

d)

Many-to-One

49.

What is a suitable primary key for the Property table?

a)

Address

b)

PropertyID

c)

OwnerName

d)

AskingPrice

50.

Which of the following could be a secondary key in the Property table?

a)

Number of Bedrooms

b)

PropertyID

c)

OwnerName

d)

AskingPrice

51.

What is the name given to a key that is made up of multiple attributes?

a)

Primary Key

b)

Composite Key

c)

Foreign Key

d)

Unique Key

52.

What is meant by a foreign key?

a)

A key that uniquely identifies each record in a table

b)

A key that is used to encrypt data

c)

A key that links two tables together

d)

A key that is used to sort data

53.

What is an identifier for the entity ExamPaper?

a)

CourseID

b)

ExamPaperID

c)

DateOfExam

d)

CandidateNumber

54.

In a relational database, what is a primary key?

a)

A key that uniquely identifies each record

b)

A key that links two tables together

c)

A key that is used for encryption

d)

A key that is used to sort data

55.

What is the use of a primary key as a foreign key?

a)

To uniquely identify records in a single table

b)

To link records between two tables

c)

To encrypt data in a database

d)

To sort data in ascending order

56.

State an identifier for the entity ExamPaper.

a)

ExamPaperID

b)

CourseID

c)

CandidateNumber

d)

Subject

57.

What is a primary key?

a)

A unique identifier for a record

b)

A duplicate entry in a table

c)

A foreign key in another table

d)

A non-unique identifier for a record

58.

Explain the use of a primary key as a foreign key.

a)

To establish a relationship between two tables

b)

To duplicate data across tables

c)

To delete records in a table

d)

To create a new table

59.

What is a relational database?

a)

A collection of tables with relationships modeled by shared attributes

b)

A single table with no relationships

c)

A database with no attributes

d)

A collection of unrelated data

60.

What is the purpose of a primary key in a relational database?

a)

To uniquely identify a record in a table

b)

To store large amounts of data

c)

To create a backup of the database

d)

To encrypt the data

61.

What is an index in the context of databases?

a)

A mechanism to quickly locate a record with a particular primary key

b)

A list of all tables in the database

c)

A summary of the database content

d)

A tool for encrypting data

62.

Which TWO of the following are examples of entity name in a database table?

a)

Book

b)

DeweyCode

c)

Title

d)

Author

63.

What is the purpose of normalisation in relational databases?

a)

To increase data redundancy

b)

To ensure data is unnecessarily duplicated

c)

To split tables to get the best possible design for a relational database

d)

To make data retrieval slower

64.

What is a foreign key in the context of linking database tables?

a)

A unique identifier for each record in a table

b)

An attribute that links tables through a common attribute

c)

A key that is not used in relational databases

d)

A primary key in the first table

65.

Which of the following is NOT a basic stage of normalisation?

a)

First normal form

b)

Second normal form

c)

Fourth normal form

d)

Third normal form

66.

What condition must be met for a table to be in first normal form (1NF)?

a)

It must contain repeating attributes

b)

It must not have a primary key

c)

It must contain no repeating attribute or groups of attributes

d)

It must have a foreign key

67.

What is the first stage in normalization when dealing with repeating groups of attributes in a table?

a)

Combining all attributes into one table

b)

Splitting the data into two tables

c)

Removing all attributes

d)

Adding more attributes

68.

In a relational database, what is a table commonly referred to as?

a)

Record

b)

Attribute

c)

Relation or Entity

d)

Component

69.

What is the relationship between the two entities, Product and Component?

(A product is assembled using multiple components, like a computer is made up of many different hardware devices)

a)

Product is a type of Component

b)

Product has Component

c)

Component has Product

d)

Product and Component are unrelated

70.

Why is it not a good idea to allow space for four components in the record for each product?

a)

It simplifies the database structure

b)

It allows for more flexibility

c)

It contains repeating attributes, which are not allowed in first normal form

d)

It reduces the number of tables needed

71.

What is the purpose of introducing a link table between Product and Component?

a)

To reduce the number of components

b)

To link the two tables and remove repeating attributes

c)

To increase the number of attributes

d)

To simplify the product table

72.

Which normal form requires that a table contains no partial dependencies?

a)

First normal form (1NF)

b)

Second normal form (2NF)

c)

Third normal form (3NF)

d)

Fourth normal form (4NF)

73.

In a many-to-many relationship, what is always needed between two entities?

a)

A primary key

b)

A foreign key

c)

A link table

d)

A composite key

74.

In a many-to-many relationship, what is always needed between two entities?

a)

A primary key

b)

A foreign key

c)

A junction table

d)

A composite key

75.

What does third normal form (3NF) ensure about attributes in a table?

a)

All attributes are dependent on the primary key

b)

All attributes are independent of the primary key

c)

All attributes are dependent on non-key attributes

d)

All attributes are independent of non-key attributes

76.

Which table in the example provided contains a composite key?

a)

Product

b)

ProductComp

c)

Component

d)

Supplier

77.

What is one of the main advantages of a normalised database over an un-normalised one?

a)

Increased data redundancy

b)

Easier data retrieval

c)

Improved data integrity

d)

Faster data entry

78.

What is the purpose of normalising a database design?

a)

To increase data redundancy

b)

To remove redundant data

c)

To make data entry faster

d)

To complicate database structure

79.

In the context of databases, what does data integrity mean?

a)

Data is stored in multiple locations

b)

Data is duplicated for safety

c)

Data is consistent and accurate

d)

Data is encrypted for security