wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

H446|U4 End of unit big quiz

Total questions: 100

Worksheet time: 50mins

Name
Class
Date
1.

Which type of compression permanently removes non-essential data?

a)

Lossless

b)

Lossy

c)

Run Length Encoding

d)

Dictionary-based

2.

Which compression method is best suited for text files?

a)

Lossy

b)

Lossless

c)

JPG

d)

MP3

3.

What does RLE stand for?

a)

Run Length Encoding

b)

Real Lossless Encryption

c)

Random Length Extension

d)

Redundant Lossy Encoding

4.

In RLE, how is repeated data represented?

a)

By storing each instance of the data

b)

By removing the repeated data

c)

By storing one example and the number of repetitions

d)

By encrypting the repeated data

5.

Dictionary-based compression stores frequently occurring data in a:

a)

Hash table

b)

Array

c)

Dictionary

d)

Queue

6.

What is the purpose of encryption?

a)

To reduce file size

b)

To ensure data integrity

c)

To make data unreadable without the correct key

d)

To speed up data transfer

7.

In encryption, the original message is called:

a)

Ciphertext

b)

Key

c)

Plaintext

d)

Hash

8.

Which of the following is a simple substitution cipher?

a)

Vernam cipher

b)

Caesar cipher

c)

Asymmetric encryption

d)

Hashing

9.

What is a weakness of the Caesar cipher?

a)

It is too complex

b)

It is unbreakable

c)

It can be easily broken using frequency analysis

d)

It requires a one-time pad

10.

Which cipher is proven to be unbreakable if used correctly?

a)

Caesar cipher

b)

Vernam cipher

c)

Symmetric encryption

d)

Hashing

11.

What is another name for the encryption key used in the Vernam cipher?

a)

Public key

b)

Private key

c)

One-time pad

d)

Hash

12.

In the Vernam cipher, the encryption key should be:

a)

Shorter than the plaintext

b)

The same length as or longer than the plaintext

c)

Used multiple times

d)

Predictable

13.

What operation is used to encrypt and decrypt data in the Vernam cipher?

a)

AND

b)

OR

c)

XOR

d)

NOT

14.

Ciphers based on computational security:

a)

Are unbreakable

b)

Use a one-time pad

c)

Can be broken given enough time and computing power

d)

Use two keys

15.

Which type of encryption uses the same key for encryption and decryption?

a)

Asymmetric

b)

Symmetric

c)

Hashing

d)

Vernam

16.

What is a disadvantage of symmetric encryption?

a)

It is too slow

b)

It requires two keys

c)

The key must be transferred to the recipient

d)

It is unbreakable

17.

Asymmetric encryption uses:

a)

One key

b)

Two related keys

c)

A one-time pad

d)

A hash function

18.

In asymmetric encryption, which key is made public?

a)

Private key

b)

Public key

c)

Session key

d)

Secret key

19.

What is a hashing function?

a)

A two-way function

b)

A one-way function

c)

An encryption method

d)

A compression method

20.

Hashing is useful for storing:

a)

Large files

b)

Images

c)

Passwords

d)

Audio files

21.

What is the simplest kind of database?

a)

Relational database

b)

Flat file database

c)

Hierarchical database

d)

Object-oriented database

22.

Which of the following is an example of an entity?

a)

Jo Bloggs

b)

Customer

c)

C111

d)

fcarr53@gmail.com

23.

What is an attribute?

a)

A category of object

b)

A characteristic of an entity

c)

A single instance of an entity

d)

A relationship between entities

24.

Which attribute uniquely identifies a record in a relational database?

a)

Foreign key

b)

Secondary key

c)

Primary key

25.

What is a composite primary key?

a)

A key in a flat file database

b)

A key consisting of more than one attribute

c)

A key that is not unique

d)

A key in a related table

26.

A field for which an index has been created for faster lookup is called a:

a)

Foreign key

b)

Secondary key

c)

Primary key

d)

Composite key

27.

Which of the following is a type of relationship between entities?

a)

One-to-one

b)

One-to-many

c)

Many-to-many

d)

All of the above

28.

In an Entity Relationship Diagram (ERD), entities are represented by:

a)

Circles

b)

Squares

c)

Diamonds

d)

Triangles

29.

What is a foreign key?

a)

The primary key of a table

b)

An attribute that creates a join between two tables

c)

A non-unique identifier

d)

A key consisting of more than one attribute

30.

In which table is a foreign key located?

a)

On the "one" side of a relationship

b)

On the "many" side of a relationship

c)

In both tables

31.

What does referential integrity ensure?

a)

That all data is unique

b)

That no foreign key references a non-existent record

c)

That all primary keys are present

d)

That all tables are in 3NF

32.

In a one-to-many relationship between Customer and Subscription, which table contains the foreign key?

a)

Customer

b)

Subscription

c)

Both Customer and Subscription

d)

Neither Customer nor Subscription

33.

Which of the following is true about a relation?

a)

It is another name for a relationship

b)

It is a type of entity

c)

It is another name for a table

d)

It is a column in a table

34.

A database contains one or more:

a)

Attributes

b)

Entities

c)

Relations

d)

Records

35.

A row in a relation contains a:

a)

Field

b)

Record

c)

Attribute

d)

Key

36.

A column in a relation contains a:

a)

Field

b)

Record

37.

When there is a many-to-many relationship between tables, they are:

a)

Directly linked

b)

Linked using a foreign key

c)

Linked using a link table

d)

Not linked

38.

In a link table, what type of keys are used to link to other tables?

a)

Primary keys

b)

Secondary keys

c)

Foreign keys

d)

Composite keys

39.

In a relational database, a table is also known as a:

a)

Entity

b)

Attribute

c)

Relation

d)

Record

40.

Normalisation is used to:

a)

Increase the size of a database

b)

Improve query performance

c)

Organise data and reduce redundancy

d)

Define relationships between entities

41.

In a relational database, tables are also known as:

a)

Entities

b)

Attributes

c)

Relations

d)

Records

42.

The purpose of normalisation is:

a)

To increase data redundancy

b)

To organize data to reduce redundancy

c)

To make data retrieval slower

d)

To ensure data is stored in a single table

43.

What is the purpose of normalization?

a)

To increase data redundancy

b)

To complicate database design

c)

To arrive at the best possible database design

d)

To reduce the number of tables

44.

How many stages are there in normalisation?

a)

1

b)

2

c)

3

d)

4

45.

What does 1NF stand for?

a)

First Normal Form

b)

Foreign Normal Form

c)

Functional Normal Form

d)

Final Normal Form

46.

A table is in 1NF if it contains:

a)

No repeating attributes

b)

No partial dependencies

c)

No non-key dependencies

d)

Only a primary key

47.

In 1NF, all attributes must be:

a)

Unique

b)

Atomic

c)

Indexed

d)

Foreign keys

48.

A table with a primary key consisting of more than one field is called a:

a)

Foreign key

b)

Secondary key

c)

Composite key

d)

Simple key

49.

7. What does 2NF stand for?

a)

Second Normal Form

b)

Second Nominal Form

c)

Secondary Normal Form

d)

Secondary Nominal Form

50.

A table is in 2NF if it is in 1NF and contains no:

a)

Repeating attributes

b)

Partial dependencies

c)

Non-key dependencies

d)

Foreign keys

51.

Which normal form can only occur if the primary key is a composite key?

a)

1NF

b)

2NF

c)

3NF

d)

BCNF

52.

What does 3NF stand for?

a)

Third Normal Form

b)

Tertiary Normal Form

c)

Transitive Normal Form

d)

Top Normal Form

53.

A table is in 3NF if it is in 2NF and contains no:

a)

Repeating attributes

b)

Partial dependencies

c)

Non-key dependencies

d)

Foreign keys

54.

The definition of a table in 3NF is:

a)

All attributes are atomic

b)

All attributes are dependent on the key

c)

All attributes are dependent on the key, the whole key, and nothing but the key

d)

All attributes are unique

55.

In 3NF, a non-key dependency means that an attribute is dependent on:

a)

The primary key

b)

A foreign key

c)

A non-key attribute

d)

All attributes

56.

Which of the following is an advantage of normalisation?

a)

Increased data redundancy

b)

More complex queries

c)

Faster searches

d)

Larger tables

57.

Normalisation helps to maintain:

a)

Data redundancy

b)

Data integrity

c)

Data complexity

d)

Data size

58.

Having smaller tables with fewer fields results in:

a)

Slower searches

b)

Increased storage

c)

Faster searches

d)

More complex relationships

59.

If a person changes their address, how many tables need to be updated in a normalised database?

a)

All tables

b)

Only one table

c)

Two tables

d)

It depends on the number of foreign keys

60.

Which is not a property of a relation in 3NF

a)

All attributes are dependent on the key

b)

The relation is in 2NF

c)

There are no non-key dependencies

61.

What does SQL stand for?

a)

Simple Query Language

b)

Structured Query Language

c)

Standard Query Language

d)

Sequential Query Language

62.

SQL is a:

a)

Procedural language

b)

Object-oriented language

c)

Declarative language

d)

Functional language

63.

Which SQL statement is used to extract data from a database?

a)

SELECT

b)

FROM

c)

WHERE

d)

ORDER BY

64.

In a SELECT statement, which clause specifies the table(s) to retrieve data from?

a)

SELECT

b)

FROM

c)

WHERE

d)

ORDER BY

65.

Which clause is used to specify search criteria in a SELECT statement?

a)

WHERE

b)

FROM

c)

ORDER BY

d)

GROUP BY

66.

Which clause is used to filter the results of a query?

a)

SELECT

b)

FROM

c)

WHERE

d)

ORDER BY

67.

Which clause is used to sort the results of a query?

a)

SELECT

b)

FROM

c)

WHERE

d)

ORDER BY

68.

What does the asterisk (*) wildcard mean in a SELECT statement?

a)

Any single character

b)

Zero or more characters

c)

All fields

d)

All tables

69.

Which SQL keyword is used to search for a pattern?

a)

EQUAL

b)

LIKE

c)

IN

d)

BETWEEN

70.

Which SQL operator is used to specify a range of values?

a)

EQUAL

b)

LIKE

c)

IN

d)

BETWEEN

71.

Which SQL operator is used to specify multiple possible values for a column?

a)

EQUAL

b)

LIKE

c)

IN

d)

BETWEEN

72.

If neither ASC nor DESC is specified in an ORDER BY clause, the default order is:

a)

Descending

b)

Ascending

c)

Random

d)

Unsorted

73.

When selecting attributes from linked tables, you should specify the table name when:

a)

The attribute name is unique

b)

The attribute name occurs in more than one table

c)

The attribute is a primary key

d)

The attribute is a foreign key

74.

Which keyword is used as an alternative to the WHERE clause to extract data from two linked tables?

a)

LINK

b)

JOIN

c)

COMBINE

d)

MERGE

75.

In a JOIN clause, the ON keyword is used to specify:

a)

The tables to join

b)

The attributes to select

c)

The join condition

d)

The order of the results

76.

Which is not a clause of the SELECT statement?

a)

SELECT

b)

FROM

c)

JOIN

d)

WHERE

77.

What will the following query return? SELECT * FROM Customers WHERE City = "London";

a)

All customers

b)

All fields from the Customers table where the city is London

c)

The city of London from the Customers table

d)

An error

78.

What does the following SQL do? SELECT OrderID, CustomerName FROM Orders ORDER BY CustomerName DESC;

a)

Selects the OrderID and CustomerName from the Orders table and sorts it in Descending Order by the OrderID

b)

Selects the OrderID and CustomerName from the Orders table and sorts it in Descending Order by the CustomerName

c)

Selects the OrderID and CustomerName from the Orders table and sorts it in Ascending Order by the OrderID

d)

Selects the OrderID and CustomerName from the Orders table and sorts it in Ascending Order by the CustomerName

79.

Which statement is used to combine the results of two SELECT statements?

a)

JOIN

b)

UNION

c)

MERGE

d)

COMBINE

80.

Which symbol is used to separate each SQL statement?

a)

a) ,

b)

b) .

c)

c) ;

d)

d) :

81.

Which SQL statement is used to create a new table?

a)

CREATE TABLE

b)

ALTER TABLE

82.

Which SQL statement is used to create a new table?

a)

CREATE TABLE

b)

ALTER TABLE

c)

INSERT INTO

d)

UPDATE

83.

Which SQL statement is used to modify the structure of an existing table?

a)

CREATE TABLE

b)

ALTER TABLE

c)

INSERT INTO

d)

UPDATE

84.

Which SQL statement is used to add a new record to a table?

a)

CREATE TABLE

b)

ALTER TABLE

c)

INSERT INTO

d)

UPDATE

85.

Which SQL statement is used to modify an existing record in a table?

a)

CREATE TABLE

b)

ALTER TABLE

c)

INSERT INTO

d)

UPDATE

86.

Which SQL statement is used to delete a record from a table?

a)

CREATE TABLE

b)

ALTER TABLE

c)

INSERT INTO

d)

DELETE

87.

Which data type is used for variable-length character strings?

a)

CHAR

b)

VARCHAR

c)

TEXT

d)

STRING

88.

Which data type is used for true/false values?

a)

INT

b)

FLOAT

89.

Which data type is used for storing date values?

a)

TIME

b)

DATE

c)

DATETIME

d)

TIMESTAMP

90.

Which data type is used for currency values?

a)

FLOAT

b)

DECIMAL

c)

MONEY

d)

CURRENCY

91.

In a CREATE TABLE statement, which keyword is used to specify that a field cannot be left blank?

a)

UNIQUE

b)

PRIMARY KEY

c)

NOT NULL

d)

REQUIRED

92.

Which SQL clause is used to add a new column to an existing table?

a)

ADD COLUMN

b)

ADD

c)

ALTER COLUMN

d)

INSERT COLUMN

93.

Which SQL clause is used to delete a column from an existing table?

a)

DELETE COLUMN

b)

DELETE

c)

DROP COLUMN

d)

DROP

94.

Which SQL clause is used to change the data type of a column?

(a)  

95.

Which keyword is used to create a link between two tables?

a)

LINK

b)

JOIN

c)

FOREIGN KEY

d)

REFERENCES

96.

When inserting data into a table, the order of the values must match the order of the:

a)

Table names

b)

Field names

c)

Data types

d)

Constraints

97.

Which SQL clause is used to specify the new values for a record in an UPDATE statement?

a)

NEW VALUES

b)

SET

c)

CHANGE

d)

MODIFY

98.

In an UPDATE statement, which clause is used to specify which record should be modified?

a)

SET

b)

FROM

c)

WHERE

d)

ORDER BY

99.

To delete all records from a table without deleting the table itself, you can use:

a)

DROP TABLE

b)

DELETE FROM

c)

DELETE * FROM

d)

TRUNCATE TABLE

100.

What is the main difference between CHAR and VARCHAR?

a)

CHAR is fixed-length, VARCHAR is variable-length

b)

VARCHAR is fixed-length, CHAR is variable-length

c)

There is no difference

d)

CHAR is for numbers, VARCHAR is for text