wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Fundamentals of Databases

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

What is a database?

a)

A database is an organized collection of data stored electronically.

b)

A database is a type of software used for web browsing.

c)

A database is a collection of random files without structure.

d)

A database is a physical location where data is stored.

2.

Define the term 'table' in a database context.

a)

A table is a structured collection of data in rows and columns in a database.

b)

A table is a type of database query.

c)

A table is a graphical representation of data in a database.

d)

A table is a single row of data in a database.

3.

What is a primary key?

a)

A primary key is a duplicate identifier for records.

b)

A primary key is an optional field in a database table.

c)

A primary key is a unique identifier for a record in a database table.

d)

A primary key is a type of foreign key.

4.

Explain the concept of a foreign key.

a)

A foreign key is a unique identifier for a record in the same table.

b)

A foreign key is a field that contains only null values.

c)

A foreign key is a field in one table that links to the primary key of another table, establishing a relationship between the two.

d)

A foreign key is a type of index that speeds up database queries.

5.

How do you create a new table in Microsoft Access?

a)

Right-click on the database, select 'Add Table', and choose a template.

b)

Open Microsoft Access, go to 'Home' tab, select 'New Table', and enter data directly.

c)

Open Microsoft Access, click on 'File', then 'New', and select 'Blank Table' from the menu.

d)

Open Microsoft Access, go to 'Create' tab, select 'Table Design', define fields, and save the table.

6.

What is the purpose of relationships in a database?

a)

To eliminate the need for data normalization

b)

To store data in a single table only

c)

To create visual representations of data only

d)

The purpose of relationships in a database is to connect and organize data across different tables, ensuring data integrity and facilitating efficient data retrieval.

7.

Name the three types of relationships in databases.

a)

One-to-Few

b)

Single-to-Multiple

c)

Many-to-One

d)

One-to-One, One-to-Many, Many-to-Many

8.

What is a one-to-many relationship?

a)

A one-to-many relationship is an association where one entity is related to multiple instances of another entity.

b)

A one-to-many relationship is an association where two entities are related equally to each other.

c)

A one-to-many relationship is a type of relationship where one entity has no connections to other entities.

d)

A one-to-many relationship is when multiple entities are related to one instance of another entity.

9.

What is a select query used for?

a)

To update existing records in a database.

b)

To retrieve data from a database.

c)

To delete data from a database.

d)

To create new tables in a database.

10.

What data type would you use for a person's name in Access?

a)

Long Text

b)

Number

c)

Short Text

d)

Date/Time

11.

What is the difference between a text field and a memo field in Access?

a)

Both text fields and memo fields can store the same amount of text, up to 65,536 characters.

b)

The main difference is that a text field is limited to 255 characters, while a memo field can store much larger amounts of text, up to 65,536 characters.

c)

A text field can store up to 1,000 characters, while a memo field is limited to 255 characters.

d)

A text field is used for numeric data, while a memo field is used for dates.

12.

How do you join two tables in a select query?

a)

Use the UNION operator to join two tables in a SELECT query.

b)

Combine tables by listing them in the FROM clause without a condition.

c)

Use the JOIN clause with a condition to combine two tables in a SELECT query.

d)

Use the SELECT clause to merge two tables directly.

13.

What is the function of a database management system (DBMS)?

a)

To provide a user interface for web applications.

b)

To manage and control access to the database, ensuring data integrity and security.

c)

To store data in a physical format only.

d)

To create visual reports from data without any processing.

14.

What is the role of a foreign key in a relational database?

a)

A foreign key is used to uniquely identify a record in the same table.

b)

A foreign key is an optional field that can contain duplicate values.

c)

A foreign key is a field that links to the primary key of another table, establishing a relationship.

d)

A foreign key is a type of index that improves query performance.

15.

What is the purpose of a query in a database?

a)

To store data in a more compact format.

b)

To visualize data in graphical formats.

c)

To retrieve, update, or delete data from a database.

d)

To create new tables and define their structure.

16.

What does the term 'data integrity' refer to in databases?

a)

Data integrity refers to the accuracy and consistency of data over its lifecycle.

b)

Data integrity is the process of backing up data regularly.

c)

Data integrity is the method of encrypting data for security.

d)

Data integrity is the ability to store large amounts of data efficiently.

17.

What is the role of a secondary key in a database?

a)

A secondary key is used to uniquely identify a record in a table.

b)

A secondary key is an optional field that can contain duplicate values.

c)

A secondary key is a field that helps in retrieving data more efficiently but does not uniquely identify a record.

d)

A secondary key is a type of primary key.

18.

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

a)

A primary key is optional and can be left blank.

b)

A primary key is a unique identifier for each record in a table.

c)

A primary key can contain duplicate values.

d)

A primary key is used to link two tables together.

19.

How can you enforce data integrity in a database?

a)

By using primary keys and foreign keys to establish relationships.

b)

By regularly backing up the database.

c)

By limiting the size of the database.

d)

By using only text fields for all data types.

20.

What is the purpose of a foreign key constraint in a database?

a)

To ensure that a foreign key value must match a primary key value in another table.

b)

To create a backup of the database.

c)

To allow duplicate values in a foreign key field.

d)

To automatically delete records in the primary table when a related record is deleted.