โ˜‘ MCQ PRACTICE

Database Management Systems Unit 2

Practice objective questions for quick revision and examination preparation. Try answering each question before revealing the answer.

๐Ÿ“š Database Management Systems
๐Ÿ“– Unit 2
๐ŸŽฏ MCQs

Database Management Systems - Unit-2

1
Which one of the following is a procedural language?
ADomain relational calculus
BTuple relational calculus
CRelational algebra
DQuery language
Correct Answer Relational algebra
2
The_____ operation allows the combining of two relations by merging pairs of tuples, one from each relation, into a single tuple.
ASelect
BJoin
CUnion
DIntersection
Correct Answer Join
3
The result which operation contains all pairs of tuples from the two relations, regardless of whether their attribute values match.
AJoin
BCartesian product
CIntersection
DSet difference
Correct Answer Cartesian product
4
The _______ operator takes the results of two queries and returns only rows that appear in both result sets.
AUnion
BIntersect
CDifference
DProjection
Correct Answer Intersect
5
The _________ provides a set of operations that take one or more relations as input and return a relation as an output.
ASchematic representation
BRelational algebra
CScheme diagram
DRelation flow
Correct Answer Relational algebra
6
Relational Algebra is a __________ query language that takes two relations as input and produces another relation as an output of the query.
ARelational
BStructural
CProcedural
DFundamental
Correct Answer Procedural
7
Which of the following is used to denote the selection operation in relational algebra?
APi (Greek)
BSigma (Greek)
CLambda (Greek)
DOmega (Greek)
Correct Answer Sigma (Greek)
8
For select operation the ________ appear in the subscript and the ___________ argument appears in the parenthesis after the sigma.
APredicates, relation
BRelation, Predicates
COperation, Predicates
DRelation, Operation
Correct Answer Predicates, relation
9
Find the ID, name, dept name, salary for instructors whose salary is greater than $80,000 .
A{t | t ฮต instructor โˆง t[salary] > 80000}
Bะญ t โˆˆ r (Q(t))
C{t | ะญ s ฮต instructor (t[ID] = s[ID]โˆง s[salary] > 80000)}
DNone of the mentioned
Correct Answer {t | t ฮต instructor โˆง t[salary] > 80000}
10
A query in the tuple relational calculus is expressed as:
A{t | P() | t}
B{P(t) | t }
C{t | P(t)}
DAll of the mentioned
Correct Answer {t | P(t)}
11
An expression in the domain relational calculus is of the form
A{P(x1, x2, . . . , xn) | < x1, x2, . . . , xn > }
B{x1, x2, . . . , xn | < x1, x2, . . . , xn > }
C{ x1, x2, . . . , xn | x1, x2, . . . , xn}
D{< x1, x2, . . . , xn > | P(x1, x2, . . . , xn)}
Correct Answer {< x1, x2, . . . , xn > | P(x1, x2, . . . , xn)}
12
In domain relational calculus โ€œthere existโ€ can be expressed as
A(P1(x))
B(P1(x)) ะญ x
CV x (P1(x))
Dะญ x (P1(x))
Correct Answer ะญ x (P1(x))
13
Which of the following creates a virtual relation for storing the query?
AFunction
BView
CProcedure
DNone of the mentioned
Correct Answer View
14
Which of the following is the syntax for views where v is view name?
ACreate view v as โ€œquery nameโ€;
BCreate โ€œquery expressionโ€ as view;
CCreate view v as โ€œquery expressionโ€;
DCreate view โ€œquery expressionโ€;
Correct Answer Create view v as โ€œquery expressionโ€;
15
Updating the value of the view
AWill affect the relation from which it is defined
BWill not change the view definition
CWill not affect the relation from which it is defined
DCannot determine
Correct Answer Will affect the relation from which it is defined
16
SQL view is said to be updatable (that is, inserts, updates or deletes can be applied on the view) if which of the following conditions are satisfied by the query defining the view?
AThe from clause has only one database relation
BThe query does not have a group by or having clause
CThe select clause contains only attribute names of the relation and does not have any expressions, aggregates, or distinct specification
DAll of the mentioned
Correct Answer All of the mentioned
17
Drop Table cannot be used to drop a table referenced by a _________ constraint.
ALocal Key
BPrimary Key
CComposite Key
DForeign Key
Correct Answer Foreign Key
18
______ is a special type of integrity constraint that relates two relations & maintains consistency across the relations.
AEntity Integrity Constraints
BReferential Integrity Constraints
CDomain Integrity Constraints
DDomain Constraints
Correct Answer Referential Integrity Constraints
19
An entity in A is associated with at most one entity in B, and an entity in B is associated with at most one entity in A.This is called as
AOne-to-many
BOne-to-one
CMany-to-many
DMany-to-one
Correct Answer One-to-one
20
A Key which is a set of one or more columns that can identify a record uniquely is called?
ANatural key
BCandidate key
CNot Null key
DAlternate key
Correct Answer Candidate key
21
Relational Algebra does not have
ASelection operator
BProjection operator
CAggregation operators
DDivision operator
Correct Answer Aggregation operators
22
If two relations R and S are joined, then the non matching tuples of both R and S are ignored in
Aleft outer join
Bright outer join
Cfull outer join
Dinner join
Correct Answer inner join
23
The common column is eliminated in
Atheta join
Bouter join
Cnatural join
Dcomposed join
Correct Answer natural join
24
Relational calculus is a
AProcedural language
BDeclarative Language
CObject oriented language
DHigh level language
Correct Answer Declarative Language
25
_______ produces the relation that has attributes of R1 and R2
ACartesian product
BDifference
CIntersection
DProduct
Correct Answer Cartesian product
26
The following conditions must be met by a union operation.
AThere must be a common attribute between A and B.
BA duplicate tuple is automatically discarded.
CBoth A. and B.
DNone of the above
Correct Answer Both A. and B.
โ† Back to All MCQs