0% found this document useful (0 votes)
36 views

Database Management System MCQ

This document contains 1000 multiple choice questions about database management systems organized by chapter. The questions cover topics like the definition of DBMS, components of a DBMS, functions of a DBMS, SQL commands, database modeling concepts, and more. Answers are provided for each question along with explanations.
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)
36 views

Database Management System MCQ

This document contains 1000 multiple choice questions about database management systems organized by chapter. The questions cover topics like the definition of DBMS, components of a DBMS, functions of a DBMS, SQL commands, database modeling concepts, and more. Answers are provided for each question along with explanations.
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/ 29

Database Management System MCQ (Multiple Choice

Questions)
Here are 1000 MCQs on Database Management System (Chapterwise).
1. What is the full form of DBMS?
a) Data of Binary Management System
b) Database Management System
c) Database Management Service
d) Data Backup Management System
View Answer
2. What is a database?
a) Organized collection of information that cannot be accessed, updated, and managed
b) Collection of data or information without organizing
c) Organized collection of data or information that can be accessed, updated, and
managed
d) Organized collection of data that cannot be updated
View Answer
3. What is DBMS?
a) DBMS is a collection of queries
b) DBMS is a high-level language
c) DBMS is a programming language
d) DBMS stores, modifies and retrieves data
View Answer
4. Who created the first DBMS?
a) Edgar Frank Codd
b) Charles Bachman
c) Charles Babbage
d) Sharon B. Codd
View Answer
Answer: b
Explanation: Charles Bachman along with his team invented the first DBMS known as
Integrated Data Store (IDS).

5. Which type of data can be stored in the database?


a) Image oriented data
b) Text, files containing data
c) Data in the form of audio or video
d) All of the above
View Answer
Answer: d
Explanation: The reason for creating the database management system was to store
large data and these data can be of any form image, text, audio, or video files, etc.
DBMS allows the users to store and access the data of any format.
advertisement
6. In which of the following formats data is stored in the database management
system?
a) Image
b) Text
c) Table
d) Graph
View Answer
Answer: c
Explanation: The data is stored in a table format intended to manage the storage of
data and manipulate stored data to generate information.

7. Which of the following is not a type of database?


a) Hierarchical
b) Network
c) Distributed
d) Decentralized
View Answer
Answer: d
Explanation: Different types are:
1) Centralized
2) Distributed
3) Relational
4) NoSQL
5) Cloud
6) Object-oriented
7) Hierarchical
8) Network

8. Which of the following is not an example of DBMS?


a) MySQL
b) Microsoft Acess
c) IBM DB2
d) Google
View Answer
Answer: d
Explanation: MySQL, Microsoft Access, IBM DB2 are database management systems
while Google is a search engine. MySQL is a Linux-based database management
system, Microsoft Access is a tool that is a part of Microsoft Office used to store data,
IBM DB2 is a database management system developed by IBM. Google’s Bigtable is the
database that runs Google’s Internet search, Google Maps, YouTube, Gmail, and other
products.

9. Which of the following is not a feature of DBMS?


a) Minimum Duplication and Redundancy of Data
b) High Level of Security
c) Single-user Access only
d) Support ACID Property
View Answer
Answer: c
Explanation: Single-user Access only” is not a feature of DBMS. DBMS allows multiple
users to access and manipulate the database concurrently. It provides mechanisms to
handle concurrent access and ensure data consistency and integrity among multiple
users.
The important features of a database management system are:

 Minimum Duplication and Redundancy of Data


 High Level of Security
 Mulitple-user Access
 Support ACID Property

10. Which of the following is a feature of the database?


a) No-backup for the data stored
b) User interface provided
c) Lack of Authentication
d) Store data in multiple locations
View Answer
Answer: b
Explanation: The important features are:
1) Provides backup for the data stored by the user and the user can retrieve the data
whenever required.
2) Provides User-interface to access the data.
3) Only authorized users can access the stored data.
4) Data is stored in one central location but multiple authorized users can access the
data.

11. Which of the following is not a function of the database?


a) Managing stored data
b) Manipulating data
c) Security for stored data
d) Analysing code
View Answer
Answer: d
Explanation: It allows authorized users to update, store, manipulate, or access data.
Since data is stored in table format it is easy to access the data and perform the
required functions. It also removes duplicate and redundant data.

12. Which of the following is a function of the DBMS?


a) Storing data
b) Providing multi-users access control
c) Data Integrity
d) All of the above
View Answer
Answer: d
Explanation: The purpose of creating DBMS was to store the data. The data stored in
the database management system can be can accessed by multiple users if the access
is provided. The data stored will be accurate and complete hence providing data
integrity.

13. Which of the following is a component of the DBMS?


a) Data
b) Data Languages
c) Data Manager
d) All of the above
View Answer
Answer: d
Explanation: The components of DBMS are as follows:
1) Hardware: Like a hard drive, monitor, etc.
2) Software: Provides a user interface
3) Data Manager: Manages operations of DBMS.
4) Data: The collection of information on the DB is known as data.
5) Data Languages: Languages like DDL, DML, DAL, and DCL allow to perform
operations like creating, modifying, storing, or retrieving data.

14. Which of the following is known as a set of entities of the same type that share
same properties, or attributes?
a) Relation set
b) Tuples
c) Entity set
d) Entity Relation model
View Answer
Answer: c
Explanation: In the actual world, an entity is a distinct “thing” or “object” from all other
objects. For example: Each employee of an organization is an entity.

15. What is information about data called?


a) Hyper data
b) Tera data
c) Meta data
d) Relations
View Answer
Answer: c
Explanation: Information about data is known as Metadata. Metadata describes the
data in detail by providing additional information like type, length of the data, etc.
Metadata helps the user to understand the data.

16. What does an RDBMS consist of?


a) Collection of Records
b) Collection of Keys
c) Collection of Tables
d) Collection of Fields
View Answer
Answer: c
Explanation: It consists of a collection of tables i.e., the data is organized in tabular
format. The columns of the relation are known as Fields and rows of the relation are
known as Records. Constraints in a relation are known as Keys.

17. The values appearing in given attributes of any tuple in the referencing relation
must likewise occur in specified attributes of at least one tuple in the referenced
relation, according to _____________________ integrity constraint.
a) Referential
b) Primary
c) Referencing
d) Specific
View Answer
Answer: a
Explanation: Consider 2 relations r1 and r2. r1 may include among its attributes the
primary key of relation r2. This attribute is called a foreign key from r1, referencing r2.
The relation r1 is also called the referencing relation of the foreign key dependency,
and r2 is called the referenced relation of the foreign key.

18. _____________ is a hardware component that is most important for the operation of a
database management system.
a) Microphone
b) High speed, large capacity disk to store data
c) High-resolution video display
d) Printer
View Answer
Answer: b
Explanation: Since all the data are stored in form of memory in the disk, a high speed,
and large-capacity disk is required for the operation of the database management
system.

19. The DBMS acts as an interface between ________________ and ________________ of an


enterprise-class system.
a) Data and the DBMS
b) Application and SQL
c) Database application and the database
d) The user and the software
View Answer
Answer: c
Explanation: A database management system is an application that acts as an interface
between the user and the database. The user interacts with the application to access
data.

20. The ability to query data, as well as insert, delete, and alter tuples, is offered by
____________
a) TCL (Transaction Control Language)
b) DCL (Data Control Language)
c) DDL (Data Definition Langauge)
d) DML (Data Manipulation Langauge)
View Answer
Answer: d
Explanation: A query is a request for data or information. Relational Schema is the
design and structure of the relation. DDL consists of commands that help in modifying.
DML performs the change in the values of the relation.

21. ______________ is a set of one or more attributes taken collectively to uniquely


identify a record.
a) Primary Key
b) Foreign key
c) Super key
d) Candidate key
View Answer
Answer: c
Explanation: Foreign key creates a relationship between two relations. Super key is the
superset of all the keys in a relation. A candidate key is used to identify tuples in a
relation.

22. Which command is used to remove a relation from an SQL?


a) Drop table
b) Delete
c) Purge
d) Remove
View Answer
Answer: a
Explanation: Delete command is used to delete the existing record from the table. The
drop table deletes the whole structure of the relation. Purge removes the table which
cannot be obtained again.

23. Which of the following set should be associated with weak entity set for weak entity
to be meaningful?
a) Neighbour set
b) Strong entity set
c) Owner set
d) Identifying set
View Answer
Answer: d
Explanation: Every weak entity must be linked to an identifying entity; in other words,
the existence of the weak entity set is contingent on the presence of the identifying
entity set. The weak entity set that the identifying entity set identifies is said to be
owned by the identifying entity set. Owner entity set is another name for it.

24. Which of the following command is correct to delete the values in the relation
teaches?
a) Delete from teaches;
b) Delete from teaches where Id =’Null’;
c) Remove table teaches;
d) Drop table teaches;
View Answer
Answer: a
Explanation: To delete the entries from the table Delete from table command should
be used.

25. Procedural language among the following is __________


a) Domain relational calculus
b) Tuple relational calculus
c) Relational algebra
d) Query language
View Answer
Answer: c
Explanation: Non-Procedural Languages are Domain relational calculus and Tuple
relational calculus. Relational algebra is a procedural language that takes input in the
form of relation and output generated is also a relation.

26. _________________ operations do not preserve non-matched tuples.


a) Left outer join
b) Inner join
c) Natural join
d) Right outer join
View Answer
Answer: b
Explanation: Left outer join returns all the rows from the table that is on the left side
and matching rows on the right side of the join. Inner join returns all rows when there
is at least one match in BOTH tables. Natural join returns the common columns from
the tables being joined. A right outer join returns all the rows from the table that is on
the right side and matching rows on the left side of the join.

27. Which forms have a relation that contains information about a single entity?
a) 4NF
b) 2NF
c) 5NF
d) 3NF
View Answer
Answer: a
Explanation: If and only if, for each of its non-trivial multivalued dependencies X \
twoheadrightarrow Y, a table is in 4NF. X is a superkey—that is, X is either a candidate
key or a superset thereof.

28. The top level of the hierarchy consists of ______ each of which can contain _____.
a) Schemas, Catalogs
b) Schemas, Environment
c) Environment, Schemas
d) Catalogs, Schemas
View Answer
Answer: d
Explanation: Schemas represent the logical configuration of the DBMS. Catalogs consist
of metadata of the objects and system settings used.
29. _______ indicates the maximum number of entities that can be involved in a
relationship.
a) Greater Entity Count
b) Minimum cardinality
c) Maximum cardinality
d) ERD
View Answer
Answer: c
Explanation: The term cardinality refers to the uniqueness of data values included in a
single column (attribute) of a table in SQL (Structured Query Language).

30. The user IDs can be added or removed using which of the following fixed roles?
a) db_sysadmin
b) db_accessadmin
c) db_securityadmin
d) db_setupadmin
View Answer
Answer: b
Explanation: Along with security, as the name suggests the db_accessadmin role also
handles access. db_sysadmin refers to the system administrator. db_securityadmin as
the name suggests it involves granting or declining permission to access the data
ensuring security.

31. Why the following statement is erroneous?

SELECT dept_name, ID, avg (salary)


FROM instructor
GROUP BY dept_name;

a) Dept_id should not be used in group by clause


b) Group by clause is not valid in this query
c) Avg(salary) should not be selected
d) None
View Answer
Answer: a
Explanation: Any property that does not occur in the group by clause must only appear
in an aggregate function if it also appears in the select clause; otherwise, the query is
considered incorrect.

32. The traditional storage of data organized by the customer, stored in separate
folders in filing cabinets is an example of ______________ type of ‘database’ management
system.
a) Object-oriented database management system
b) Relational database management system
c) Network database management system
d) Hierarchical database management system
View Answer
Answer: d
Explanation: In an object-oriented database management system, the data is stored in
the form of objects. In a relational DBMS, the data is stored in the form of tables.
Hierarchy is obtained by Parent-Child Relationship. Parent-Child Relationship Type is
basically a 1:N relationship.

33. After groups have been established, SQL applies predicates in the ___________
clause, allowing aggregate functions to be used.
a) Where
b) Having
c) Group by
d) With
View Answer
Answer: b
Explanation: In SQL, after grouping data using the GROUP BY clause, the HAVING clause
is used to filter the groups based on specific conditions. It allows the use of aggregate
functions and selects only the groups that satisfy the given criteria.

34. Which of the following is not the utility of DBMS?


a) Backup
b) Data Loading
c) Process Organization
d) File organization
View Answer
Answer: c
Explanation: Backup utility is used to create a copy of the db as a backup. Loading
utility is used to load existing file. File organization is used to relocate the files and
create new access path. Processing is not an utility.

35. What does a foreign key combined with a primary key create?
a) Network model between the tables that connect them
b) Parent-Child relationship between the tables that connects them
c) One to many relationship between the tables that connects them
d) All of the mentioned
View Answer
Answer: a
Explanation: Using the two relationships mother and father gives us a record of a
child’s mother, even if we don’t know who the father is; if the ternary connection parent
is used, a null value is necessary. In this scenario, binary relationship sets are preferred.

36. Which of the following is correct according to the technology deployed by DBMS?
a) Pointers are used to maintain transactional integrity and consistency
b) Cursors are used to maintain transactional integrity and consistency
c) Locks are used to maintain transactional integrity and consistency
d) Triggers are used to maintain transactional integrity and consistency
View Answer
Answer: c
Explanation: Pointers are used to access data with great speed and accuracy.
Consistency is maintained using locks.

37. Which of the following is correct regarding the file produced by a spreadsheet?
a) can be used as it is by the DBMS
b) stored on disk in an ASCII text format
c) all of the mentioned
d) none of the mentioned
View Answer
Answer: a
Explanation: For updating the value in ASCII text format, a regular text file is used.

38. What is the function of the following command?

Delete from r where P;

a) Clears entries from relation


b) Deletes relation
c) Deletes particular tuple from relation
d) All of the mentioned
View Answer
Answer: c
Explanation: In the command the P gives condition to delete a particular tuple.

39. ______ resembles Create view.


a) Create table . . . as
b) Create view as
c) Create table . . .like
d) With data
View Answer
Answer: a
Explanation: The ‘create table… as’ statement is similar to the ‘create view… as’
statement in that both are defined with queries. The main distinction is that table
contents are set when the table is built, whereas view contents always reflect the
current query result.

40. The query specifying the SQL view is said to be updatable if it meets which of the
following conditions?
a) select clause contains relation attribute names but not have expressions, aggregates,
or distinct specification
b) from clause has 1 relation
c) query does not have group by or having clause
d) All of the mentioned
View Answer
Answer: d
Explanation: To update the view in sql all the conditions must be satisfied.

41. When the “ROLLUP” operator for expression or columns within a “GROUP BY”
clause is used?
a) Find the groups that make up the subtotal in a row
b) Create group-wise grand totals for the groups indicated in a GROUP BY clause
c) Group expressions or columns specified in a GROUP BY clause in one direction, from
right to left, for computing the subtotals
d) To produce a cross-tabular report for computing subtotals by grouping phrases or
columns given within a GROUP BY clause in all available directions
View Answer
Answer: c
Explanation: A view can be thought of as a virtual table that gets its data from one or
more table columns.

42. Which of the following is the best way to represent the attributes in a large db?
a) Dot representation
b) Concatenation
c) Relational-and
d) All of the mentioned
View Answer
Answer: b
Explanation: Concatenation in DBMS is used to join two or more table fields of the
same table or different tables. Example inst sec and student sec.

43. Which of the following is the subset of SQL commands used to manipulate Oracle
Structures, including tables?
a) Data Described Language
b) Data Retrieval Language
c) Data Manipulation Language
d) Data Definition Language
View Answer
Answer: d
Explanation: DDLs are used to define schema and table characters and consist of
commands that help in modifying. DML performs the change in the values of the
relation.

44. Which of the following functions construct histograms and use buckets for ranking?
a) Ntil()
b) Newtil()
c) Rank()
d) All of the mentioned
View Answer
45. __________ command is used in SQL to issue multiple CREATE TABLE, CREATE VIEW
and GRANT statements in a single transaction.
a) CREATE CLUSTER
b) CREATE PACKAGE
c) CREATE SCHEMA
d) All of the mentioned
View Answer
Answer: c
Explanation: A schema is a description of a system’s structure in a formal language
supported by the database management system, and it refers to data organization as a
blueprint for how a db is built.

46. Which of the following key is required in to handle the data when the encryption is
applied to the data so that the unauthorised user cannot access the data?
a) Primary key
b) Authorised key
c) Encryption key
d) Decryption key
View Answer
Answer: c
Explanation: The encryption key is used to encrypt the message. Even if the message is
intercepted by an enemy, the enemy will be unable to decrypt and interpret the
message because he lacks the key.

47. Which of the following is known as the process of viewing cross-tab with a fixed
value of one attribute?
a) Dicing
b) Pivoting
c) Slicing
d) Both Pivoting and Dicing
View Answer
Answer: c
Explanation: Slice procedure takes one dimension from a cube and turns it into a new
sub-cube. Dice takes two or more dimensions from a cube and creates a new sub-cube
from them.

48. For designing a normal RDBMS which of the following normal form is considered
adequate?
a) 4NF
b) 3NF
c) 2NF
d) 5NF
View Answer
Answer: b
Explanation: Because most 3NF tables are free of insertion, update, and deletion
anomalies, an RDBMS table is sometimes regarded as “normalized” if it is in the Third
Normal Form.

49. Which of the following is popular for applications such as storage of log files in a
database management system since it offers the best write performance?
a) RAID level 0
b) RAID level 1
c) RAID level 2
d) RAID level 3
View Answer
Answer: b
Explanation: RAID level 0 refers to data stripping. RAID level 1 refers to disk mirroring
with block striping. RAID level 2 refers to bit-level stripping and RAID level 3 refers to
byte-level striping with dedicated parity.

50. Which of the following represents a query in the tuple relational calculus?
a) { }{P(t) | t }
b) {t | P(t)}
c) t | P() | t
d) All of the mentioned
View Answer
Answer: b
Explanation: A nonprocedural query language is the tuple relational calculus. It
specifies the needed information but does not provide a detailed strategy for obtaining
it.
51. The oldest DB model is _______________
a) Network
b) Physical
c) Hierarchical
d) Relational
View Answer
Answer: a
Explanation: Network model has data stored in a hierarchical network flow. In a
relational DBMS, the data is stored in the form of tables. Hierarchy is obtained by
Parent-Child Relationship

52. Evaluate the statements issued by the DBA in the given sequence if OE and SCOTT
are the users and the ORDERS table is owned by OE.

CREATE ROLE r1;


GRANT SELECT, INSERT ON oe. orders TO r1;
GRANT r1 TO scott;
GRANT SELECT ON oe. orders TO scott;
REVOKE SELECT ON oe.orders FROM scott;

What would be the outcome after executing the statements?


a) The REVOKE statement would give an error because the SELECT privilege has been
granted to the role R1
b) The REVOKE statement would remove the SELECT privilege from SCOTT as well as
from the role R1
c) SCOTT would be able to query the OE.ORDERS table
d) SCOTT would not be able to query the OE.ORDERS table
View Answer
Answer: c
Explanation: To perform operations on objects, the REVOKE statement is used to
revoke rights from a single user or role, or from all users.

53. Which of the following establishes a top-to-bottom relationship among the items?
a) Relational schema
b) Network schema
c) Hierarchical schema
d) All of the mentioned
View Answer
Answer: c
Explanation: A data model in which the data is structured into a tree-like structure is
known as a hierarchical model. The structure allows information to be represented
using parent-child relationships.
54. A major goal of the db system is to minimize the number of block transfers
between the disk and memory. Which of the following helps in achieving this goal?
a) Secondary storage
b) Storage
c) Catalog
d) Buffer
View Answer
Answer: d
Explanation: Every block has a copy on disc, however, the copy on the disc may be an
earlier version of the block than the version in the buffer.

55. What happens if a piece of data is stored in two places in the db?
a) Storage space is wasted & Changing the data in one spot will cause data
inconsistency
b) In can be more easily accessed
c) Changing the data in one spot will cause data inconsistency
d) Storage space is wasted
View Answer
Answer: a
Explanation: One of the main features of a database management system is minimum
data duplication and redundancy. Hence, is always consistent and so there is no
duplication.

56. The logical design, and the snapshot of the data at a given instant in time is known
as?
a) Instance & Relation
b) Relation & Schema
c) Domain & Schema
d) Schema & Instance
View Answer
Answer: d
Explanation: Instance is an instance of time, the relation is also known as table consists
of data with similar characteristics, Domain is the collection of values that an attribute
can contain and schema is a representation

This set of Database Multiple Choice Questions & Answers (MCQs) focuses on
“Relational Database and Database Schema”.

1. A relational database consists of a collection of


a) Tables
b) Fields
c) Records
d) Keys
View Answer
Answer: a
Explanation: Fields are the column of the relation or tables. Records are each row in a
relation. Keys are the constraints in a relation.

2. A ________ in a table represents a relationship among a set of values.


a) Column
b) Key
c) Row
d) Entry
View Answer
Answer: c
Explanation: Column has only one set of values. Keys are constraints and row is one
whole set of attributes. Entry is just a piece of data.

3. The term _______ is used to refer to a row.


a) Attribute
b) Tuple
c) Field
d) Instance
View Answer
Answer: b
Explanation: Tuple is one entry of the relation with several attributes which are fields.
advertisement
4. The term attribute refers to a ___________ of a table.
a) Record
b) Column
c) Tuple
d) Key
View Answer
Answer: b
Explanation: Attribute is a specific domain in the relation which has entries of all tuples.

5. 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
View Answer
Answer: a
Explanation: The values of the attribute should be present in the domain. Domain is a
set of values permitted.

Subscribe Now: DBMS Newsletter | Important Subjects Newsletters

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.
a) Instance, Schema
b) Relation, Schema
c) Relation, Domain
d) Schema, Instance
View Answer
Answer: d
Explanation: Instance is an instance of time and schema is a representation.

7. 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
View Answer
Answer: b
Explanation: The relation course has a set of attributes course_id,sec_id,semester .

8. 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
View Answer
Answer: c
Explanation: Here the relations are connected by the common attributes.

9. A domain is atomic if elements of the domain are considered to be ____________ units.


a) Different
b) Indivisbile
c) Constant
d) Divisible
View Answer
Answer: b
Explanation: None.

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


a) Any
b) Same
c) Sorted
d) Constant
View Answer
Answer: a
Explanation: The values only count. The order of the tuples does not matte

his set of Database MCQs focuses on “Relational Query Operations and Relational
Operators”.

1. Using which language can a user request information from a database?


a) Query
b) Relational
c) Structural
d) Compiler
View Answer
Answer: a
Explanation: Query language is a method through which the database entries can be
accessed.

2. Student(ID, name, dept name, tot_cred)


In this query which attributes form the primary key?
a) Name
b) Dept
c) Tot_cred
d) ID
View Answer
Answer: d
Explanation: The attributes name, dept and tot_cred can have same values unlike ID.

3. Which one of the following is a procedural language?


a) Domain relational calculus
b) Tuple relational calculus
c) Relational algebra
d) Query language
View Answer
Answer: c
Explanation: Domain and Tuple relational calculus are non-procedural language. Query
language is a method through which database entries can be accessed.
advertisement
4. The_____ operation allows the combining of two relations by merging pairs of tuples,
one from each relation, into a single tuple.
a) Select
b) Join
c) Union
d) Intersection
View Answer
Answer: b
Explanation: Join finds the common tuple in the relations and combines it.

5. The result which operation contains all pairs of tuples from the two relations,
regardless of whether their attribute values match.
a) Join
b) Cartesian product
c) Intersection
d) Set difference
View Answer
Answer: b
Explanation: Cartesian product is the multiplication of all the values in the attributes.

Sanfoundry Certification Contest of the Month is Live. 100+ Subjects. Participate


Now!

6. The _______operation performs a set union of two “similarly structured” tables


a) Union
b) Join
c) Product
d) Intersect
View Answer
Answer: a
Explanation: Union just combines all the values of relations of same attributes.

7. The most commonly used operation in relational algebra for projecting a set of tuple
from a relation is
a) Join
b) Projection
c) Select
d) Union
View Answer
Answer: c
Explanation: Select is used to view the tuples of the relation with or without some
constraints.

8. The _______ operator takes the results of two queries and returns only rows that
appear in both result sets.
a) Union
b) Intersect
c) Difference
d) Projection
View Answer
Answer: b
Explanation: The union operator gives the result which is the union of two queries and
difference is the one where query which is not a part of second query.

9. 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.
a) Schema diagram
b) Relational algebra
c) Database diagram
d) Schema flow
View Answer
Answer: a
Explanation: None.

10. The _________ provides a set of operations that take one or more relations as input
and return a relation as an output.
a) Schematic representation
b) Relational algebra
c) Scheme diagram
d) Relation flow
View Answer
Answer: b
Explanation: None

This set of Database Multiple Choice Questions & Answers (MCQs) focuses on “The
Entity-Relationship Model”.
1. 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
View Answer
Answer: a
Explanation: An entity is a “thing” or “object” in the real world that is distinguishable
from all other objects.

2. Entity is a _________
a) Object of relation
b) Present working model
c) Thing in real world
d) Model of relation
View Answer
Answer: c
Explanation: For example, each person in a university is an entity.

3. The descriptive property possessed by each entity set is _________


a) Entity
b) Attribute
c) Relation
d) Model
View Answer
Answer: b
Explanation: Possible attributes of the instructor entity set are ID, name, dept name,
and salary.
advertisement
4. The function that an entity plays in a relationship is called that entity’s _____________
a) Participation
b) Position
c) Role
d) Instance
View Answer
Answer: c
Explanation: A relationship is an association among several entities.

5. 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
View Answer
Answer: b
Explanation: Composite attributes can be divided into subparts (that is, other
attributes).

Subscribe Now: DBMS Newsletter | Important Subjects Newsletters

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


a) Single valued
b) Multi valued
c) Composite
d) Derived
View Answer
Answer: d
Explanation: The value for this type of attribute can be derived from the values of other
related attributes or entities.

7. Not applicable condition can be represented in relation entry as


a) NA
b) 0
c) NULL
d) Blank Space
View Answer
Answer: c
Explanation: NULL always represents that the value is not present.

8. Which of the following can be a multivalued attribute?


a) Phone_number
b) Name
c) Date_of_birth
d) All of the mentioned
View Answer
Answer: a
Explanation: Name and Date_of_birth cannot hold more than 1 value.

9. Which of the following is a single valued attribute


a) Register_number
b) Address
c) SUBJECT_TAKEN
d) Reference
View Answer
Answer: a
Explanation: None.

10. 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
View Answer
Answer: a
Explanation: Consider the entity sets student and section, which participate in a
relationship set takes. We may wish to store a descriptive attribute grade with the
relationship to record the grade that a student got in the class

This set of Database Multiple Choice Questions & Answers (MCQs) focuses on
“Constraints”.

1. _____________ 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
View Answer
Answer: a
Explanation: Mapping cardinality is also called as cardinality ratio.

2. 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
View Answer
Answer: b
Explanation: Here one entity in one set is related to one one entity in other set.

3. 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
View Answer
Answer: d
Explanation: Here more than one entity in one set is related to one one entity in other
set.
advertisement
4. 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
View Answer
Answer: c
Explanation: The data entered will be in a particular cell (i.e., table column).

5. 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
View Answer
Answer: b
Explanation: Only particular value satisfying the constraints are entered in the column.

Subscribe Now: DBMS Newsletter | Important Subjects Newsletters

6. 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’)
View Answer
Answer: c
Explanation: None.
7. ______ is a special type of integrity constraint that relates two relations & maintains
consistency across the relations.
a) Entity Integrity Constraints
b) Referential Integrity Constraints
c) Domain Integrity Constraints
d) Domain Constraints
View Answer
Answer: b
Explanation: None.

8. Which one of the following uniquely identifies the elements in the relation?
a) Secondary Key
b) Primary key
c) Foreign key
d) Composite key
View Answer
Answer: b
Explanation: Primary key checks for not null and uniqueness constraint.

9. 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
View Answer
Answer: d
Explanation: Foreign key is used when primary key of one relation is used in another
relation.

10. ____________ is preferred method for enforcing data integrity


a) Constraints
b) Stored Procedure
c) Triggers
d) Cursors
View Answer
Answer: a
Explanation: Constraints are specified to restrict entries in the relation

This set of Database Multiple Choice Questions & Answers (MCQs) focuses on “Entity-
Relationship Diagrams”.
1. 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
View Answer
Answer: a
Explanation: E-R diagrams are simple and clear—qualities that may well account in
large part for the widespread use of the E-R model.

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


a) Double diamonds
b) Undivided rectangles
c) Dashed lines
d) Diamond
View Answer
Answer: d
Explanation: Dashed lines link attributes of a relationship set to the relationship set.

3. The Rectangles divided into two parts represents


a) Entity set
b) Relationship set
c) Attributes of a relationship set
d) Primary key
View Answer
Answer: a
Explanation: The first part of the rectangle, contains the name of the entity set. The
second part contains the names of all the attributes of the entity set.
advertisement
4. 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
View Answer
Answer: b
Explanation: This indicates that an instructor may advise at most one student, and a
student may have at most one advisor.

5. 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
View Answer
Answer: d
Explanation: Diamond represents a relationship set and rectangle represents a entity
set.

Sanfoundry Certification Contest of the Month is Live. 100+ Subjects. Participate


Now!

6. 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
View Answer
Answer: c
Explanation: An entity set that has a primary key is termed a strong entity set.

7. For a weak entity set to be meaningful, it must be associated with another entity set,
called the
a) Identifying set
b) Owner set
c) Neighbour set
d) Strong entity set
View Answer
Answer: a
Explanation: Every weak entity must be associated with an identifying entity; that is, the
weak entity set is said to be existence dependent on the identifying entity set. The
identifying entity set is said to own the weak entity set that it identifies. It is also called
as owner entity set.

8. Weak entity set is represented as


a) Underline
b) Double line
c) Double diamond
d) Double rectangle
View Answer
Answer: d
Explanation: Weak entity set is represented as a double rectangle in entity relationship
diagram.

9. 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
View Answer
Answer: b
Explanation: An entity set is a logical container for instances of an entity type and
instances of any type derived from that entity type.

10. 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
View Answer
Answer: b
Explanation: The environment of database is said to be an instance. A database
instance or an ‘instance’ is made up of the background processes needed by the
database

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy