Mcqs in Dbms213
Mcqs in Dbms213
1) Which of the following relational algebra operations do not require the participating tables to be union-
compatible?
(a) Union
(b) Intersection
(c) Difference
(d) Join.
6) The language that requires a user to specify the data to be retrieved without specifying exactly how to get it is
(a) Procedural DML.
(b) Non-Procedural DML.
(c) Procedural DDL.
(d) Non-Procedural DDL.
10) In which one of the following, the multiple lower entities are grouped (or combined) together
to form a single higher-level entity?
a) Specialization
b) Generalization
c) Aggregation
d) None of the above
11) Two Phase locking guarantee serializability, but it does not prevent deadlocks. 2PL has two
phases: growing and shrinking. Which of the following rules are used to govern 2PL protocol.
1) Two transaction can not have conflicting locks.
2) No unlock operation can precede a lock operation in the same direction
3) No data are affected until all locks are obtained, i.e., until the transaction is in its lock points.
a) 1 and 2 only
b) 2 only
c) 1 and 3 only
d) 1, 2 and 3
13) In the relational table, which of the following can also be represented by the term "attribute"?
a) Entity
b) Row
c) Column
d) Both B &C
14) Which one of the following commands is used to remove or delete a relation forms the SQL
database?
a) Delete
b Drop
c) Remove
d) All of the above
17) Which of the following is the simplest and easiest type of file organization method?
a) B+ tree file organization
b) Sequential file organization
c) Direct file organization
d) Cluster file organization
20) The operator which is used to assign a new name to a relation is known as?
a) Selection
b) Projection
c) Rename
d) JOIN
21) To add a column named "Email" of type VARCHAR to an existing table named "Users,"
which SQL statement is correct?
a) ALTER TABLE Users ADD COLUMN Email VARCHAR
b) ALTER TABLE Users ADD Email VARCHAR
c) UPDATE TABLE Users ADD Email VARCHAR
d) INSERT INTO Users (Email) VALUES ('VARCHAR')
25) What is the correct SQL syntax to return only distinct (different) values from the "Name"
column in the "Employees" table?
a) SELECT DISTINCT Name FROM Employees
b) SELECT UNIQUE Name FROM Employees
c) SELECT DIFFERENT Name FROM Employees
d) SELECT Name FROM Employees DISTINCT
28) The values appearing in given attributes of any tuple in the referencing relation must
likewise occur in specified attributes of at least one tuple in the referenced relation, according to
_________ integrity constraint.
a) Referential
b) Primary
c) Referencing
d) Specific
29) Which one of the following refers to the copies of the same data (or information) occupying
the memory space at multiple places.
a) Data Inconsistency
b) Data Independency
c) Data Redundancy
d) Data Security
30) After groups have been established, SQL applies predicates in the ___________ clause,
allowing aggregate functions to be used.
a) Where
b) Having
c) Group by
d) With
33) in which type of file organization method, records are inserted at the end of the file?
a) Heap file organization
b) Hash file organization
c) Index sequential file organization
d) B+ tree file organization
34) In Index sequential file organization method records are stored in the file using which key?
a) Primary Key
b) Foreign Key
c) Composite Key
d) Candidate Key
36) Which of the following commands is used to save any transaction permanently into the
database?
a) Commit
b) Rollback
c) Savepoint
d) None of the above
40) Which of the following refers collection of the information stored in a database at a specific
time?
a) Independence
b) Instance of the database
c) Schema
d) Data domain
43) Which of the following is a top-down approach in which the entity's higher level can be divided
into two lower sub-entities?
a) Aggregation
b) Generalization
c) Specialization
d) All of the above
44) Which one of the following commands is used to modify a column inside a table?
a) Drop
b) Update
c) Alter
d) Set
46) Dr.E.F. Codd represented.......rules that a database must obey if it has to be considered truly
relational.
a) 10
b) 15
c) 14
d) 12
46) ........ is a bottom-up approach in which two lower level entities combine to form a higher
level entity.
a) Aggregation
b) Specialization
c) Generalization
d) None of the above
47) An entity set that does not have sufficient attributes to form a primary key, is a ……
a) Primary entity set
b) Weak entity set
c) Strong entity set
d) None of the above
52) operator is used to display a record if either the first condition or the second condition is
true.
a) AND
b) OR
c) Both (A) & (B)
d) None of the above
53) Which of the following is standard interactive and programming language for getting
information from and updating a database.
a) SQL
b) PHP
c) ASP
d) None of the above
54) ………….. is the process of organizing data into related tables.
a) Generalization
b) Normalization
c) Specialization
d) None of the above
55) .Each modification done in database transaction are first recorded into the
a) Hard Drive
b) Disk
c) Log File
d) Data Mart