DBMS Multiple Choice Questions with Answers Set-6

This post contains a database management system related to 20 multiple-choice questions (DBMS SET-6) that help you to go through the subject and prepare you for DBMS related questions in competitive exams

DBMS MCQ Test Series Set-6

  • Total Number of Questions: 20

  • Each question carries equal marks i.e 1

  • No Negative Marking

Page 1 of 2

1. Which of the following is true about data?
A.
B.
C.
D.
E.
2. Consider the following statements S1 and S2 about the relational data model:
S1: A relation scheme can have at most one foreign key.
S2: A foreign key in a relation scheme R cannot be used to refer to tuples of R.
Which one of the following choices is correct?

 
A.
B.
C.
D.
3.

Consider the following two statements about database transaction schedules:

  1. A strict two-phase locking protocol generates conflict serializable schedules that are also recoverable.
  2. Timestamp-ordering concurrency control protocol with Thomas' Write Rule can generate view serializable schedules that are not conflict serializable.

Which of the above statements is/are TRUE?

A.
B.
C.
D.
4. The following relation records the age of 500 employees of a company, where empNo (indicating the employee number) is the key :

empAge(empNo, age)Consider the following relational algebra expression:

$\Pi _{empNo}\left (emp Age \infty _{age> age1}P_{empNO1.age1}(empAge)\right )$

What does the above expression generate?
A.
B.
C.
D.
5. Consider a relational database containing the following schemas.

Catalogue
snoPnoCost
S1P1150
S1P250
S1P3100
S2P4200
S2P5250
S3P1250
S3P2150
S3P5300
S3P4250
Suppliers
snosnamelocation
S1M/s Royal furnitureDelhi
S2M/s Balaji furnitureBanglore
S3M/s Premium furnitureChennai
Parts
pnopnamepart_spec
P1TableWood
P2ChairWood
P3TableSteel
P4AlmirahSteel
P5AlmirahWood
The primary key of each table is indicated by underlining the constituent fields.

SELECT s.sno, s.sname

FROM Suppliers s, Catalogue c

WHERE s.sno=C.sno AND

Cost>(SELECT AVG (cost)

FROM Catalogue

WHERE pno=’P4’

GROUP BY pno);

The number of rows returned by the above SQL query is
A.
B.
C.
D.
6.

Which one of the following is used to represent the supporting many-one relationships of a weak entity set in an entity-relationship diagram?

A.
B.
C.
D.
7.

The relation scheme given below is used to store information about the employees of a company, where empld is the key and deptId indicates the department to which the employees is assigned. Each employee is assigned to exactly one department.
emp(empId, name, gender, salary, deptId)
Consider the following SQL query:
Select deptId, count(*)
From emp
Where gender=”female” and salary>(select avg(salary) from emp)
Group by deptId;
The above query gives, for each department in the company, the number of female employees whose salary is greater than the average salary of

A.
B.
C.
D.
8. Let $r_{i}(z)$ and $w_{i}(z)$ denote read and write operations respectively on a data item z by a transaction  Consider the following two schedules.

$S_{1}:r_{1}(x)r_{1}(y)r_{2}(x)r_{2}(y)w_{2}(y)w_{1}(x)$

$S_{2}:r_{1}(x)r_{2}(x)r_{2}(y)w_{2}(y)r_{1}(y)w_{1}(x)$

Which one of the following options is correct?
A.
B.
C.
D.
9. let S be the following schedule of operations of three transactions $T_1,T_2 and T_4$ in a relational database system:
$R_2 (Y),R_1 (X),R_3 (Z),R_1 (Y),W_1 (X),R_2 (Z),W_2 (Y),R_3 (X),W_3 (Z)$
Consider the statements P and Q below:
P:S is conflict-serialzable.
Q: if $T_3$ commits before $T_1$ finishes, S is recoverable.
Which one of the following choices is correct?
A.
B.
C.
D.
10. Consider the relation R(P, Q, S, T, X, Y, Z, W) with the following functional dependencies.

PQ\rightarrow X; P\rightarrow YX; Q\rightarrow Y; Y\rightarrow ZW

Consider the decomposition of the relation R into the constituent relations according to the following two decomposition schemes.

$D_1$ : R = [P,Q, S, T]; (P,T,X); (Q,Y); (Y,Z,W)]

$D_2$ : R = [P,Q,S]; (T,X); (Q,Y); (Y,Z,W)]

Which one of the following options is correct?
A.
B.
C.
D.

 

Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments