πŸ—„οΈ

Database Management System MCQs

749+ questions with answers

201

A primary key is combined with a foreign key creates

a Parent-Child relation ship between the tables that connect them
b Many to many relationship between the tables that connect them
c Network model between the tables that connect them
d None of the mentioned
Medium
View Details β†’
202

The entity set person is classified as student and employee. This process is called _________

a Generalization
b Specialization
c Inheritance
d Constraint generalization
Medium
View Details β†’
203

Which relationship is used to represent a specialization entity?

a ISA
b AIS
c ONIS
d WHOIS
Medium
View Details β†’
204

The refinement from an initial entity set into successive levels of entity subgroupings represents a ________ design process in which distinctions are made explicit.

a Hierarchy
b Bottom-up
c Top-down
d Radical
Medium
View Details β†’
205

There are similarities between the instructor entity set and the secretary entity set in the sense that they have several attributes that are conceptually the same across the two entity sets: namely, the identifier, name, and salary attributes. This process is called

a Commonality
b Specialization
c Generalization
d Similarity
Medium
View Details β†’
206

If an entity set is a lower-level entity set in more than one ISA relationship, then the entity set has

a Hierarchy
b Multilevel inheritance
c Single inheritance
d Multiple inheritance
Medium
View Details β†’
207

A _____________ constraint requires that an entity belong to no more than one lower-level entity set.

a Disjointness
b Uniqueness
c Special
d Relational
Medium
View Details β†’
208

The completeness constraint may be one of the following: Total generalization or specialization, Partial generalization or specialization. Which is the default?

a Total
b Partial
c Should be specified
d Cannot be determined
Medium
View Details β†’
209

Functional dependencies are a generalization of

a Key dependencies
b Relation dependencies
c Database dependencies
d None of the mentioned
Medium
View Details β†’
210

Which of the following is another name for a weak entity?

a Child
b Owner
c Dominant
d All of the mentioned
Medium
View Details β†’
211

Which is the main relation which is used in the university database which is referenced by all other relation of the university?

a Teaches
b Course
c Department
d Section
Medium
View Details β†’
212

The department relation has the an entry budget whose type has to be replaced by

a Varchar (20)
b Varchar2 (20)
c Numeric (12,2)
d Numeric
Medium
View Details β†’
213

In the course relation, the title field should throw an error in case of any missing title. The command to be added in title is

a Unique
b Not null
c 0
d Null
Medium
View Details β†’
214

In the above DDL command the foreign key entries are got by using the keyword

a References
b Key reference
c Relating
d None of the mentioned
Medium
View Details β†’
215

Identify the error in the section relation

a No error
b Year numeric (4,0)
c Building varchar (15)
d Sec_id varchar (8)
Medium
View Details β†’
216

The following entry is given in to the instructor relation . (100202,Drake,Biology,30000)

a Row(s) inserted
b Error in ID of insert
c Error in Name of insert
d Error in Salary of the insert
Medium
View Details β†’
217

In the section relation which of the following is used as a foreign key?

a Course_id
b Course_id,sec_id
c Room_number
d Course_id,sec_id,room_number
Medium
View Details β†’
218

In order to include an attribute Name to the teaches relation which of the following command is used?

a Alter table teaches include Name;
b Alter table teaches add Name;
c Alter table teaches add Name varchar;
d Alter table teaches add Name varchar(20);
Medium
View Details β†’
219

To replace the relation section with some other relation the initial step to be carried out is

a Delete section;
b Drop section;
c Delete from section;
d Replace section new_table ;
Medium
View Details β†’
220

Which of the following command is used to display the departments of the instructor relation?

a Select * from instructor where Dept_name = Finance;
b Select * from instructor ;
c Select dept_name from instructor;
d Select dept_name for instructor where Name=Jackson;
Medium
View Details β†’
221

How can we select the elements which have common Dept_name in both the relation ?

a Select * from instructor i , course c where i.Dept_name=c.Dept_name;
b Select Dept name from instructor ,Course ;
c Select * from instructor i , course c ;
d Select Dept_name from instructor where Dept_name = NULL;
Medium
View Details β†’
222

Select distinct Dept_name from instructor ; How many row(s) are displayed ?

a 4
b 3
c 5
d Error
Medium
View Details β†’
223

If a person all the people in Music department gets fired which of the following has to be performed on the instructor relation ?

a Delete Dept_name=Music in instructor;
b Delete from instructor where Dept_name=Music;
c Remove Dept_name= Music
d All of the mentioned
Medium
View Details β†’
224

Which function is used to find the count of distinct departments?

a Dist
b Distinct
c Count
d Count,Dist
Medium
View Details β†’
225

Which function is used to identify the title with Least scope?

a Min(Credits)
b Max(Credits)
c Min(title)
d Min(Salary)
Medium
View Details β†’
226

A domain is ______ if elements of the domain are considered to be indivisible units.

a Atomic
b Subatomic
c Substructure
d Subset
Medium
View Details β†’
227

Identify the composite attributes

a Salary
b Credits
c Section_id
d None of the mentioned
Medium
View Details β†’
228

Consider the relation given below and ind the maximum normal form applicable to them i. R(A, B) WITH productions { A --> B } ii. R(A, B) WITH productions { B --> A } iii. R(A, B) WITH productions {A β€”> B, B --> A } iv. R(A, B, C) WITH productions {A -->B, B --> A, AB --> C }

a i, ii and iii are in 3NF and iv is in BCNF
b i and ii are in BCNF and iii and iv are in 3NF
c All are in 3NF
d All are in BCNF
Medium
View Details β†’
229

Which one is based on multi-valued dependency:

a First
b Second
c Third
d Fourth
Medium
View Details β†’
230

If a relation is in BCNF, then it is also in

a 1 NF
b 2 NF
c 3 NF
d All of the mentioned
Medium
View Details β†’
231

If an attribute of a composite key is dependent on an attribute of the other composite key, a normalization called _____ is needed.

a DKNF
b BCNF
c Fourth
d Third
Medium
View Details β†’
232

The term for information that describes what type of data is available in a database is:

a Data dictionary
b data repository
c Index data
d Metadata
Medium
View Details β†’
233

A data type that creates unique numbers for key columns in Microsoft Access is:

a Autonumber
b Boolean
c Sequential key
d Sequential number
Medium
View Details β†’
234

A dependency exist between two columns when

a Together they constitute a composite key for the table
b Knowing the value in one column determines the value stored in another column
c The table is in 3NF
d Together they constitute a foreign key
Medium
View Details β†’
235

In the __________ normal form, a composite attribute is converted to individual attributes.

a First
b Second
c Third
d Fourth
Medium
View Details β†’
236

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

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

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

Functional Dependencies are the types of constraints that are based on______

a Key
b Key revisited
c Superset key
d None of the mentioned
Medium
View Details β†’
240

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

Which forms has a relation that possesses data about an individual entity:

a 2NF
b 3NF
c 4NF
d 5NF
Medium
View Details β†’
242

Which forms are based on the concept of functional dependency:

a 1NF
b 2NF
c 3NF
d 4NF
Medium
View Details β†’
243

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

Which of the following is not Armstrong’s Axiom?

a Reflexivity rule
b Transitivity rule
c Pseudotransitivity rule
d Augmentation rule
Medium
View Details β†’
245

The relation employee(ID,name,street,Credit,street,city,salary) is decomposed into employee1 (ID, name) employee2 (name, street, city, salary)

a Lossless decomposition
b Lossless-join decomposition
c All of the mentioned
d None of the mentioned
Medium
View Details β†’
246

Inst_dept (ID, name, salary, dept name, building, budget) is decomposed into instructor (ID, name, dept name, salary) department (dept name, building, budget)

a Lossy-join decomposition
b Lossy decomposition
c Lossless-join decomposition
d Both Lossy and Lossy-join decomposition
Medium
View Details β†’
247

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

Suppose we wish to find the ID’s of the employees that are managed by people who are managed by the employee with ID 123. Here are two possible queries: I.SELECT ee.empID FROM Emps ee, Emps ff WHERE ee.mgrID = ff.empID AND ff.mgrID = 123; II.SELECT empID FROM Emps WHERE mgrID IN (SELECT empID FROM Emps WHERE mgrID = 123);

a Both I and II
b I only
c II only
d Neither I nor I
Medium
View Details β†’
249

Suppose relation R(A,B) currently has tuples {(1,2), (1,3), (3,4)} and relation S(B,C) currently has {(2,5), (4,6), (7,8)}. Then the number of tuples in the result of the SQL query: <i>SELECT * FROM R NATURAL OUTER JOIN S; </i>IS:

a 2
b 4
c 6
d None of the mentioned
Medium
View Details β†’
250

Suppose now that R(A,B) and S(A,B) are two relations with r and s tuples, respectively (again, not necessarily distinct). If m is the number of (not necessarily distinct) tuples in the result of the SQL query: R intersect S;

a m = min(r,s)
b 0 <= m <= r + s
c min(r,s) <= m <= max(r,s)
d 0 <= m <= min(r,s)
Medium
View Details β†’