wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Databases - 1.2 Primary Key

Total questions: 7

Worksheet time: 4mins

Name
Class
Date
1.

What is a primary key?

a)

A unique identifier for each record in a table that cannot contain NULL values.

b)

A duplicate identifier for records in a table.

c)

A foreign key in a table.

d)

A non-unique identifier for records in a table.

2.

What is a composite key?

a)

A composite key is a primary key made up of two or more columns to uniquely identify a record.

b)

A composite key is a single column used to uniquely identify a record.

c)

A composite key is a foreign key used to link two tables.

d)

A composite key is a unique constraint on a single column.

3.

A primary key column can contain duplicate values because:

a)

It is allowed by database design.

b)

It ensures data integrity.

c)

It uniquely identifies each record.

d)

It can have null values.

4.

Activity Question: Given a "Library" table with columns BookID, Title, and AuthorID, which column(s) would be the most appropriate primary key?

a)

BookID

b)

Title

c)

AuthorID

d)

Title and AuthorID

5.

Which is the best example of a primary key?

a)

Driver's License Number

b)

Home Runs Hit

c)

Price

d)

First and Last Name

6.

Which of the following is a method to enforce data integrity in Access?

a)

Using primary keys

b)

Using foreign keys

c)

Using validation rules

d)

All of the above

7.

In Access, what does the term "referential integrity" refer to?

a)

Ensuring that all data is encrypted

b)

Ensuring that relationships between tables remain consistent

c)

Ensuring that all tables have a primary key

d)

Ensuring that all queries run efficiently