wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Database - Full Quiz

Total questions: 41

Worksheet time: 1hrs 22mins

Name
Class
Date
1.

What is this?

a)

Record (row)

b)

Field (Column)

2.

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

a)

Currency

b)

Date/Time

3.

In a database, data is stored in

a)

Tables

b)

Sheets

4.

What does SQL stand for?

a)

Standard Query Language

b)

Structured Query Language

5.

Which of the following SQL is used to DELETE tables from a database ?

a)

DELETE

b)

REMOVE

c)

DROP

6.

Find cities with temperature less than 25.

a)
b)
7.

How to Change “Mohammed” into “Mr.Mohammed”


in “LastName” column


in the Persons table?

a)
b)
8.

Select all the records that ends with “a”?

a)
b)
9.

add a record into the database?

a)
b)
10.

Which word is missing?


Select * table_name

a)

Where

b)

From

11.

______________ constraint prevents NULL values

a)

FOREIGN KEY

b)

NOT NULL

12.

A primary key can be NULL.

a)

TRUE

b)

FALSE

13.

SQL is not case sensitive.

a)

TRUE

b)

FALSE

14.

The _________ statement is used to delete a table.

a)

DROP TABLE

b)

DELETE TABLE

15.

to sorts rows

a)

SORT BY

b)

ORDER BY

16.

Select all the columns from a table named "Persons"?

a)

SELECT * FROM Persons

b)

SELECT Persons

c)

SELECT * Persons

17.

SQL can be used to:

a)

Create database

b)

Get data from database

c)

Modify data inside database

d)

All of the above

18.

The best data type to choose for product price would be

a)

Decimal

b)

Date/Time

c)

Text

19.

You can insert many rows at the same time using SQL.

a)

TRUE

b)

FALSE

20.

You can find summation of degrees of student named "Mohamed" by using

a)
b)
21.

What is this?

a)

Relation

b)

Entity

22.

Primary keys must contain UNIQUE values, and cannot contain NULL values.

a)

True

b)

False

23.

" Foreign Key " on UPDATE " CASCADE"

a)

If data of parent table changed , the child table will be changed.

b)

If data of parent table changed , the child table will not be changed.

24.

DROP DATABASE database-name;

a)

Remove Database

b)

Archive Database

25.

What is missing in the following code?


CREATE TABLE table-name;

a)

Column name

b)

Column name and data type

c)

Database name

26.

Length of TINYINT is less than SMALLINT

a)

True

b)

False

27.

What is missing in the below code?


ALTER TABLE table-name

ADD

(column-name) ;

a)

Constraint

b)

Data Type

28.

a)

All data of spare parts made in Italy

b)

All data of spare parts made in China

c)

Both

29.

The result of the following code :


SELECT MAX(product_price) FROM spare_parts ;

a)

Most expensive

b)

Cheapest product

30.

phpMyAdmin is a database.

a)

False

b)

True

31.

"Foreign Key" links tables together.

a)

TRUE

b)

FALSE

32.

"XAMPP" is a database.

a)

TRUE

b)

FALSE

33.

We can convert "Relational Schemas" into SQL .

a)

FALSE

b)

TRUE

34.

CRUD in database means ?

a)

Create, Read , Update , Delete

b)

Cat , Rat, Unicorn, Dog

35.

Tables can be exported in SQL format.

a)

TRUE

b)

FALSE

36.

Database used in our course is:

a)

Access

b)

MySQL

37.
a)

B

b)

A

38.

a)

;

b)

data type

c)

Table name

d)

Field Name

39.

a)

No

b)

Yes

40.

a)

Yes

b)

No

41.

What is missing?

a)

Length of product_country

b)

Data type of product_description