wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

DBMS query optimization

Total questions: 81

Worksheet time: 40mins

Name
Class
Date
1.
DBMS allows a user to do all of these tasks except:
a)
Speed up the operation of a computer
b)
Create a blank database table
c)
Extract a data set from a number of tables
d)
Produce reports that combine and summarise the data.
2.
Which of the following is not a DBMS despite having database capabilities:
a)
Microsoft Excel or similar spreadsheets
b)
Oracle
c)
MySQL
d)
Microsoft Access or similar
3.
In DBMS systems data is separated from control.
a)
True
b)
False
4.
It is hard to get one DBMS system to exchange data with another DBMS.
a)
False
b)
True
5.
DBMS can summarise the data stored in the database and produce an easy to read _____:
a)
reports
b)
queries
c)
tables
d)
criteria
6.
A database entity is also known as:
a)
a table
b)
a field
c)
a row
d)
a report
7.
The following are functions of a DBMS except
a)
Creating database
b)
Processing data
c)
Creating and processing forms
d)
Administrating database
8.
The DBMS that most difficult to use is ________
a)
Microsofts SQL Server
b)
Oracle Corporation Oracle
c)
Microsoft Access
d)
IBM DB2
9.
Duplicate data often results in loss of data integrity because:
a)
A. Data formats may be inconsistent
b)
B. Data values may not agree
c)
Neither A & B
d)
Both A & B
10.
A database management system (DBMS) is a:
a)
Software system used to create, maintain, and provide controlled access to a database
b)
Hardware system used to create, maintain, and provide controlled access to a database
c)
Hardware system used to create, maintain, and provide uncontrolled access to a database
d)
Software system used to create, maintain, and provide uncontrolled access to a database
11.
A database application can perform which of the following activities?
a)
Add records
b)
Display / read records
c)
Update records
d)
All of the above
12.
Data administrator are responsible for ________
a)
Overall management of data resources in an organization
b)
Physical data design
c)
Managing technical issues in the database environment
d)
Writing application program
13.
Some advantages of the database approach include all, but:
a)
Minimal data redundancy
b)
Program-data dependency
c)
Improved data consistency
d)
Improved data sharing
14.
A relational database consists of a collection of
a)
Field
b)
Record
c)
Table
d)
Keys
15.
A_______ in a table represents a relationship among a set of values
a)
Field
b)
Foreign key
c)
Record
d)
Primary key
16.
The term attribute refers to a ________ of a table
a)
Record
b)
Foreign key
c)
Primary key
d)
Field
17.
The term _______ is used to refer a row
a)
Record
b)
Foreign key
c)
Primary key
d)
Field
18.
Consider attributes ID, CITY, and NAME. Which one if this can be considered as a primary key?
a)
NAME
b)
ID
c)
CITY
d)
ID, NAME
19.
Which one of the following should be taken as a primary key?
a)
Name
b)
DepartmentID
c)
Department
d)
Street
20.
which one of the following cannot be taken as a primary key?
a)
ID
b)
RegistrationNo
c)
DepartmentID
d)
Street
21.
A attribute in a relation is a foreign key if the _____ from one relation is used as an attribute in that relation.
a)
Record
b)
Foreign key
c)
Primary key
d)
Field
22.
Which of the following gives a logical structure of the database graphically?
a)
Entity--relationship diagram
b)
Entity diagram
c)
Database diagram
d)
Architectural representation
23.
The rectangles divided into two parts represents
a)
Entity set
b)
Relationship set
c)
Attributes of a relationship set
d)
Primary key
24.
If you were collecting and storing information about your music collection, an album would be considered a(n) _____.
a)
Relation
b)
Entity
c)
Instance
d)
Attribute
25.
The records of a table can be of ________ order.
a)
Any
b)
Same
c)
Sorted
d)
Constant
26.

Which is NOT an advantage of using a database.

a)

Storage space is reduced.

b)

Accessing data is slow and inefficient.

c)

Easy to access data.

d)

Easy to edit.

27.

What is a Database?

a)

A music band.

b)

A new type of technology.

c)

An organised collection of data.

d)

Computer code.

28.

DBMS stands for what

a)

Database Management System

b)

Database Master System

c)

Database Management Structure

d)

None of the above

29.

The database is an organized collection of related………

a)

Data

b)

Modules

c)

Programs

d)

None of the above

30.

Before use of DBMS information was stored using __________.

a)

Cloud Storage

b)

Data System

c)

File Management System

d)

None of the above

31.

The DBMS is the software that interacts with the ……………….and the database.

a)

system programs

b)

application programs

c)

system database

d)

None of the above

32.

An advantage of the database management approach is

a)

Data is dependent on programs

b)

Data redundancy increases

c)

Data is integrated and can be accessed by multiple programs

d)

None of the above

33.

Which of the following is not an advantage of DBMS?

a)

Improved data integrity

b)

Increased concurrency

c)

Complexity and Size

d)

Improved backup

34.

The way a particular application views the data from the database that the application uses is

a)

Module

b)

Relational model

c)

Schema

d)

Sub Schema

35.

A software system that enables users to define, create, maintain, and control access to the database.

a)

Database Management System

b)

Data Management

c)

Filing system

d)

Record

36.

Candidate Key is a specific type of field in a relational database that can identify

a)

each record uniquely.

b)

each attribute uniquely.

c)

each table in a database.

d)

each column of a table.

37.

Consider relations R and S. A natural join is the set of tuples of all combinations in R and S that are equal on their common attribute names.

a)

TRUE

b)

FALSE

38.

A data model determines

a)

the structure of hardware components.

b)

the structure of a computer.

c)

the structure of software components.

d)

the structure of data.

39.

The database architecture focuses on the design and implementation of computer programs that store and organize

a)

information for a computer.

b)

information for a business.

c)

information of all device in a computer.

d)

information about the parts of a computer.

40.

Data redundancy

a)

always lead to data inconsistency.

b)

sometimes lead to data inconsistency.

c)

means data inconsistency.

d)

is not related to data inconsistency.

41.

Consider relations R and S. A natural join is the set of tuples of all combinations in R and S that are equal on their common attribute names.

a)

TRUE

b)

FALSE

42.

Normalization is used to eliminate

a)

Insertion and Deletion Anomalies

b)

Deletion and Update Anomalies

c)

Update Anomalies.

d)

Insertion, Deletion and Update Anomalies

43.

If there is no transitive dependency for non-prime attributes, then the relation must be in

a)

Second Normal Form.

b)

Third Normal Form.

c)

First Normal Form

d)

Fourth Normal Form.

44.

A relation will be in 4NF if it is in Boyce-Codd normal form and has no

a)

Functional dependency.

b)

Transitive dependency.

c)

Multi-valued dependency.

d)

Join dependency.

45.

Data redundancy occurs

a)

when the same piece of data exists in multiple places.

b)

when there is mismatch of data.

c)

when there is NULL values.

d)

when there is multiple values for an attribute.

46.

The design of a DBMS

a)

depends on its ER diagram.

b)

depends on its architecture.

c)

depends on its Entity set.

d)

depends on its attributes.

47.

A data schema is a formal

a)

description of relations.

b)

description of database.

c)

description of data.

d)

description of tuples.

48.

A key that can be uniquely used to identify a database record, that may contain extra attributes that are not necessary to uniquely identify records.

a)

Foreign key.

b)

Primary key.

c)

Candidate key.

d)

Super key.

49.

Database transactions intended to guarantee data validity

a)

despite errors or power failures.

b)

despite data mismatch.

c)

despite data redundancy.

d)

despite data inconsistency.

50.

Normalization of a Database is achieved by following a set of rules called 'forms' in creating the database.

a)

TRUE.

b)

FALSE.

51.

Functional dependency X→Y.

a)

It is denoted by X→Y.

b)

X is called the determinant.

c)

Y depends upon X.

d)

All of them.

52.

If there is only one candidate key then the 3NF and BCNF are identical .

a)

TRUE.

b)

FALSE.

53.

A relation decomposed into two relations must have loss-less join Property, which ensures that no spurious or extra tuples are generated

a)

when tuples are reunited.

b)

when a transaction is carried out.

c)

when relations are decomposed.

d)

when relations are reunited through a natural join

54.

What is DBMS stands for

a)

Database Manager Service

b)

Database Management System

c)

Database Manipulation Service

d)

Data Business Management Service

55.

Data inconsistency is different and conflicting version of same data occurs at different place

a)

TRUE

b)

FALSE

56.

A database architect develops and implements software to meet the needs of

a)

customer

b)

computer

c)

user

d)

programmer

57.

Primary Key is a minimal set of attributes that uniquely specify

a)

an attribute in a relation.

b)

a column in a relation.

c)

a table in a relation.

d)

a tuple in a relation.

58.

A key attribute

a)

can have NULL values.

b)

is the extra attribute of a relation.

c)

can have multiple data values.

d)

can not have NULL values

59.

Relational algebra is a procedural query language, which takes instances of relations as input and yields instances of relations as output

a)

TRUE

b)

FALSE

60.

ACID properties means

a)

Atomicity, Consistency, Isolation, and Deletion

b)

Atomicity, Consistency, Identification, and Deletion

c)

Atomicity, Consistency, Isolation, and Durability

d)

Atomicity, Construction, Isolation, and Deletion

61.

Normalization divides the larger table into the smaller table and links them using

a)

relationship.

b)

redundancy

c)

hyperlink

d)

tuples.

62.

A relation is in 2NF, only if a relation is in 1NF and

a)

attribute is dependent on each other.

b)

every non-key attribute is fully dependent on primary key.

c)

every attribute is a key attribute

d)

primary key dependent on the other attribute.

63.

A functional dependency is a relationship between or among

a)

A. Entities

b)

B. Rows

c)

C. Attributes

d)

D. Tables

64.

If one attribute is determinant of second, which in turn is determinant of third, then the relation cannot be:

a)

A. Well-structured

b)

B. 1NF

c)

C. 2NF

d)

D. 3NF

65.

Consider the schema R(S,T,U,V) and the dependencies S→T, T→U, U→V, V→S. Let R= {R1,R2} such that R1∩R2=Φ. Then the decomposition is :

a)

A. not in 2NF

b)

B. in 2NF but not in 3NF

c)

C. in 3NF but not in 2NF

d)

D. in both 2NF and 3NF

66.

Functional Dependencies are the types of constraints that are based on______

a)

a) Key

b)

b) Key revisited

c)

c) Superset key

d)

d) None of the mentioned

67.

Empdt1(empcode, name, street, city, state, pincode).

For any pincode, there is only one city and state. Also, for given street, city and state, there is just one pincode. In normalization terms, empdt1 is a relation in

a)

a) 1 NF only

b)

b) 2 NF and hence also in 1 NF

c)

c) 3NF and hence also in 2NF and 1NF

d)

d) BCNF and hence also in 3NF, 2NF and 1NF

68.

There are two functional dependencies with the same set of attributes on the left side of the arrow:

A->BC

A->B

This can be combined as

a)

a) A->BC

b)

b) A->B

c)

c) B->C

d)

d) None of the mentioned

69.

Suppose relation R(A,B,C,D,E) has the following functional dependencies:

A -> B

B -> C

BC -> A

A -> D

E -> A

D -> E

Which of the following is not a key?

a)

a) A

b)

b) E

c)

c) B, C

d)

d) D

70.

Consider a relation R(A,B,C,D,E) with the following functional dependencies:

ABC -> DE and

D -> AB

The number of superkeys of R is:

a)

2

b)

7

c)

10

d)

12

71.

Suppose relation R(A,B,C,D,E) has the following functional dependencies:

A -> B

B -> C

BC -> A

A -> D

E -> A

D -> E

Which of the following is not a key?

a)

a) A

b)

b) E

c)

c) B, C

d)

d) D

72.

Normalisation is:

a)

Removing all necessary data from a database

b)

Organising a database to remove repeated entries and increase the accuracy of the data

c)

Putting fields from different tables into one big database

73.

Which of the following statements fully describes data in 2NF:

a)

When any repeating fields have been removed and the table is given a primary key

b)

When all repeating entries of data are removed and the fields in each table are directly related to the primary key and no fields are present that are not related to each other

c)

When all the fields in each table are directly related to the primary key

74.

An advantage of normalisation is:

a)

The storage space needed for a normalised database is likely to be smaller

b)

The process of normalising a database is very easy and doesn’t require any skill

c)

It is possible to see previous details that have been changed, such as a customer’s address, as we can look back at an older entry

75.

What is an atomic field?

a)

A field that contains multiple items of data

b)

A field that is repeated

c)

A field that contains only one item of data

76.

A disadvantage of normalisation is:

a)

The data loses its integrity as some of it is removed in the normalisation process

b)

The process of searching the database may be slower due to a higher demand on the central processing unit (CPU)

c)

Removing redundant data means that links cannot be created between tables

77.

A relation is in 1NF if it doesn't contain any ____________?

a)

Determinants

b)

Repeating groups

c)

Null values in primary key fields

d)

Functional dependencies

78.

When you normalize a relation by breaking it into two smaller relations, what must you do to maintain data integrity?

a)

Remove any functional dependencies from both relations

b)

Assign both relations the same primary key field(s)

c)

Create a primary key(s) for the new relation

79.

When designing a database you should ____.

a)

make sure entities are in normal form before table structures are created

b)

create table structures then normalize the database

c)

only normalize the database when performance problems occur

d)

consider more important issues such as performance before normalizing

80.

When designing a database you should ____.

a)

make sure entities are in normal form before table structures are created

b)

create table structures then normalize the database

c)

only normalize the database when performance problems occur

d)

consider more important issues such as performance before normalizing

81.

When designing a database you should ____.

a)

make sure entities are in normal form before table structures are created

b)

create table structures then normalize the database

c)

only normalize the database when performance problems occur

d)

consider more important issues such as performance before normalizing