πŸ—„οΈ

Database Management System MCQs

749+ questions with answers

151

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
Medium
View Details β†’
152

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
Medium
View Details β†’
153

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
Medium
View Details β†’
154

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
Medium
View Details β†’
155

Which of the following symbol is used in the place of except?

a ^
b V
c Β¬
d ~
Medium
View Details β†’
156

β€œ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))
Medium
View Details β†’
157

In domain relaional calculus β€œthere exist” can be expressed as

a (P1(x))
b (P1(x)) x
c V x (P1(x))
d Π­ x (P1(x))
Medium
View Details β†’
158

A set of possible data values is called

a Attribute
b Degree
c Tuple
d Domain
Medium
View Details β†’
159

An ________ is a set of entities of the same type that share the same properties, or attributes.

a Entity set
b Attribute set
c Relation set
d Entity model
Medium
View Details β†’
160

Entity is a _________

a Object of relation
b Present working model
c Thing in real world
d Model of relation
Medium
View Details β†’
161

The descriptive property possessed by each entity set is _________

a Entity
b Attribute
c Relation
d Model
Medium
View Details β†’
162

The function that an entity plays in a relationship is called that entity’s _____________

a Participation
b Position
c Role
d Instance
Medium
View Details β†’
163

The attribute name could be structured as an attribute consisting of first name, middle initial, and last name. This type of attribute is called

a Simple attribute
b Composite attribute
c Multivalued attribute
d Derived attribute
Medium
View Details β†’
164

The attribute AGE is calculated from DATE_OF_BIRTH. The attribute AGE is

a Single valued
b Multi valued
c Composite
d Derived
Medium
View Details β†’
165

Which of the following can be a multivalued attribute?

a Phone_number
b Name
c Date_of_birth
d All of the mentioned
Medium
View Details β†’
166

Which of the following is a single valued attribute

a Register_number
b Address
c SUBJECT_TAKEN
d Reference
Medium
View Details β†’
167

In a relation between the entities the type and condition of the relation should be specified. That is called as______attribute.

a Desciptive
b Derived
c Recursive
d Relative
Medium
View Details β†’
168

_____________ express the number of entities to which another entity can be associated via a relationship set.

a Mapping Cardinality
b Relational Cardinality
c Participation Constraints
d None of the mentioned
Medium
View Details β†’
169

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

a One-to-many
b One-to-one
c Many-to-many
d Many-to-one
Medium
View Details β†’
170

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.

a One-to-many
b One-to-one
c Many-to-many
d Many-to-one
Medium
View Details β†’
171

Data integrity constraints are used to:

a Control who is allowed access to the data
b Ensure that duplicate records are not entered into the table
c Improve the quality of data entered for a specific property
d Prevent users from changing the values stored in the table
Medium
View Details β†’
172

Establishing limits on allowable property values, and specifying a set of acceptable, predefined options that can be assigned to a property are examples of:

a Attributes
b Data integrity constraints
c Method constraints
d Referential integrity constraints
Medium
View Details β†’
173

Which of the following can be addressed by enforcing a referential integrity constraint?

a All phone numbers must include the area code
b Certain fields are required (such as the email address, or phone number) before the record is accepted
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’)
Medium
View Details β†’
174

Which one of the following uniquely identifies the elements in the relation?

a Secondary Key
b Primary key
c Foreign key
d Composite key
Medium
View Details β†’
175

Drop Table cannot be used to drop a table referenced by a _________ constraint.

a Local Key
b Primary Key
c Composite Key
d Foreign Key
Medium
View Details β†’
176

____________ is preferred method for enforcing data integrity

a Constraints
b Stored Procedure
c Triggers
d Cursors
Medium
View Details β†’
177

Which of the following gives a logical structure of the database graphically?

a Entity-relationship diagram
b Entity diagram
c Database diagram
d Architectural representation
Medium
View Details β†’
178

The entity relationship set is represented in E-R diagram as

a Double diamonds
b Undivided rectangles
c Dashed lines
d Diamond
Medium
View Details β†’
179

The Rectangles divided into two parts represents

a Entity set
b Relationship set
c Attributes of a relationship set
d Primary key
Medium
View Details β†’
180

Consider a directed line(->) from the relationship set advisor to both entity sets instructor and student. This indicates _________ cardinality

a One to many
b One to one
c Many to many
d Many to one
Medium
View Details β†’
181

We indicate roles in E-R diagrams by labeling the lines that connect ___________ to __________

a Diamond , diamond
b Rectangle, diamond
c Rectangle, rectangle
d Diamond, rectangle
Medium
View Details β†’
182

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
Medium
View Details β†’
183

Weak entity set is represented as

a Underline
b Double line
c Double diamond
d Double rectangle
Medium
View Details β†’
184

If you were collecting and storing information about your music collection, an album would be considered a(n) _____

a Relation
b Entity
c Instance
d Attribute
Medium
View Details β†’
185

What term is used to refer to a specific record in your music database; for instance; information stored about a specific album?

a Relation
b Instance
c Table
d Column
Medium
View Details β†’
186

Which one of the following can be treated as a primary key in teaches relation?

a Id
b Semester
c Sec_id
d Year
Medium
View Details β†’
187

The primary key in the section relation is

a Course_id
b Sec_id
c Both Course_id and Sec_id
d All the attributes
Medium
View Details β†’
188

The query which selects the Course_id β€˜CS-101’ from the section relation is

a Select Course_id from section where Building = β€˜Richard’;
b Select Course_id from section where Year = β€˜2009’;
c Select Course_id from teaches where Building = β€˜Packyard’;
d Select Course_id from section where Sec_id = β€˜3’;
Medium
View Details β†’
189

The relation with primary key can be created using

a Create table instructor (Id, Name)
b Create table instructor (Id, Name, primary key(name))
c Create table instructor (Id, Name, primary key (Id))
d Create table instructor ( Id unique, Name )
Medium
View Details β†’
190

How can the values in the relation teaches be deleted?

a Drop table teaches;
b Delete from teaches;
c Purge table teaches;
d Delete from teaches where Id =’Null’;
Medium
View Details β†’
191

In the above teaches relation ” Select * from teaches where Year = β€˜2010’” displays how many rows?

a 2
b 4
c 5
d 1
Medium
View Details β†’
192

The relation changes can be got back using ________ command.

a Flashback
b Purge
c Delete
d Getback
Medium
View Details β†’
193

Let us consider phone_number ,which can take single or several values . Treating phone_numberas an _________ permits instructors to have several phone numbers (including zero) associated with them.

a Entity
b Attribute
c Relation
d Value
Medium
View Details β†’
194

The total participation by entities is represented in E-R diagram as

a Dashed line
b Double line
c Double rectangle
d Circle
Medium
View Details β†’
195

Given the basic ER and relational models, which of the following is INCORRECT?

a An attribute of an entity can have more than one value
b An attribute of an entity can be composite
c In a row of a relational table, an attribute can have more than one value
d In a row of a relational table, an attribute can have exactly one value or a NULL value
Medium
View Details β†’
196

Which of the following indicates the maximum number of entities that can be involved in a relationship?

a Minimum cardinality
b Maximum cardinality
c ERD
d Greater Entity Count
Medium
View Details β†’
197

In E-R diagram generalization is represented by

a Ellipse
b Dashed ellipse
c Rectangle
d Triangle
Medium
View Details β†’
198

What is a relationship called when it is maintained between two entities?

a Unary
b Binary
c Ternary
d Quaternary
Medium
View Details β†’
199

Key to represent relationship between tables is called

a Primary key
b Secondary Key
c Foreign Key
d None of the mentioned
Medium
View Details β†’
200

A window into a portion of a database is

a Schema
b View
c Query
d Data dictionary
Medium
View Details β†’