wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

DBMS Recap

Total questions: 39

Worksheet time: 20mins

Name
Class
Date
1.

A field of one table which is also a the primary key of another table

a)

Primary Key

b)

Relational database

c)

Data normalisation

d)

Foreign Key

2.

The attribute refers to a _____ of a table

a)

Record

b)

Foreign key

c)

Primary key

d)

Field

3.

Consider attributes ID, CITY and NAME. which one of these can be considered as a primary key?

a)

NAME

b)

ID

c)

CITY

d)

ID, NAME

4.

Which one of these cannot be taken as a primary key?

a)

ID

b)

registration no

c)

Department ID

d)

Street

5.

This is an example of ________________

a)

Data inconsistency

b)

Data redundancy

c)

Data security

d)

Data consistency

6.

A Database Management System (DBMS) is

a)

Collection of interrelated data

b)

Collection of programs to access data

c)

Collection of data describing one particular enterprise

d)

All of the above

7.

Which of the following is not a level of data abstraction?

a)

Physical Level

b)

Critical Level

c)

Logical Level

d)

View Level

8.

Disadvantages of File systems to store data is:

a)

Data redundancy and inconsistency

b)

Difficulty in accessing data

c)

Data isolation

d)

All of the above

9.

Which of the following is not a Storage Manager Component?

a)

Transaction Manager

b)

Logical Manager

c)

Buffer Manager

d)

File Manager

10.

Data Manipulation Language enables users to

a)

Retrieval of information stored in database

b)

Insertion of new information into the database

c)

Deletion of information from the database

d)

All of the above

11.

Which of the following is a Data Model?

a)

Entity-Relationship model

b)

Relational data model

c)

Object-Based data model

d)

All of the above

12.

Which of the following is not involved in DBMS?

a)

End Users

b)

Data

c)

Application Request

d)

HTML

13.

Select the DBMS software

a)
b)
c)
d)
14.

Which of the following query would display all the students whose first name starts with the character ‘A’?

a)

select first_name from students where first_name like ‘A%’;

b)

select first_name from students where first_name like ‘%A’;

c)

select first_name from students where first_name like ‘%A%’;

d)

select first_name from students where first_name like ‘A’;

15.

Which of the following is not true about the ALTER TABLE statement?

a)

It can add a new row.

b)

It can add a new column

c)

It can modify existing columns

d)

It can define a default value for the new column

16.

Here which of the following displays the unique values of the column?

SELECT ________ dept_name FROM instructor;

a)

All

b)

From

c)

Distinct

d)

Name

17.

SELECT * FROM employee WHERE salary>10000 AND dept_id=101;

Which of the following fields are displayed as output?

a)

Salary, dept_id

b)

Employee

c)

Salary

d)

All the field of employee relation

18.

In the __________ normal form, a composite attribute is converted to individual attributes

a)

First Normal Form

b)

Second Normal Form

c)

Third Normal Form

d)

Fourth Normal Form

19.

Drop table statement

a)

deletes the table structure only

b)

deletes the table structure along with the table data

c)

works whether or not referential integrity constraints would be violated

d)

is not an SQL statement

20.

What SQL clause is used to restrict the rows returned by a query ?

a)

WHEN

b)

HAVING

c)

FROM

d)

WHERE

21.

To remove duplicate rows from the result set of a select use the following keyword(s).

a)

NO DUPLICATES

b)

DISTINCT

c)

UNIQUE

d)

None of the above

22.

MySQL runs on which operating systems ?

a)

Linux and Mac OS-X only

b)

Any operating system at all

c)

Unix , Linux , Windows and others

d)

Unix and Linux only

23.

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

a)

Add

b)

Insert

c)

Update

d)

Alter

24.

Which SQL statement is used to insert new data in database ?

a)

INSERT INTO

b)

UPDATE

c)

ADD

d)

INSERT NEW

25.

In a LIKE clause , you can could ask for any value ending in "qpt" by writing.

a)

LIKE"%qpt"

b)

LIKE"*ton"

c)

LIKE"ton$"

d)

LIKE^"ton$"

26.

A NULL value is treated as a blank or 0.

a)

True

b)

False

c)

None of the above

27.

MySQL is

a)

A Programming language

b)

A Markup language

c)

A technique for writing reliable programs

d)

A Relational Database Management System

28.

In a LIKE clause , you can ask for any 6 letter value by writing

a)

LIKE ??????

b)

LIKE .{6}

c)

LIKE ...... (that's six dots)

d)

LIKE ______ (that's six underscore characters)

29.

The result of a SELECT statement can contain duplicate rows .

a)

False

b)

True

c)

None of the above

30.

Which of the following is not a valid aggregate function ?

a)

COUNT

b)

MIN

c)

MAX

d)

COMPUTE

31.

What SQL clause is used to restrict the rows returned by a query depending on validity of two conditions simultaneously ?

a)

AND

b)

WHERE

c)

HAVING

d)

FROM

32.

Primary key does allow the Null Values, whereas in Unique key doesn't accept the Null values . True or False ?

a)

True

b)

False

33.

Which of the following commands should be used to create a database named "student" ?

a)

CREATE?I student

b)

CREATE DATABASE student

c)

DATABASE /student

d)

DATABASE student

34.

Which one will delete the table data as well as table structure?

a)

DELETE

b)

DROP

35.

The USE command ?

a)

Is used to load code from another file

b)

Has been deprecated and should be avoided for security reasons.

c)

Is a pseudo name for the SELECT command

d)

Should be used to choose the database you want to use once you've connected to MySQL.

36.

A SELECT command without a WHERE clause returns ?

a)

All records from a table that match the previous WHERE clause

b)

All the records from a table , or information about all the records.

c)

SELECT is invalid without a Where clause

d)

Nothing

37.

The table columns are also known as.....

a)

Attributes

b)

Fields

c)

Records

d)

Index

e)

Key

38.

The NULL keyword is used to :

a)

Represent unknown value

b)

represent a missing value

c)

represent a positive infinity

d)

represent 0 value

e)

represent empty string

39.

What is a foreign key ?

a)

A foreign key is a key field in table , which relates the table to another table where the key is a primary key or unique key.

b)

Constraint (reference integrity)

c)

The foreign key is a column that can have NULL value

d)

The foreign key is a column that can not have NULL values