DBMS - .
DBMS - .
https://www.javatpoint.com/dbms-mcq
http://www.allindiaexams.in/engineering/cse/dbms-multiple-choice-questions-
and-answers/transactions
https://www.sanfoundry.com/database-mcqs-lock-based-protocol/
https://www.sanfoundry.com/1000-database-management-system-questions-
answers/
1) Which of the following is generally used for performing tasks like creating
the structure of the relations, deleting relation?
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?
Answer: D
5) 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?
Answer: A
Answer: B
7) Which one of the following given statements possibly contains the error?
1. SELECT emp_name
2. FROM department
3. WHERE dept_name LIKE ' _____ Computer Science';
In the above-given Query, which of the following can be placed in the Query's
blank portion to select the "dept_name" that also contains Computer Science as
its ending string?
a. &
b. _
c. %
d. $
e. Degree
f. Tuples
g. Entity
h. All of the above
a) Create
b) Alter
c) Delete
d) All of the above
12). In case of any shut down during transaction before commit which of the
following statement is done automatically ?
A. View
B. Commit
C. Rollback
D. Flashback
14) Which one of the following commands is used for removing (or deleting) a
relation forms the SQL database?
a. Delete
b. Drop
c. Remove
d. All of the above
15). Which of the following makes the transaction permanent in the database ?
A. View
B. Commit
C. Rollback
D. Flashback
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
18). In order to maintain the consistency during transactions database provides
A. Commit
B. Atomic
C. Flashback
D. Retain
A. Wait-die
B. Wait-wound
C. Wound-wait
D. Wait
20). The deadlock state can be changed back to stable state by using
_____________ statement.
A. Commit
B. Rollback
C. Savepoint
D. Deadlock
A. Wait-die
B. Wait-wound
C. Wound-wait
D. Wait
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
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)
answer(C)
Database Objective type questions
Ans: A
Ans: B
Ans: A
Ans: D
Ans: C
Ans:c
Ans: C
Ans: D
Q.12 An entity set that does not have sufficient attributes to form a primary key is a
Ans: B
Ans: D
Ans: C
Ans: A
Q.17 The language used in application programs to request data from the DBMS is referred
to as the
Ans: A
Ans: A
Ans: B Related data fields in a database are grouped to form a data record.
Q.20 The database environment has all of the following components except:
Ans: A
Q.21 The language which has recently become the defacto standard for interfacing
application
Ans: B
Q.22 The way a particular application views the data from the database that the application
uses is a
Ans: A
Ans: B
(C) Data stored in a database is independent of the application programs using it.
Ans: D
Ans: B
Ans: C
(B) is much more data independence than some other database models.
Ans: B
(B) needs data volume and processing frequencies to determine the size of the database.
Ans:C
Q.30 The method in which records are physically stored in a specified order according to a
key
Ans: A A method in which records are physically stored in a specified order according
(In hash method, a hash function is performed on the key value to determine the
(Count function counts all the not null values in the specific column. If we want to
count only distinct values than the DISTINCT keyword is also to be used)
administrator.
(B) Data elements in the database can be modified by changing the data dictionary.
(C) The data dictionary contains the name and description of each data element.
(D) The data dictionary is a tool used exclusively by the database administrator.
Ans: B
Ans: C
Ans: D
Ans: C
Ans: B
Ans: B
Q.40 The statement in SQL which allows to change the definition of a table is
Ans: A
Q.41 E-R model uses this symbol to represent weak entity set ?
(B) Diamond
Ans: A
Ans: C
Ans: C
Ans: A
Q.46 The file organization that provides very fast access to any arbitrary record of a file is
Ans: C
(C) Neither (A) nor (B) (D) both (A) and (B)
Ans: D
Ans: C
Q.49 In a relation
Ans: C
(C) a SQL query will not work if there are no indexes on the relations
Ans: D
Ans: B
Ans: D
Ans: B
Q.54 Which of the following operation is used if we are interested in only certain columns of a
table?
Ans: A
Ans: D
Ans: A
Q.57 Which of the following operations need the participating relations to be union
compatible?
Ans: D
Q.58 The full form of DDL is
Ans: C
Ans: D
Ans: B
Ans: B
Ans: A
Q.63 Which are the two ways in which entities can participate in a relationship?
Ans: B
Q.64 The result of the UNION operation between R1 and R2 is a relation that includes
Ans: D
Ans: D
Ans: D
Q.67 Which of the operations constitute a basic set of operations for manipulating relational
data?
Ans:C
Ans: A
Q.69 Which of the following database object does not physically exist?
(C) view
(D) none of the above
Ans: C
Q.70 NULL is
Ans: D
Ans: A
Ans: D
Q.73 A file manipulation command that extracts some of the records from a file is called
Ans: A
Q.75 Using Relational Algebra the query that finds customers, who have a balance of over
1000 is
Ans: A
(A) Parent-Child relation ship between the tables that connect them.
(B) Many to many relationship between the tables that connect them.
Ans: A
Ans B
Ans: C
Q.79 An instance of relational schema R (A, B, C) has distinct values of A including NULL
Q.80 Consider the join of a relation R with relation S. If R has m tuples and S has n tuples,
Ans: A
Ans: D
Ans: C
(B) Many to many relationship between the tables that connect them.
Ans: A
Ans: D
Ans: A
Ans: C
Q.87 The ______ operator is used to compare a value to a list of literals values that have been
specified.
Ans: A
D) none of these
Ans: D
Ans: A
Q.90 _____________ function divides one numeric expression by another and returns the
remainder.
Ans: B
Q.91 A data manipulation command the combines the records from one or more tables is
called
Ans: C
Ans: D
Q.93 _________ is a virtual table that draws its data from the result of an SQL
SELECT statement.
Ans: A
Ans: B
Ans: B
Ans: A