DBMS 2 CT 15
DBMS 2 CT 15
5. For each attribute of a relation, there is a set of permitted values, called the ________ of
that attribute.
6. 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.
7.Course(course_id,sec_id,semester)
Here the course_id,sec_id and semester are __________ and course is a _________ .
10. Which one of the following is a set of one or more attributes taken collectively to
uniquely identify a record?
12. A _____ is a property of the entire relation, rather than of the individual tuples in which
each tuple is unique.
13. Which one of the following attribute can be taken as a primary key ?
15. A attribute in a relation is a foreign key if the _______ key from one relation is used as an
attribute in that relation .
16. The relation with the attribute which is the primary key is referenced in another relation.
The relation which has the attribute as primary key is called
17. The ______ is the one in which the primary key of one relation is used as a normal
attribute in another relation .
18. A _________ integrity constraint requires that the values appearing in specified attributes
of any tuple in the referencing relation also appear in specified attributes of at least one tuple
in the referenced relation.
19. Using which language can a user request information from a database ?
22. The_____ operation allows the combining of two relations by merging pairs of tuples, one
from each relation, into a single tuple.
23. The result which operation contains all pairs of tuples from the two relations, regardless
of whether their attribute values match.
25.The most commonly used operation in relational algebra for projecting a set of tuple from
a relation is
26. The _______ operator takes the results of two queries and returns only rows that appear
in both result sets.
27. Which one of the following is used to define the structure of the relation ,deleting
relations and relating schemas ?
28. A________ is a pictorial depiction of the schema of a database that shows the relations in
the database, their attributes, and primary keys and foreign keys.
30. Which one of the following provides the ability to query information from the database
and to insert tuples into, delete tuples from, and modify tuples in the database ?
33. The basic data type char(n) is a _____ length character string and varchar(n) is _____
length character.
34. An attribute A of datatype varchar(20) has the value “Avi” . The attribute B of datatype
char(20) has value ”Reed” .Here attribute A has ____ spaces and attribute B has ____ spaces .
a) 3, 20 b) 20, 4 c) 20 , 20 d) 3, 4
35. To remove a relation from an SQL database, we use the ______ command.
39. Relational Algebra is a __________ query language that takes two relation as input and
produces another relation as output of the query.
41. Which of the following is used to denote the selection operation in relational algebra ?
42. The ___________ operation, denoted by −, allows us to find tuples that are in one
relation but are not in another.
a) Left outer join b) Right outer join c) Full outer join d) None of these
47. The assignment operator is denoted by
a) -> b) <- c) = d) ==
48. Which of the following is the comparison operator in tuple relational calculus
50. An________ is a set of entities of the same type that share the same properties, or
attributes .
51. Entity is a
53. The function that an entity plays in a relationship is called that entity’s _____________.
54. The attribute name could be structured as a attribute consisting of first name, middle
initial, and last name . This type of attribute is called
55. The attribute AGE is calculated from DATE_OF_BIRTH . The attribute AGE is
59. In a relation between the entities the type and condition of the relation should be
specified . That is called as______attribute
60. 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
61.An entity in A is associated with at most one entity in B. An entity in B, however, can be
associated with any number (zero or more) of entities in A.
b) Ensure that duplicate records are not entered into the table
63. Establishing limits on allowable property values, and specifying a set of acceptable,
predefined options that can be assigned to a property are examples of:
64. Which of the following can be addressed by enforcing a referential integrity constraint?
c) Information on the customer must be known before anything can be sold to that customer
d) Then entering an order quantity, the user must input a number and not some text (i.e., 12
rather than ‘a dozen’)
65. ______ is a special type of integrity constraint that relates two relations & maintains
consistency across the relations.
66. Which one of the following uniquely identifies the elements in the relation?
67. Drop Table cannot be used to drop a table referenced by a _________ constraint.
69. Which of the following gives a logical structure of the database graphically ?
72. Consider a directed line(->) from the relationship set advisor to both entity sets instructor
and student. This indicates _________ cardinality
74. An entity set that does not have sufficient attributes to form a primary key is termed a
__________ .
a) Strong entity set b) Variant set c) Weak entity set d) Variable set
75. For a weak entity set to be meaningful, it must be associated with another entity set,
called the
78. Which of the following indicates the maximum number of entities that can be involved in
a relationship?
86. The refinement from an initial entity set into successive levels of entity subgroupings
represents a ________ design process in which distinctions are made explicit.
87. A _____________ constraint requires that an entity belong to no more than one lower-
level entity set.
88. The completeness constraint may be one of the following: Total generalization or
specialization , Partial generalization or specialization . Which is the default ?
95. If every non-key attribute is functionally depedent primary key, then the relation will be
in
a) First normal form b) Second normal form c) Third form d) Fourth normal form
97.The term for information that describes what type of data is available in a database is:
98. A data type that creates unique numbers for key columns in Microsoft Access is:
b) Knowing the value in one column determines the value stored in another column
106. 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.
108. Which of the following relational algebra operations do not require the participating
tables to be union-compatible?
110. 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.
(A) Partition constraint. (B) Dependency preservation. (C) Redundancy. (D) Security
(A) Total participation. (B) Multiple participation. (C) Cardinality N. (D) None of the above.
(A) DML compiler (B) DML pre-processor (C) DDL interpreter (D) Query interpreter
(A) repeatable read (B) read committed (C) read uncommitted (D) serializable
115. If the closure of an attribute set is the entire relation then the attribute set is a
(A) superkey (B) candidate key (C) primary key (D) not a key
117. Which of the following concurrency control schemes is not based on the
serializability property?
(C) Understand the use of data across application areas (D) All of the above
119. If an entity can belong to only one lower level entity then the constraint is
121. _______ operator is used to compare a value to a list of literals values that have been
specified.
(A) Data security (B) Derived columns (C) Hiding of complex queries (D) All of the above
124. Which of the following constitutes a basic set of operations for manipulating relational
data?
(A) Predicate calculus (B) Relational calculus
(C) Relational algebra (D) SQL
125. Which is the best file organization when data is frequently added or deleted from a
file?
198. The method in which records are physically stored in a specified order according to a key
field in each record is
(A) hash. (B) direct. (C) sequential. (D) all of the above.