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

Fundamentals - of - Relational - Database - Management - Systems QUIZ

The document appears to be a record of an assessment completed on database concepts. It consists of multiple choice questions with correct and incorrect answers identified. The assessment covers topics such as the definition of a database, different data models, SQL commands like DDL, DML, DCL, and concepts such as schema, tables, relationships and entity relationship diagrams.

Uploaded by

Devil Kali
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
154 views

Fundamentals - of - Relational - Database - Management - Systems QUIZ

The document appears to be a record of an assessment completed on database concepts. It consists of multiple choice questions with correct and incorrect answers identified. The assessment covers topics such as the definition of a database, different data models, SQL commands like DDL, DML, DCL, and concepts such as schema, tables, relationships and entity relationship diagrams.

Uploaded by

Devil Kali
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 51

Assessment #01

The due date for submitting this assignment has passed.


Due on 2022-03-12, 23:59 IST.

Assignment submitted on 2022-02-28, 15:33 IST


1 point
What is a database?

Organized collection of information that cannot be accessed, updated, and managed


Collection of data or information without organizing
Organized collection of data or information that can be accessed, updated, and managed
Organized collection of data that cannot be updated
Yes, the answer is correct.
Score: 1
Accepted Answers:
Organized collection of data or information that can be accessed, updated, and managed
1 point
Which type of data can be stored in the database?

Image oriented data


Text, files containing data
Data in the form of audio or video
All of the above
Yes, the answer is correct.
Score: 1
Accepted Answers:
All of the above
1 point
Which of the following is not an example of DBMS?

MySQL
Microsoft Acess
IBM DB2
Google
Yes, the answer is correct.
Score: 1
Accepted Answers:
Google
1 point
What does an RDBMS consist of?

Collection of Records
Collection of Keys
Collection of Tables
Collection of Fields
Yes, the answer is correct.
Score: 1
Accepted Answers:
Collection of Tables
1 point
What is information about data called?

Hyper data
Tera data
Meta data
Relations
Yes, the answer is correct.
Score: 1
Accepted Answers:
Meta data
1 point
Schema Definition is written by __________.

Application Programmer
Naive User
Database Administrator
Sophisticated user
Yes, the answer is correct.
Score: 1
Accepted Answers:
Database Administrator
1 point
In DBMS data models are classified into

object-based logical model


physical data model
record-based data models
all of these
No, the answer is incorrect.
Score: 0
Accepted Answers:
all of these
1 point
Relational Model is concerned with

Data Structure and Data Integrity


Data Manipulation
Both of above
None of these
Yes, the answer is correct.
Score: 1
Accepted Answers:
Both of above
1 point
RDBMS applications stores data _________.

In tabular form
As file
Both of the above
None
Yes, the answer is correct.
Score: 1
Accepted Answers:
In tabular form
1 point
RDBMS supports ______ users.

One
Two
Three
Multiple
Yes, the answer is correct.
Score: 1
Accepted Answers:
Multiple
1 point
Periodically adding, changing and deleting file records is called

Updating
Upgrading
Renewing
Restructuring
Yes, the answer is correct.
Score: 1
Accepted Answers:
Updating
1 point
Which of following is not a function of DBA?

Network Maintenance
Routine Maintenance
Schema Definition
Authorization for data access
No, the answer is incorrect.
Score: 0
Accepted Answers:
Network Maintenance
1 point
Which of the following database activities allow for the actual retrieval and use of a database?

Enterprise modeling
Logical database design
Physical database design and definitionelements.
Database implementation
Yes, the answer is correct.
Score: 1
Accepted Answers:
Database implementation
1 point
The person who implements the specification of database programs is considered as

Software engineers
Application programmers
Software Developers
All of the above
No, the answer is incorrect.
Score: 0
Accepted Answers:
All of the above
1 point
Storage Structure and defining access method is the job done by

Database System
Database Manager
Database Administrator
Database Users
Yes, the answer is correct.
Score: 1
Accepted Answers:
Database Administrator

Assessment #02
The due date for submitting this assignment has passed.
Due on 2022-03-19, 23:59 IST.

Assignment submitted on 2022-03-10, 14:55 IST


1 point
Language used for database queries and updates is known as

Data Modelling Language


Data Definition Language
Data Manipulation Language
Data Declaration Language
Yes, the answer is correct.
Score: 1
Accepted Answers:
Data Manipulation Language
1 point
DDL stands for

Data Definition Language


Database Design Language
Database Development Language
None of these
Yes, the answer is correct.
Score: 1
Accepted Answers:
Data Definition Language
1 point
What is the responsibility of the buffer manager?

Fetching data from disk storage into main memory, and deciding what data to cache in main
memory.
Allocation of space on disk storage and the data structures used to represent information stored
on disk.
Storing details such as how many users, which user has which permissions etc.
None of the above
Yes, the answer is correct.
Score: 1
Accepted Answers:
Fetching data from disk storage into main memory, and deciding what data to cache in main
memory.
1 point
The ability to grant the table to the user, as well as revoking the table from the particular user is
offered by ____________

Data Definition Language


Transaction Control Language
Data Control Language
System Control Language
No, the answer is incorrect.
Score: 0
Accepted Answers:
Data Control Language
1 point
ROLLBACK in a database is ____ statement.

DDL
DML
DCL
TCL
No, the answer is incorrect.
Score: 0
Accepted Answers:
TCL
1 point
The users who access the database occasionally but need different information every time are
classified as
Isolated Users
Occasional Users
Logical Users
Casual End Users
Yes, the answer is correct.
Score: 1
Accepted Answers:
Casual End Users
1 point
The responsiblity of the database administrator includes

Authorize Users
Structure database
Restructure database
all of these
Yes, the answer is correct.
Score: 1
Accepted Answers:
all of these
1 point
Which command is neither DML nor DDL?

Truncate
Rename
Update
Revoke
Yes, the answer is correct.
Score: 1
Accepted Answers:
Revoke
1 point
A table is a collection of relationships,there is a close correspondence between concept of:

Tables and Instances


Tables and Variables
Tables and Relations
Tables and Entries
Yes, the answer is correct.
Score: 1
Accepted Answers:
Tables and Relations
1 point
Set of definitions that are used to specify schema are expressed using

Fortran
Java
DML
DDL
Yes, the answer is correct.
Score: 1
Accepted Answers:
DDL
1 point
Which of following language is used to specify database schema?

Data Management Language


Data Manipulation Language
Data Definition Language
Data Development Language
Yes, the answer is correct.
Score: 1
Accepted Answers:
Data Definition Language
1 point
In SQL, which command is used to add new rows to a table?

ALTER TABLE
ADD ROW
INSERT
APPEND
No, the answer is incorrect.
Score: 0
Accepted Answers:
INSERT
1 point
A tablespace is further broken down into

Tablespace
Segments
Extents
Blocks
Yes, the answer is correct.
Score: 1
Accepted Answers:
Segments
1 point
Given SQL statement is an example of : select * from table_name

Data Definition Language


Data Manipulation Language
Data Control Language
Transaction Control Language
No, the answer is incorrect.
Score: 0
Accepted Answers:
Data Manipulation Language
1 point
__________________ is used for interfacing with RDBMS.

IBM
SQL
ANSI
ORACLE
Yes, the answer is correct.
Score: 1
Accepted Answers:
SQL

Assessment #03
The due date for submitting this assignment has passed.
Due on 2022-03-23, 23:59 IST.
As per our records you have not submitted this assignment.
1 point
Entity is a _______

Object of relation
Present working model
Thing in real world
Model of relation
No, the answer is incorrect.
Score: 0
Accepted Answers:
Thing in real world
1 point
E-R modeling technique is a :

Top-down approach
Bottom-up approach
Left-right approach
None of these
No, the answer is incorrect.
Score: 0
Accepted Answers:
Top-down approach
1 point
In ER model the details of the entities are hidden from the user. This process is called :

generalization
specialization
abstraction
aggregation
No, the answer is incorrect.
Score: 0
Accepted Answers:
abstraction
1 point
The number of entities to which another entity can be associated via a relationship set is expressed
as :

Entity
Cardinality
Schema
Attributes
No, the answer is incorrect.
Score: 0
Accepted Answers:
Cardinality
1 point
Unit 01 Test 03 Q06::An association of several entities in an Entity-Relation model is called :

Tuple
Record
Relationship
Field
No, the answer is incorrect.
Score: 0
Accepted Answers:
Relationship
1 point
In which of following is a single-entity instance of one type of related to a single entity instance of
another type?

One to one relationship


One to many relationship
Many to many relationship
Composite relationship
No, the answer is incorrect.
Score: 0
Accepted Answers:
One to one relationship
1 point
Which of the following symbols represent relationships in ER Diagram?

Divided Rectangles
Diamonds
Lines
Undivided Rectangles
No, the answer is incorrect.
Score: 0
Accepted Answers:
Diamonds
1 point
An Entity-Relationship provides a graphical representation of

Context
Framework
Schema
Modules
No, the answer is incorrect.
Score: 0
Accepted Answers:
Schema
1 point
Properties that describes characteristics of entities called____________

Entities
Identifiers
Relationship
attributes
No, the answer is incorrect.
Score: 0
Accepted Answers:
attributes
1 point
The attribute AGE is calculated from DATE_OF_BIRTH. The attribute AGE is

Single Valued Attribute


Multi Valued Attribute
Derived Attribute
Composite Attribute
No, the answer is incorrect.
Score: 0
Accepted Answers:
Derived Attribute
1 point
Which of the following can be a multivalued attribute?

Phone_number
Name
Date_of_birth
All of the mentioned
No, the answer is incorrect.
Score: 0
Accepted Answers:
Phone_number
1 point
Which of the following is a single valued attribute

Register Number
Address
Subject_taken
Reference
No, the answer is incorrect.
Score: 0
Accepted Answers:
Register Number
1 point
Entities of a given type are grouped into an___________

Database
Entity Class
attribute
ERD
No, the answer is incorrect.
Score: 0
Accepted Answers:
Entity Class
1 point
Mapping cardinalities can be of type

2 types
3 types
4 types
5 types
No, the answer is incorrect.
Score: 0
Accepted Answers:
4 types

Unit_2_Week 4_Assessment
The due date for submitting this assignment has passed.
Due on 2022-03-27, 23:59 IST.
As per our records you have not submitted this assignment.
1 point
A relation is a concept based on

Sets
Procedures
Algorithms
Functions
No, the answer is incorrect.
Score: 0
Accepted Answers:
Sets
1 point
In formal model, a row is referred as

Schema
State
Attribute
Tuple
No, the answer is incorrect.
Score: 0
Accepted Answers:
Tuple
1 point
Which of the following is the correct representation for a relation schema?

r(A1, A2, .....,An)


R(A1,A2,…..,An)
A1, A2, .....,An

r(R)
No, the answer is incorrect.
Score: 0
Accepted Answers:
R(A1,A2,…..,An)
1 point
Each value in a tuple must be

from dom(Ai)
Unique
from any type
NULL
No, the answer is incorrect.
Score: 0
Accepted Answers:
from dom(Ai)
1 point
State of a relation is a subset of

Cartesian Product operation on domain of attributes


Project operation on domain of attributes
intersection operation on domain of attributes
Select operation on domain of attributes
No, the answer is incorrect.
Score: 0
Accepted Answers:
Cartesian Product operation on domain of attributes
1 point
Unknown is

0
NULL
1
False
No, the answer is incorrect.
Score: 0
Accepted Answers:
NULL
1 point
One of the candidate keys is chosen as

Secondary key
Foreign key
Alternate key
Primary key
No, the answer is incorrect.
Score: 0
Accepted Answers:
Primary key
1 point
Underline identifies

a primary key attribute


a foreign key attribute
a secondary key
an alternate key
No, the answer is incorrect.
Score: 0
Accepted Answers:
a primary key attribute
1 point
A relational database schema is represented as

S = {R1, R2, ..., Rn}


S = {r1, r2, ..., rn}
S= {attribute1, attribute2, ..., attributeN}
S= {tuple1, tuple2,…..,tupleN)
No, the answer is incorrect.
Score: 0
Accepted Answers:
S = {R1, R2, ..., Rn}
1 point
Referential Integrity involves

Foreign key only


Primary and Foreign key
Primary key only
Candidate key only
No, the answer is incorrect.
Score: 0
Accepted Answers:
Primary and Foreign key

Unit_2_Week 5_Assessment
The due date for submitting this assignment has passed.
Due on 2022-04-03, 23:59 IST.
As per our records you have not submitted this assignment.
1 point
A relational database state is

Union of all states of relations


Difference of all states of relations
Intersection of all states of relations
Projection of all states of relations
No, the answer is incorrect.
Score: 0
Accepted Answers:
Union of all states of relations
1 point
A Correct set of Update operations is

insert, update, delete


delete, update, alter
insert, create, delete
insert, drop, update
No, the answer is incorrect.
Score: 0
Accepted Answers:
insert, update, delete
1 point
A constraint which is possibly violated in delete operation is

Domain Constraint
Entity Integrity
Key Constraint
Referential Integrity
No, the answer is incorrect.
Score: 0
Accepted Answers:
Referential Integrity
1 point
In relational algebra, Unary operations are

select, project, union


select, rename, project
intersection, difference, union
project, rename, intersection
No, the answer is incorrect.
Score: 0
Accepted Answers:
select, rename, project
1 point
Unary operation select results in
attributes from a relation
columns from a table
tuples from a relation
domains of attributes
No, the answer is incorrect.
Score: 0
Accepted Answers:
tuples from a relation
1 point
Project operation leads to

Horizontal partitioning
Row-based partitioning
Vertical partitioning
Tuple-based partitioning
No, the answer is incorrect.
Score: 0
Accepted Answers:
Vertical partitioning
1 point
Count of tuples in the result of PROJECT operation is

greater than the number of tuples in original relation


less than the number of tuples in original relation
less than or equal to the number of tuples in original relation
greater than or equal to the number of tuples in original relation
No, the answer is incorrect.
Score: 0
Accepted Answers:
less than or equal to the number of tuples in original relation
1 point
Arity for a relation with n attributes is

n+1
n
n-1
Always 1
No, the answer is incorrect.
Score: 0
Accepted Answers:
n
1 point
Union operation on relations r and s needs

r and s to have incompatible domains


r and s to have different arity
r and s to have same arity and in-compatible domains
r and s to have same arity and compatible domains
No, the answer is incorrect.
Score: 0
Accepted Answers:
r and s to have same arity and compatible domains
1 point
Set difference operation on relations r and s will produce a result with

tuples in both r and s


tuples only in r but not in s
tuples only in s but not in r
tuples not in r and s
No, the answer is incorrect.
Score: 0
Accepted Answers:
tuples only in r but not in s

Unit_2_Week 6_Assessment
The due date for submitting this assignment has passed.
Due on 2022-04-10, 23:59 IST.
As per our records you have not submitted this assignment.
1 point
Which of the following is an aggregate function?

like
in
count
exists
No, the answer is incorrect.
Score: 0
Accepted Answers:
count
1 point
Which of the following aggregation function does not ignore NULL values?

count
avg
max
sum
No, the answer is incorrect.
Score: 0
Accepted Answers:
count
1 point
Join operation can be replaced by a combination of

Intersection and Select operation


Cartesian Product and Select operation
Difference and Intersect operation
Union and Select operation
No, the answer is incorrect.
Score: 0
Accepted Answers:
Cartesian Product and Select operation
1 point
When Join operation is applied on a relation with ' x ' attributes and another relation with ' y '
attributes, result will have

values for x + y attributes


values for y attributes
values for x attributes
values for x - y attributes
No, the answer is incorrect.
Score: 0
Accepted Answers:
values for x + y attributes
1 point
Which of the following is CORRECT about join condition in Natural Join?

Values of attributes in Join condition must be same


Attributes in Join condition must have different names
Attributes in Join condition must have same name
Values of attributes in Join condition must be different
No, the answer is incorrect.
Score: 0
Accepted Answers:
Attributes in Join condition must have same name
1 point
Outer join on relations R and S will have tuples

in relation R
in relation S
in R INTERSECT S
in relations R or in S or in both
No, the answer is incorrect.
Score: 0
Accepted Answers:
in relations R or in S or in both
1 point
Which of the following operation should be used to get the tuples in the first relation R but not in
second relation S?

Union
Difference
Intersection
Project
No, the answer is incorrect.
Score: 0
Accepted Answers:
Difference
1 point
Types of relational calculus are

Tuple and Row relational calculus


Tuple and Column relational calculus
Record and Domain relational calculus
Tuple and Domain Relational calculus
No, the answer is incorrect.
Score: 0
Accepted Answers:
Tuple and Domain Relational calculus
1 point
A tuple variable ' t ' spans over a

Relation
Row
Domain
Column
No, the answer is incorrect.
Score: 0
Accepted Answers:
Relation
1 point
An example value in QBE is preceded by

Single quotes character


Hyphen character
Underscore character
Double quotes character
No, the answer is incorrect.
Score: 0
Accepted Answers:
Underscore character

Unit 3 Assessment #01


The due date for submitting this assignment has passed.
Due on 2022-04-23, 23:59 IST.

Assignment submitted on 2022-04-17, 16:25 IST


1 point
Which of the following is/are type of SQL Constraint?

Column Level
Row Level
Both A and B
None of the above
No, the answer is incorrect.
Score: 0
Accepted Answers:
Both A and B
1 point
NULL means –

-1
1
Zero
Empty
Yes, the answer is correct.
Score: 1
Accepted Answers:
Empty
1 point
___________ integrity is achieved by using a foreign key.

Referential Integrity
Domain integrity
User defined integrity
Entity Integrity
Yes, the answer is correct.
Score: 1
Accepted Answers:
Referential Integrity
1 point
What is the full form of SQL?

Structured Query List


Structure Query Language
Sample Query Language
Simple Query Language
Yes, the answer is correct.
Score: 1
Accepted Answers:
Structure Query Language
1 point
How many Primary keys can have in a table?

only 1
only 2
Depends on number of columns
Depends on DBA
Yes, the answer is correct.
Score: 1
Accepted Answers:
only 1
1 point
Which is a column level constraint?

Primary key
Foreign key
Not Null
Check Constraint
No, the answer is incorrect.
Score: 0
Accepted Answers:
Not Null
1 point
Which of the following is not Constraint in SQL?

Primary Key
Not Null
Check
Union
Yes, the answer is correct.
Score: 1
Accepted Answers:
Union
1 point
Which command is used to change the definition of a table in SQL?

Create
Update
Alter
Select
Yes, the answer is correct.
Score: 1
Accepted Answers:
Alter
1 point
Foreign key also called

Context key
Unique define key
Candidate key
Parent key
Yes, the answer is correct.
Score: 1
Accepted Answers:
Candidate key
1 point
Which of the following is true for a primary key?

It can take a value more than once


It can’t take null values
It can take null values
None of these
Yes, the answer is correct.
Score: 1
Accepted Answers:
It can’t take null values

Unit 3 Assessment #02


The due date for submitting this assignment has passed.
Due on 2022-04-30, 23:59 IST.

Assignment submitted on 2022-04-28, 09:34 IST


1 point
A Sub query is an SQL expression that is placed ________ another SQL statement.

Before
After
Inside
Outside
Yes, the answer is correct.
Score: 1
Accepted Answers:
Inside
1 point
With which of the following statements can the SQL sub queries be used?

Select
Update
Insert
All of the above
Yes, the answer is correct.
Score: 1
Accepted Answers:
All of the above
1 point
A subquery that uses a correlation name from outer query is called_________

Derived Subquery
Induced Subquery
Deduced Subquery
Correlated Subquery
Yes, the answer is correct.
Score: 1
Accepted Answers:
Correlated Subquery
1 point
Cartesian Joins are also called

Semi Join
Cross Join
Anti Join
Natural Join
Yes, the answer is correct.
Score: 1
Accepted Answers:
Cross Join
1 point
Which join returns all the rows that are in the first (left) table listed. Matching rows from the right
table are also returned?

Left Join
Right Join
Full Join
None of the above
Yes, the answer is correct.
Score: 1
Accepted Answers:
Left Join
1 point
Which join is needed when you need to find out all the possibilities of combining two tables?

Full Outer Join


Natural Join
Cartesian Join
Inner Join
No, the answer is incorrect.
Score: 0
Accepted Answers:
Cartesian Join
1 point
Which of the following statements are False?

RIGHT OUTER JOIN is equivalent to LEFT OUTER JOIN if order of tables are reversed
FULL OUTER JOIN is same as CROSS JOIN
SELF JOIN is a special type of OUTER JOIN
Full Outer Join is same as cross join and Self join is a special type of outer join
No, the answer is incorrect.
Score: 0
Accepted Answers:
Full Outer Join is same as cross join and Self join is a special type of outer join
1 point
To specify inner join, the keyword inner is

Mandatory
Optional
Independent
Free
Yes, the answer is correct.
Score: 1
Accepted Answers:
Optional
1 point
Joining a table itself is called

Self Join
Equi Join
Anti Join
Outer Join
Yes, the answer is correct.
Score: 1
Accepted Answers:
Self Join
1 point
Which join is using comparison operator in the where clause to refer equality?

Anti Join
Equi Join
Outer Join
Natural Join
Yes, the answer is correct.
Score: 1
Accepted Answers:
Equi Join

Week 9_Assessment
The due date for submitting this assignment has passed.
Due on 2022-05-08, 23:59 IST.
As per our records you have not submitted this assignment.
1 point
An ____________ performs a calculation on a set of values, and returns a single value.

Scalar Function
Aggregate Function
Function
Cumulative Function
No, the answer is incorrect.
Score: 0
Accepted Answers:
Aggregate Function
1 point
An aggregate function always returns a _____

Null Value
Single Value
Multiple Values
Both single and multiple values
No, the answer is incorrect.
Score: 0
Accepted Answers:
Single Value
1 point
Which of the following is not an aggregate function?

min() and max()


minimum and maximum()
count() and sum()
avg() and count()
No, the answer is incorrect.
Score: 0
Accepted Answers:
minimum and maximum()
1 point
_____ function is used to retrieve the number of rows in a table.

sum()
calculate()
max()
count()
No, the answer is incorrect.
Score: 0
Accepted Answers:
count()
1 point
Which of the following SQL statement returns the number of distinct Non-Null values over the
column salary.

select count (distinct salary) from Employee;


select count(salary) from Employee;
select count (*) from Employee;
select count (salary distinct) from Employee;
No, the answer is incorrect.
Score: 0
Accepted Answers:
select count (distinct salary) from Employee;
1 point
The ______ condition in SQL is used to check whether the result of a nested query is empty or not.
exists
unique
available
check
No, the answer is incorrect.
Score: 0
Accepted Answers:
exists
1 point
The result of EXISTS is a ________ value.

boolean
char
varchar
null
No, the answer is incorrect.
Score: 0
Accepted Answers:
boolean
1 point
While using the IN predicate in subquery, how many times the inner query gets executed?

Only once
Twice
It depends on the number of rows in outer query.
Thrice
No, the answer is incorrect.
Score: 0
Accepted Answers:
Only once
1 point
Unique constraint in SQL is used to check whether the sub query has ____________ in it’s result.

duplicate tuples
Null Values
At least one row.
Zero tuples
No, the answer is incorrect.
Score: 0
Accepted Answers:
duplicate tuples
1 point
By default ORDER BY sorts the data in

ascending order
descending order
both ascending and descending order
mixed order
No, the answer is incorrect.
Score: 0
Accepted Answers:
ascending order

Unit_4_Week 10_Assessment
The due date for submitting this assignment has passed.
Due on 2022-05-08, 23:59 IST.

Assignment submitted on 2022-05-08, 16:51 IST


1 point
Two levels in the database design are

Logical level and Database level


Logical level and Implementation level
Implementation level and Database level
Database level and Schema level
No, the answer is incorrect.
Score: 0
Accepted Answers:
Logical level and Implementation level
1 point
Two approaches in the database design are

Bottom-up and Bottom-down


Bottom-up and top-up
Top-down and top-bottom
Bottom-up and top-down
Yes, the answer is correct.
Score: 1
Accepted Answers:
Bottom-up and top-down
1 point
Goals of a relational database design are

Maximum redundancy
Minimum redundancy
Information preservation and maximum redundancy
Information preservation and minimum redundancy
Yes, the answer is correct.
Score: 1
Accepted Answers:
Information preservation and minimum redundancy
1 point
Number of informal design guidelines is

3
4
6
2
Yes, the answer is correct.
Score: 1
Accepted Answers:
4
1 point
Informal design guidelines determine the

Equality of relation schema design


Inequality of relation schema design
Performance of relation schema design
Quality of relation schema design
No, the answer is incorrect.
Score: 0
Accepted Answers:
Quality of relation schema design
1 point
A tuple in a relation should represent

One entity
Two entities
Four entities
Three entities
Yes, the answer is correct.
Score: 1
Accepted Answers:
One entity
1 point
A relational schema design should not suffer from

Insertion and Update anomalies


Deletion and Insert anomalies
Deletion and Update anomalies
Insertion, deletion and Update anomalies
Yes, the answer is correct.
Score: 1
Accepted Answers:
Insertion, deletion and Update anomalies
1 point
Which of the following is APPROPRIATE about NULL values in tuples of a relation?

All values can be NULL values


All values cannot be NULL values
Maximum possible NULL values
Minimum possible NULL values
No, the answer is incorrect.
Score: 0
Accepted Answers:
Minimum possible NULL values
1 point
A relation with data redundancy results in

Insertion anomaly
Insertion, Deletion and Updation anomalies
Deletion anomaly
Updation anomaly
Yes, the answer is correct.
Score: 1
Accepted Answers:
Insertion, Deletion and Updation anomalies
1 point
Spurious tuples are generated for

Lossy join and lossless join


Lossless join
Lossy join
Neither lossy join nor lossless join
Yes, the answer is correct.
Score: 1
Accepted Answers:
Lossy join

Unit_4_Week 11_Assessment
The due date for submitting this assignment has passed.
Due on 2022-05-15, 23:59 IST.

Assignment submitted on 2022-05-15, 20:17 IST


1 point
Functional dependencies are a generalization of

Relation dependencies
Database dependencies
Key dependencies
Row dependencies
Yes, the answer is correct.
Score: 1
Accepted Answers:
Key dependencies
1 point
Compound determinants in a functional dependency is

No attribute determines another attribute


More than one attribute determines another attribute
Having more than one dependent
One attribute determines another attribute
Yes, the answer is correct.
Score: 1
Accepted Answers:
More than one attribute determines another attribute
1 point
Partial functional dependency is

using all the attributes in the set of composite determinant


using a superset of the attributes of the composite determinant
using a composite determinant as an empty set
using a subset of the attributes of the composite determinant
Yes, the answer is correct.
Score: 1
Accepted Answers:
using a subset of the attributes of the composite determinant
1 point
An attribute of a relation schema R, which is a part of candidate key is referred as

Non prime attribute


Prime attribute
Atomic attribute
Candidate attribute
Yes, the answer is correct.
Score: 1
Accepted Answers:
Prime attribute
1 point
Assuming X as determinant and Y as dependent, which of the following is a CORRECT functional
dependency?

Y -> X
XY -> X
X -> Y
YX -> X
Yes, the answer is correct.
Score: 1
Accepted Answers:
X -> Y
1 point
The process of analyzing relation schema to achieve minimum redundancy and updation or insertion
anomalies is

Specialization of data
Isolation of data
Normalization of data
Aggregation of data
Yes, the answer is correct.
Score: 1
Accepted Answers:
Normalization of data
1 point
The constraint between two sets of attributes is

Functional dependency
Deletion anomaly
Insertion anomaly
Updation anomaly
Yes, the answer is correct.
Score: 1
Accepted Answers:
Functional dependency
1 point
A normal form which is based on the full functional dependency is

Fourth Normal form


Third Normal form
First Normal form
Second Normal form
Yes, the answer is correct.
Score: 1
Accepted Answers:
Second Normal form
1 point
A normal which includes only atomic values is

First Normal form


Third Normal form
Fourth Normal form
Second Normal form
No, the answer is incorrect.
Score: 0
Accepted Answers:
First Normal form
1 point
A relation schema is in 2NF if it is in 1NF and
is fully functionally dependent
Has transitive dependencies
Has partial dependencies
Has both partial and transitive dependencies
Yes, the answer is correct.
Score: 1
Accepted Answers:
is fully functionally dependent

Week 12_Assessment
The due date for submitting this assignment has passed.
Due on 2022-06-03, 23:59 IST.

Assignment submitted on 2022-05-22, 12:00 IST


1 point
Relations produced from an E-R model will always be in

First normal form.


Second normal form.
Third normal form.
Fourth normal form.
Yes, the answer is correct.
Score: 1
Accepted Answers:
First normal form.
1 point
__________ Attributes are chosen to uniquely identify any record in a table.

Prime
Non Prime
Foreign key
CoPrime
Yes, the answer is correct.
Score: 1
Accepted Answers:
Prime
1 point
A relation is said to be in fourth normal form if
Transitive dependencies exist.
No multivalued dependencies exist.
Partial Functional Dependencies exist.
Multivalued dependencies exist.
Yes, the answer is correct.
Score: 1
Accepted Answers:
No multivalued dependencies exist.
1 point
Candidate keys are selected from the set of

Super keys.
Sub Keys.
Foreign keys
Super Keys and Foreign keys
Yes, the answer is correct.
Score: 1
Accepted Answers:
Super keys.
1 point
_________ attribute can store a value many times.

Prime
Non Prime
Key
CoPrime
Yes, the answer is correct.
Score: 1
Accepted Answers:
Non Prime
1 point
Third Normal Form comes into picture when _________ occur in any relation.

Multi-valued Dependency
Partial Dependency
Transitive Dependency
No Dependency
Yes, the answer is correct.
Score: 1
Accepted Answers:
Transitive Dependency
1 point
A table should have at-least _______ columns to have a multi-valued dependency.

0
1
2
3
Yes, the answer is correct.
Score: 1
Accepted Answers:
3
1 point
For a dependency A → B, if for a single value of A, Multiple value of B exists, then the table may
have

Multi-valued Dependency
Partial Dependency
Transitive Dependency
No Dependency
Yes, the answer is correct.
Score: 1
Accepted Answers:
Multi-valued Dependency
1 point
5NF is also known as

KDNF
DKNF
JPNF
PJNF
Yes, the answer is correct.
Score: 1
Accepted Answers:
PJNF
1 point
Denormalization is an optimization technique that is applied

After Normalization
Before Normalization
Before Database Design
After storing the data
Yes, the answer is correct.
Score: 1
Accepted Answers:
After Normalization
1 point
_____________ is a database optimization technique in which we add redundant data to one or
more tables.

Normalization
Denormalization
Join
Group By
Yes, the answer is correct.
Score: 1
Accepted Answers:
Denormalization
1 point
Fourth normal form is introduced by

Elmasri
Silberschatz
William stallings
Ronald Fagin
Yes, the answer is correct.
Score: 1
Accepted Answers:
Ronald Fagin

Week 13_Assessment
The due date for submitting this assignment has passed.
Due on 2022-06-06, 23:59 IST.

Assignment submitted on 2022-05-30, 15:21 IST


1 point
A __________ is an executing program that forms a logical unit of database processing.

Transaction
Procedure
Function
Trigger
Yes, the answer is correct.
Score: 1
Accepted Answers:
Transaction
1 point
If the database operations in a transaction do not update the database but only retrieve data, the
transaction is called a

Write-only transaction
Concurrent transaction.
Read-only transaction.
Parallel transaction
Yes, the answer is correct.
Score: 1
Accepted Answers:
Read-only transaction.
1 point
If a transaction T has obtained an exclusive lock on item Q, then T can

read Q
write Q
both read and write Q
write Q but not read Q
Yes, the answer is correct.
Score: 1
Accepted Answers:
both read and write Q
1 point
Which of the following is not a consequence of concurrent operations?

Lost update problem.


Update anomaly.
Unrepeatable read.
Dirty read.
Yes, the answer is correct.
Score: 1
Accepted Answers:
Update anomaly.
1 point
Assume transaction A holds a shared lock R. If transaction B also requests for a shared lock on R.

It will result in a deadlock situation.


It will immediately be rejected.
It will immediately be granted.
It will be granted as soon as it is released by A .
Yes, the answer is correct.
Score: 1
Accepted Answers:
It will immediately be granted.
1 point
Wait-for graph is used for

Detecting view serializability.


Detecting conflict serializability.
Deadlock prevention.
Deadlock detection .
Yes, the answer is correct.
Score: 1
Accepted Answers:
Deadlock detection .
1 point
Atomicity is ensured by

Recovery protocol.
Application programmers.
Concurrency control protocol.
Read-Write protocol.
Yes, the answer is correct.
Score: 1
Accepted Answers:
Recovery protocol.
1 point
____________ are used as a means of synchronizing the access by concurrent transactions to the
database items.

Locks
Hardware
Software
Firmware
Yes, the answer is correct.
Score: 1
Accepted Answers:
Locks
1 point
___________ occurs when a transaction cannot proceed for an indefinite period of time.

Deadlock.
Starvation.
Circular wait.
Salvation
Yes, the answer is correct.
Score: 1
Accepted Answers:
Starvation.
1 point
Deadlock does not occur with

Locks
Timestamp ordering.
Two-phase Locks
Semaphores.
Yes, the answer is correct.
Score: 1
Accepted Answers:
Timestamp ordering.
1 point
In ______________ a transaction does not release exclusive locks until after it commits or aborts.

Strict 2PL
Rigorous 2PL
Static 2PL
Dynamic 2PL
Yes, the answer is correct.
Score: 1
Accepted Answers:
Strict 2PL
1 point
______________ is used commonly to test Serializability of a schedule.

Precedence Graph
Wait-for graph
Wait-Die graph
Wound-Wait graph
Yes, the answer is correct.
Score: 1
Accepted Answers:
Precedence Graph

Week 14_Assessment
The due date for submitting this assignment has passed.
Due on 2022-06-10, 23:59 IST.

Assignment submitted on 2022-05-30, 15:23 IST


1 point
PL/SQL is a

Procedural Language.
Assembly Language.
Machine Language.
Non Procedural Language.
Yes, the answer is correct.
Score: 1
Accepted Answers:
Procedural Language.
1 point
A ______________ is an PL/SQL block without a name.

Procedure
Anonymous Block
Function
Trigger
Yes, the answer is correct.
Score: 1
Accepted Answers:
Anonymous Block
1 point
Which of the following is an example for scalar data type?

Record.
Character.
Collection.
Block.
Yes, the answer is correct.
Score: 1
Accepted Answers:
Character.
1 point
If you impose the NOT NULL constraint then the variable

can accept a NULL value.


can accept only numeric values
cannot accept a NULL value.
can accept both numeric and NULL values.
Yes, the answer is correct.
Score: 1
Accepted Answers:
cannot accept a NULL value.
1 point
Which of the following statement is not correct?

Oracle precompiler ignores comments.


PL/SQL has single-line and multi-line comments.
A single-line comment starts with a double quotes
A multi-line comment starts with a slash-asterisk ( /* ) and ends with an asterisk-slash ( */ ),
Yes, the answer is correct.
Score: 1
Accepted Answers:
A single-line comment starts with a double quotes
1 point
In PL/SQL _______________ allow you to describe the purpose of a line or a block of PL/SQL code.

Variable
Constants
NULL Constraint
Comments
Yes, the answer is correct.
Score: 1
Accepted Answers:
Comments
1 point
The GOTO statement transfers control to an

Labeled block
Procedure
Trigger
Exception Handler
Yes, the answer is correct.
Score: 1
Accepted Answers:
Labeled block
1 point
In the PL/SQL program the label is placed

within Double enclosing angle brackets


within Single enclosing angle bracket
within Triple enclosing angle brackets
within double quotes
Yes, the answer is correct.
Score: 1
Accepted Answers:
within Double enclosing angle brackets
1 point
A CASE statement is evaluated from

Bottom to top.
Left to Right.
Right to Left.
Top to Bottom.
Yes, the answer is correct.
Score: 1
Accepted Answers:
Top to Bottom.
1 point
In PL/SQL ________________ are used to repeat the execution of one or more statements for
specified number of times.
Exit Loop
While Loop
For Loop
All the above.
Yes, the answer is correct.
Score: 1
Accepted Answers:
All the above.
1 point
In Basic loop the execution block start with _____________ keyword.

Declare
Begin
Loop
Start
Yes, the answer is correct.
Score: 1
Accepted Answers:
Loop
1 point
_______________ is an example for entry-controlled loop.

Exit Loop
While Loop
IF-THEN
IF-THEN-ELSIF
Yes, the answer is correct.
Score: 1
Accepted Answers:
While Loop

Week 15_Assessment
The due date for submitting this assignment has passed.
Due on 2022-06-12, 23:59 IST.

Assignment submitted on 2022-06-12, 17:39 IST


1 point
Which of the following statement is used to delete a Trigger?
ALTER TRIGGER
DELETE TRIGGER
TRUNCATE TRIGGER
DROP TRIGGER
Yes, the answer is correct.
Score: 1
Accepted Answers:
DROP TRIGGER
1 point
Database triggers are ______________that are stored in the database.

Functions
Procedures
Packages
Cursors
Yes, the answer is correct.
Score: 1
Accepted Answers:
Procedures
1 point
It is not possible to pass parameters to

Functions
Procedures
Triggers
Cursors
Yes, the answer is correct.
Score: 1
Accepted Answers:
Triggers
1 point
Which of the following statement is used to delete a function named Display?

Drop Function Display.


Truncate Function Display.
Delete Function Display.
Alter Function Display.
Yes, the answer is correct.
Score: 1
Accepted Answers:
Drop Function Display.
1 point
Replace keyword in the Create procedure command is used to

Replace the existing procedure with the current version.


Drop the existing procedure
Create a new procedure
Invoke a procedure
Yes, the answer is correct.
Score: 1
Accepted Answers:
Replace the existing procedure with the current version.
1 point
A Procedure in SQL can have a RETURN statement to

Return a value
Return the control to the calling block
Return the control to another function
Return the control to another procedure
Yes, the answer is correct.
Score: 1
Accepted Answers:
Return the control to the calling block
1 point
When an exception occurs in the executable section

The execution of the current block stops and the program gets terminated.
The execution of the current block stops and control transfers to the next procedure
The execution of the current block stops and control transfers to the exception-handling section.
The execution of the current block stops and control transfers to the beginning of the program.
Yes, the answer is correct.
Score: 1
Accepted Answers:
The execution of the current block stops and control transfers to the exception-handling section.
1 point
NO_DATA_FOUND is an example for

User-defined exceptions
Predefined exceptions
User-defined Trigger
Predefined Trigger
Yes, the answer is correct.
Score: 1
Accepted Answers:
Predefined exceptions
1 point
A user-defined exception can be raised explicitly using

RAISE statement
CREATE statement
SHOW statement
DISPLAY statement
Yes, the answer is correct.
Score: 1
Accepted Answers:
RAISE statement
1 point
The set of rows the cursor holds is referred as

Active set
Passive set
Sorted set
Collection
Yes, the answer is correct.
Score: 1
Accepted Answers:
Active set
1 point
PL/SQL has two types of cursors named

Implicit cursors and Predefined cursors.


Explicit cursors and User defined cursors.
Implicit cursors and Explicit cursors.
Passive cursors and Active cursors.
Yes, the answer is correct.
Score: 1
Accepted Answers:
Implicit cursors and Explicit cursors.
1 point
________________ attribute returns the number of rows affected by DML statements.

%ISOPEN.
%FOUND
%NOTFOUND
%ROWCOUNT
Yes, the answer is correct.
Score: 1
Accepted Answers:
%ROWCOUNT

You might also like