0% found this document useful (0 votes)
95 views6 pages

Database MCQS

The document contains questions about relational algebra, database normalization forms, functional dependencies, and database design concepts. Relational algebra is a procedural query language that takes relations as input and produces a relation as output. Normalization forms like 1NF, 2NF, 3NF, and BCNF aim to eliminate anomalies and redundancy from database tables. Functional dependencies and Armstrong's axioms are used to determine attribute dependencies in tables. Database design involves concepts like relations, attributes, domains, and schemas.

Uploaded by

zeeshan maseeh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
95 views6 pages

Database MCQS

The document contains questions about relational algebra, database normalization forms, functional dependencies, and database design concepts. Relational algebra is a procedural query language that takes relations as input and produces a relation as output. Normalization forms like 1NF, 2NF, 3NF, and BCNF aim to eliminate anomalies and redundancy from database tables. Functional dependencies and Armstrong's axioms are used to determine attribute dependencies in tables. Database design involves concepts like relations, attributes, domains, and schemas.

Uploaded by

zeeshan maseeh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

1.

Relational Algebra is a __________ query language that takes two relations as input and produces another
relation as an output of the query.
a) Relational
b) Structural
c) Procedural
d) Fundamental
2. Which of the following is a fundamental operation in relational algebra?
a) Set intersection
b) Natural join
c) Assignment
d) None of the mentioned
3. Which of the following is used to denote the selection operation in relational algebra?
a) Pi (Greek)
b) Sigma (Greek)
c) Lambda (Greek)
d) Omega (Greek)
4.  For select operation the ________ appear in the subscript and the ___________ argument appears in the
paranthesis after the sigma.
a) Predicates, relation
b) Relation, Predicates
c) Operation, Predicates
d) Relation, Operation
5. The ___________ operation, denoted by −, allows us to find tuples that are in one relation but are not in another.
a) Union
b) Set-difference
c) Difference
d) Intersection
6. Which is a unary operation:
a) Selection operation
b) Primitive operation
c) Projection operation
d) Generalized selection
7. Which is a join condition contains an equality operator:
a) Equijoins
b) Cartesian
c) Natural
d) Left
8.  In precedence of set operators, the expression is evaluated from
a) Left to left
b) Left to right
c) Right to left
d) From user specification
9. Which of the following is not outer join?
a) Left outer join
b) Right outer join
c) Full outer join
d) All of the mentioned
10. The assignment operator is denoted by
a) ->
b) <-
c) =
d) ==
11. 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)}
d) None of the mentioned
12. A query in the tuple relational calculus is expressed as:
a) {t | P() | t}
b) {P(t) | t }
c) {t | P(t)}
d) All of the mentioned
13. Which of the following symbol is used in the place of except?
a) ^
b) V
c) ¬
d) ~
14. “Find all students who have taken all courses offered in the Biology department.” The expressions that matches
this sentence is :
a) Э t ε r (Q(t))
b) ∀ t ε r (Q(t))
c) ¬ t ε r (Q(t))
d) ~ t ε r (Q(t))
15. In the __________ normal form, a composite attribute is converted to individual attributes.
a) First
b) Second
c) Third
d) Fourth
16. A table on the many side of a one to many or many to many relationship must:
a) Be in Second Normal Form (2NF)
b) Be in Third Normal Form (3NF)
c) Have a single attribute key
d) Have a composite key
17. Tables in second normal form (2NF):
a) Eliminate all hidden dependencies
b) Eliminate the possibility of a insertion anomalies
c) Have a composite key
d) Have all non key fields depend on the whole primary key
18. Which-one ofthe following statements about normal forms is FALSE?
a) BCNF is stricter than 3 NF
b) Lossless, dependency -preserving decomposition into 3 NF is always possible
c) Loss less, dependency – preserving decomposition into BCNF is always possible
d) Any relation with two attributes is BCNF
19. Functional Dependencies are the types of constraints that are based on______
a) Key
b) Key revisited
c) Superset key
d) None of the mentioned
20. Which is a bottom-up approach to database design that design by examining the relationship between attributes:
a) Functional dependency
b) Database modeling
c) Normalization
d) Decomposition
21. Which forms simplifies and ensures that there are minimal data aggregates and repetitive groups:
a) 1NF
b) 2NF
c) 3NF
d) All of the mentioned
22. Which forms has a relation that possesses data about an individual entity:
a) 2NF
b) 3NF
c) 4NF
d) 5NF
23. Which forms are based on the concept of functional dependency:
a) 1NF
b) 2NF
c) 3NF
d) 4NF
24. For any pincode, there is only one city and state. Also, for given street, city and state, there is just one pincode. In
normalization terms, empdt1 is a relation in
a) 1 NF only
b) 2 NF and hence also in 1 NF
c) 3NF and hence also in 2NF and 1NF
d) BCNF and hence also in 3NF, 2NF and 1NF
25. We can use the following three rules to find logically implied functional dependencies. This collection of rules is
called
a) Axioms
b) Armstrong’s axioms
c) Armstrong
d) Closure
26. Which of the following is not Armstrong’s Axiom?
a) Reflexivity rule
b) Transitivity rule
c) Pseudotransitivity rule
d) Augmentation rule
27. There are two functional dependencies with the same set of attributes on the left side of the arrow:
A->BC
A->B
This can be combined as
a) A->BC
b) A->B
c) B->C
d) None of the mentioned
28. A relational database consists of a collection of
a) Tables
b) Fields
c) Records
d) Keys
29. A ________ in a table represents a relationship among a set of values.
a) Column
b) Key
c) Row
d) Entry
30. The term _______ is used to refer to a row.
a) Attribute
b) Tuple
c) Field
d) Instance
31. The term attribute refers to a ___________ of a table.
a) Record
b) Column
c) Tuple
d) Key
32. For each attribute of a relation, there is a set of permitted values, called the ________ of that attribute.
a) Domain
b) Relation
c) Set
d) Schema
33. Which of the following is not Armstrong’s Axiom?
a) Reflexivity rule
b) Transitivity rule
c) Pseudotransitivity rule
d) Augmentation rule

34. Database __________ which is the logical design of the database, and the database _______ which is a snapshot
of the data in the database at a given instant in time.
a) Instance, Schema
b) Relation, Schema
c) Relation, Domain
d) Schema, Instance

35. Course(course_id,sec_id,semester)
Here the course_id,sec_id and semester are __________ and course is a _________
a) Relations, Attribute
b) Attributes, Relation
c) Tuple, Relation
d) Tuple, Attributes

36. Department (dept name, building, budget) and Employee (employee_id, name, dept name, salary)
Here the dept_name attribute appears in both the relations. Here using common attributes in relation schema is
one way of relating ___________ relations.
a) Attributes of common
b) Tuple of common
c) Tuple of distinct
d) Attributes of distinct

37. A domain is atomic if elements of the domain are considered to be ____________ units.
a) Different
b) Indivisbile
c) Constant
d) Divisible

38. The tuples of the relations can be of ________ order.


a) Any
b) Same
c) Sorted
d) Constant

39. We can use the following three rules to find logically implied functional dependencies. This collection of rules is
called
a) Axioms
b) Armstrong’s axioms
c) Armstrong
d) Closure

40. A relation is in ____________ if an attribute of a composite key is dependent on an attribute of other composite
key.
a) 2NF
b) 3NF
c) BCNF
d) 1NF
41. What are the desirable properties of a decomposition
a) Partition constraint
b) Dependency preservation
c) Redundancy
42. R (A,B,C,D) is a relation. Which of the following does not have a lossless join dependency preserving BCNF
decomposition?
a) A->B, B->CD
b) A->B, B->C, C->D
c) AB->C, C->AD
d) A->BCD
43. The algorithm that takes a set of dependencies and adds one schema at a time, instead of decomposing the initial
schema repeatedly is
a) BCNF algorithm
b) 2NF algorithm
c) 3NF synthesis algorithm
d) 1NF algorithm
44. The functional dependency can be tested easily on the materialized view, using the constraints ____________.
a) Primary key
b) Null
c) Unique
d) Both Null and Unique
45. Which normal form is considered adequate for normal relational database design?
a) 2NF
b) 5NF
c) 4NF
d) 3NF
46. The normal form which satisfies multivalued dependencies and which is in BCNF is
a) 4 NF
b) 3 NF
c) 2 NF
d) All of the mentioned
47. Which of the following is a tuple-generating dependencies?
a) Functional dependency
b) Equality-generating dependencies
c) Multivalued dependencies
d) Non-functional dependency
48. The main task carried out in the __________ is to remove repeating attributes to separate tables.
a) First Normal Form
b) Second Normal Form
c) Third Normal Form
d) Fourth Normal Form
49. Which of the normal form is based on multivalued dependencies?
a) First
b) Second
c) Third
d) Fourth
50. Which forms has a relation that possesses data about an individual entity?
a) 2NF
b) 3NF
c) 4NF
d) 5NF
51. If a multivalued dependency holds and is not implied by the corresponding functional dependency, it usually arises
from one of the following sources.
a) A many-to-many relationship set
b) A multivalued attribute of an entity set
c) A one-to-many relationship set
d) Both A many-to-many relationship set and A multivalued attribute of an entity set
52. Which of the following has each related entity set has its own schema and there is an additional schema for the
relationship set?
a) A many-to-many relationship set
b) A multivalued attribute of an entity set
c) A one-to-many relationship set
d) None of the mentioned
53. In which of the following, a separate schema is created consisting of that attribute and the primary key of the entity
set.
a) A many-to-many relationship set
b) A multivalued attribute of an entity set
c) A one-to-many relationship set
d) None of the mentioned
54. Fifth Normal form is concerned with
a) Functional dependency
b) Multivalued dependency
c) Join dependency
d) Domain-key
55. In 2NF
a) No functional dependencies (FDs) exist
b) No multivalued dependencies (MVDs) exist
c) No partial FDs exist
d) No partial MVDs exist

You might also like