wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Databases

Total questions: 10

Worksheet time: 7mins

Name
Class
Date
1.

Which of the following relationships cannot be created directly between two tables in a normalised relational database?

a)

many-to-many

b)

one-to-one

c)

one-to-many

d)

many-to-one

2.

What is used to uniquely identify a record on a table?

a)

Foreign Key

b)

Primary Key

c)

Candidate Key

d)

Combination Key

3.

Which of the following is not a reason to normalise a database?

a)

maintain referential integrity

b)

eliminate data redundancy

c)

reduce data storage

d)

improve performance

4.

Which of the following does not mitigate problems with concurrent usage of a client-server database?

a)

record locks

b)

commitment ordering

c)

deadlocks

d)

serialisation

5.

What is the purpose of an index on a database table?

a)

to make sure records are unique

b)

to put records in a specific order

c)

to reduce storage

d)

to make it faster to search for a record

6.

Which of the following SQL statements has valid syntax?

a)

SELECT * FROM mytable.myrecord WHERE ORDER ascending

b)

SELECT * FROM mytable

ORDER BY myfield

c)

SELECT myrecord FROM mytable WHERE mydate=21/3/2025

d)

SELECT FROM mytable WHERE myfield LIKE "J*"

7.

When referring to a database, what does DDL stand for?

a)

Data Description Language

b)

Data Definition Language

c)

Dynamic Data Language

d)

Dynamic Description Language

8.

Which of the following SQL statements has invalid syntax?

a)

DELETE FROM mytable

b)

UPDATE mytable SET myfield='new value'

c)

INSERT INTO mytable

d)

SELECT * FROM mytable

9.

Which of the following is not part of third normal form

a)

There should be no transitive dependencies

b)

Every field should be functionally dependent on the key

c)

The data should be atomic

d)

No data values should be repeated

10.

Comparing an ERD to a database, you could describe an entity as being represented by a table. Using this comparison, what would an attribute be represented by in the database?

a)

a field

b)

a record

c)

a key

d)

an index