DBMS
DBMS
1) Which of the following is generally used for performing tasks like creating
the structure of the relations, deleting relation?
a. DML(Data Manipulation Language)
b. Query
c. Relational Schema
d. DDL(Data Definition Language)
2) Which of the following provides the ability to query information from the
database and insert tuples into, delete tuples from, and modify tuples in the
database?
a. DML(Data Manipulation Language)
b. DDL(Data Definition Language)
c. Query
d. Relational Schema
3) The given Query can also be replaced with_______:
SELECT name, course_id FROM instructor, teaches WHERE instructor_ID= te
aches_ID;
16). A system is in a ______ state if there exists a set of transactions such that
every transaction in the set is waiting for another transaction in the set.
A. Idle
B. Waiting
C. Deadlock
D. Ready
17). In order to undo the work of transaction after last commit which one
should be used ?
A. View
B. Commit
C. Rollback
D. Flashback
20). The deadlock state can be changed back to stable state by using
_____________ statement.
A. Commit
B. Rollback
C. Savepoint
D. Deadlock
22). A deadlock exists in the system if and only if the wait-for graph contains a
___________.
A. Cycle
B. Direction
C. Bi-direction
D. Rotation
24). Which of the following is a procedure for acquiring the necessary locks for
a transaction where all necessary locks are acquired before any are released? a)
Record controller
b) Exclusive lock
c) Authorization rule
d) Two phase lock
26). If a transaction does not modify the database until it has committed, it is
said to use the ___________ technique.
a) Deferred-modification
b) Late-modification
c) Immediate-modification
d) Undo
27). The ____________ scheme uses a page table containing pointers to all
pages; the page table itself and all updated pages are copied to a new location.
a) Shadow copy
b) Shadow Paging
c) Update log records
d) All of the mentioned
28). A __________ is a special kind of a store procedure that executes in
response to certain action on the table like insertion, deletion or updation of
data.
a) Procedures
b) Triggers
c) Functions
d) None of the mentioned
29). What are the after triggers?
a) Triggers generated after a particular operation
b) These triggers run after an insert, update or delete on a table
c) These triggers run after an insert, views, update or delete on a table
d) All of the mentioned
30). Triggers ________ enabled or disabled
a) Can be
b) Cannot be
c) Ought to be
d) Always
31). Which of the following deletes all tuples in the instructor relation for those
instructors associated with a department located in the Watson building which is
in department relation.
a)
DELETE FROM instructor
WHERE dept_name IN 'Watson' ;
b)
DELETE FROM department
WHERE building='Watson';
c)
DELETE FROM instructor
WHERE dept_name IN (SELECT dept name
FROM department
WHERE building = ’Watson’);
d) None of the mentioned
answer(C)