0% found this document useful (0 votes)
304 views

DBMS MCQ

This document contains questions and answers related to database management systems concepts. It covers topics like database users, data definition languages, data manipulation languages, database administrators, query processors, and database schemas. The questions test understanding of key terms, commands, and functions within a DBMS.

Uploaded by

Brinda BM
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
304 views

DBMS MCQ

This document contains questions and answers related to database management systems concepts. It covers topics like database users, data definition languages, data manipulation languages, database administrators, query processors, and database schemas. The questions test understanding of key terms, commands, and functions within a DBMS.

Uploaded by

Brinda BM
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 6

1.

The users who need not be aware of the presence of the database system are called
_______.
online users.
navie users.
database users
data managers.
ANSWER: B
2. _____ are the users who may communicate with the database directly.
Data managers.
Database manipulators.
Online users.
Database administrators.
ANSWER: C
3. _______________ could be written in a general purpose programming language such as C,
COBOL etc.
Application programs.
Database Programs.
System Programs.
Online Applications.
ANSWER: A
4. The _______ is responsible for defining procedures to recover the database from failure.
DBA.
system engineer.
application programmer.
software engineer.
ANSWER: A
5. The internal schema specified in a data definition language is called _____________.
Schema Definition Language.
Data Management Language.
Data Storage Definition Language
Data Manipulation Language.
ANSWER: C
6. The ________ provides commands to select and retrieve data form the database.
DDL.
DML.
schema.
DSDL.
ANSWER: B
7. The ____________ is a procedural language.
DCL
TCL.
DDL.

DML.
ANSWER: D
8. The __________transfers the block or page requested by the file manager.
disk manager.
query manager.
processor.
data manager.
ANSWER: A
9. The _______________is responsible for interfacing with the file system.
disk manager.
data manger.
query processor.
file manager.
ANSWER: B
10. The ________________uses the data dictionary to find the structure of the relevant
portion of the
database.
query processor.
query optimizer.
query synthesizer.
query builder.
ANSWER: A
11. ________systems are available as add-ons to the DBMS.
Data Dictionary.
Data files.
Metadata.
Storage area.
ANSWER: A
15. A field that can identify a record uniquely is called as _________ of the record.
foreign key.
super key.
primary key.
candidate key.
ANSWER: C
16. A file is called as a ______________ when it contains records arranged in sequential
manner.
sequential file.
random file.
direct file.
index file.
ANSWER: A

A ________ is an attribute or combination of attributes that may not be a candidate key but
classifies the
entity set on a particular character sets.
secondary key.
candidate key.
super key.
alternate key.
ANSWER: A
46. A________ is a mechanism that provides the abstraction for database application.
data model.
data associations.
traditional data model.
semantic data model.
ANSWER: A
A ________ executes low level instructions generated by DML compiler.
DDL interpreter.
DDL compiler.
DML compiler.
query evaluation engine.
ANSWER: D
New fields can be added to the created table by using ___________ command.
ALTER.
SELECT.
CREATE.
UPDATE.
ANSWER: A
Attribute corresponds to _____________.
entity.
tuple.
field.
table.
ANSWER: C
113. Field data type can be modified using ___________ command.
ALTER.
SELECT.
CREATE.
UPDATE.
ANSWER: A
114. Tuples should have ___________ to capture relationship between entities.
columns.

tables.
attributes.
keys.
ANSWER: D

Rows of a relation are called


tuples
a relation row
a data structure
an entity
If an entity appears in only one relationship then it is
a 1:1 relationship
a 1:N relationship
a N:1 relationship
a N:M relationship
A pilot can fly three types of planes and a plane can be piloted by any qualified
pilot. The pilot-plane type relationship is
N:3
3:N
1:3
3:1
An entity is
a collection of items in an application
a distinct real world item in an application
an inanimate object in an application
a data structure
What is the parameter substitution symbol used with INSERT INTO command?
&.
@.
$.
%.
ANSWER: A
What command is used to get back the privileges offered by the GRANT command?
Grant.
Revoke.
Execute.
Run.
ANSWER: B

To modify the students table and to add a primary key on the student_id Column, Which statement
must be used to accomplishes this task? Note: The
table is currently empty.
Alter table students add primary key student_id;
Alter table students add constraint primary key (student_id);
Alter table students add constraint stud_id_pk primary key student_id;
Alter table students add constraint stud_id_pk primary key (student_id);
ANSWER: D
Find the ODD one out of the following in cursors?
OPEN.
CLOSE.
INSERT.
FETCH.
ANSWER: C
The student_grades table has these columns: student_id number(12) semester_end date gpa
number(4,3) The registrar has asked for a report on the
average grade point average (gpa) for students enrolled during semesters that end in the year 2000.
Which statement accomplish this?
Select average(gpa) from student_grades where semester_end > '01-jan-2000' and semester end < 31dec-2000';
Select count(gpa) from student grades where semester_end > '01-jan-2000' and semester end < '31dec-2000';
Select min(gpa) from student grades where semester_end > '01-jan-2000' and semester end < '31-dec2000';
Select avg(gpa) from student_grades where semester_end between '01-jan-2000' and '31.dec.2000';
ANSWER: D
Which statement about subquery is true?
A single row subquery can retrieve data from only one table.
A SQL query statement cannot display data from table B that is referred to in its subquery, unless
table B is included in the main query's FROM
clause.
A SQL query statement can display data from table B that is referred to in its subquery, without
including table B in its own FROM clause.
A single row subquery cannot be used in a condition where the LIKE operator is used for comparison.
ANSWER: B
Evaluate this SQL statement: SELECT e.employee_id, (.15* e.salary) + (.5 * e.commission_pct) +
(s.sales amount * (.35 * e.bonus)) AS
CALC_VALUE FROM employees e, sales s WHERE e.employee_id = s.emp_id; What will happen
if all the parentheses from the calculation is removed?
The value displayed in the CALC_VALUE column will be lower.
The value displayed in the CALC_VALUE column will be higher.
There will be no difference in the value displayed in the CALC_VALUE column.

An error will be reported.


ANSWER: C

You might also like