wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Database System DKC4312

Total questions: 25

Worksheet time: 8mins

Name
Class
Date
1.

What are databases mainly used for?

a)

To store archived data

b)

To store and organise data

c)

To analyse data

2.

Which of the following statements best defines the word 'database'?

a)

A database is a collection of data or information which is stored in a logical and structured way

b)

A database is a collection of statistics stored only for computers.

c)

A database does not collect data or information.

3.

What is the difference between an entity and an attribute?

a)

An attribute is a table in a database and an entity is a field

b)

An attribute is a record in a database and an entity is a table

c)

An attribute is a field in a database and an entity is a table

4.

Why would you create a primary key?

a)

To make each record in a database unique

b)

To make each field in a database unique

c)

To make each query in a database unique

5.
A column name is otherwise known as a _____.
a)
field
b)
table
c)
row
d)
record
6.
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
7.
Data _____ helps ensure that an incorrect entry isn't made.
a)
validation
b)
checks
c)
accuracy
d)
integrity
8.
A quick way to find data in a database is to use _____.
a)
queries
b)
quandries
c)
questions
d)
file folders
9.
SQL stands for _____.
a)
structured query language
b)
sustainable query language
c)
structured question language
d)
sustainable question language
10.

In a TABLE, a row is known as a...

a)

Information

b)

Column

c)

Data

d)

Record

11.

The best data type to choose for a memberID would be

a)

Number

b)

Date/Time

c)

Text

d)

Currency

12.

The best data type to choose for date of birth would be

a)

Number

b)

Date/Time

c)

Text

d)

Currency

13.

In a database, data is stored in

a)

Queries

b)

Forms

c)

Reports

d)

Tables

14.

Which of the following can add a row to a table?

a)

Add

b)

Insert

c)

Update

d)

Alter

15.

What does DML stand for?

a)

Data Manipulation Language

b)

Data Modeling Language

c)

Data Markup Language

d)

Data Migration Language

16.

Which of the following is not a valid aggregate function?

a)

COUNT

b)

MIN

c)

COMPUTE

d)

MAX

17.

SQL is not case sensitive. SELECT is the same as select.

a)

TRUE

b)

FALSE

18.

The _________ statement is used to delete a table.

a)

DROP TABLE

b)

DELETE TABLE

c)

DEL TABLE

d)

REMOVE TABLE

19.

Which one of the following sorts rows in SQL?

a)

SORT BY

b)

ALIGN BY

c)

GROUP BY

d)

ORDER BY

20.

The SQL statement that queries or reads data from a table is __________ .

a)

USE

b)

SELECT

c)

READ

d)

QUERY

21.

Which SQL statement is used to return only different values?

a)

SELECT DISTINCT

b)

SELECT UNIQUE

c)

SELECT DIFF

d)

SELECT DIFFERENT

22.

With SQL, how do you select all the columns from a table named "Persons"?

a)

SELECT * FROM Persons

b)

SELECT Persons

c)

SELECT [all] FROM Persons

d)

SELECT *.Persons

23.

The SQL keyword BETWEEN is used:

a)

For ranges.

b)

To limit the columns displayed.

c)

As a wildcard.

d)

None of the above

24.

Which clause is used to “Filters out unwanted data”?

a)

FROM

b)

SELECT

c)

ORDER BY

d)

WHERE

25.

Write a query to display first_name and last_name of all employees who have their first_name starting with 'A'.

a)

Select first_name from employess where first_name LIKE '%A';

b)

Select first_name from employess where first_name LIKE "'A'%";

c)

Select first_name from employess where first_name LIKE 'A%';

d)

Select first_name from employess where first_name LIKE '%A%';