Cơ sở dữ liệu - 932

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

UNIVERSITY OF ECONOMICS AND LAW FINAL EXAMINATION

FACULTY OF INFORMATION SYSTEMS 1st SEMESTER


ACADEMIC YEAR 2023 - 2024
CODE 932
SUBJECT: DATABASE
(Not allowed to use reference materials) Duration: 60 minutes
Student’s full name: ............................................................................... Student’s code: .........................
Signature of Proctor 1 Signature of Proctor 2
A

Mark Signature of Examiner 1 Re-mark Signature of Examiner 2

ANSWER SHEET

A B C D A B C D
1     11    
2     12    
3     13    
4     14    
5     15    
6     16    
7     17    
8     18    
9     19    
10     20    

PART I. MULTIPLE CHOICE QUESTIONS (4 marks)


Question 1: All of the following are properties of metadata EXCEPT

A. data definitions B. processing logic


C. rules or constraints D. data structure
Question 2: The SDLC phase in which the detailed conceptual data model is created is the
________ phase.
A. planning B. analysis
C. design D. implementation
Question 3: The following diagram expresses a_________?

A. Identifying relationship B. Ternary relationship


C. Supertype/subtype relationship D. Unary relationship
1
The below figure is used for Question 4:

Question 4: Which of the following is false?


A. Samples is a multivalued attribute B. A contracted artist cannot be a prospective
artist simultaneously
C. There are two types of artist D. Artist type is a subtype discriminator
Question 5: A student can attend 10 classes, each with a different professor. Each professor has 55
students. The relationship of students to professors is a ________ relationship.
A. one-to-one B. one-to-many
C. dependent D. many-to-many
Question 6: When choosing an identifier:
A. choose one that will not change its value B. choose one that has large composite
often attributes
C. choose the most complex identifier possible D. choose one that is not stable
Question 7: Subtypes should be used when:
A. supertypes relate to objects outside the B. there are attributes that apply to some but not
business. all instances of an entity type.
C. the instances of a subtype do not participate D. a recursive relationship is needed
in a relationship that is unique to that
subtype.
Question 8: The attribute on the left-hand side of the arrow in a functional dependency is the:
A. candidate key B. determinant
C. foreign key D. primary key
Question 9: A relation that contains minimal redundancy and allows easy use is considered to be:
A. Well-structured B. Clean
C. Simple D. Complex
Question 10: A domain definition consists of all of the following components EXCEPT:
A. domain name. B. data type.
C. integrity constraints. D. size.
Question 11: ________ partitioning distributes the columns of a table into several separate physical
records.
A. Horizontal B. Vertical
C. Crossways D. Final
Question 12: ________ partitioning distributes the rows of a table into several separate physical
records.
A. Horizontal B. Crossways
C. Vertical D. Final
Question 13: The first in a series of steps to follow when creating a table is to:
A. identify each attribute and its data types. B. identify columns that must be unique.
C. create an index. D. identify columns that must be null.
Question 14: What does the following SQL statement do?
Update Product_T
Set Unit_Price = 775
Where Product_ID = 7
2
A. Changes the price of a unit called Product_T B. Changes the unit price of Product 7 to 775
to 7
C. Changes the length of the Unit_Price field to D. Updates the Product_T table to have a unit
775 price of 775
Question 15: Establishing IF-THEN-ELSE logical processing within an SQL statement can be
accomplished by:
A. using the CASE keyword in a statement. B. using the if-then-else construct.
C. using the immediate if statement. D. using a subquery.
Question 16: SQL provides the ________ technique, which involves placing an inner query within the
WHERE or HAVING clause of an outer query.
A. subquery B. grouping
C. joining D. union
Question 17: A type of join where a table is joined to itself is called a(n):
A. ternary join. B. self-join.
C. unnatural join. D. pinned join.
Question 18: While triggers run automatically, ________ do not and have to be called.
A. delete B. stored procedure
C. selects D. updates
Question 19: Information is:
A. Stored representations of objects and events B. File description are stored within each
database application program that access a
given file
C. stored representations of meaningful objects D. A capture of the nature of the relationships
and events that could processed to increase among data
the knowledge of the person who uses them
Question 20: The biggest problem of data redundancy is
A. Cost much space B. Non-standard file formats
C. Lack of central control D. Inconsistencies

PART II. ANSWER THE QUESTIONS (6 marks)


Question 21 (3.0 marks): Read the following case study, which describes the data requirements for a
DVD
rental company.
a. The DVD rental company has several branches throughout the United States. The data held on
each branch is the branch address made up of street, city, state, and zip code; and some telephone
numbers. Each branch is given a branch number, which is unique throughout the company.
b. Each branch is allocated staff, which includes a Manager. The Manager is responsible for the day-
to-day running of a given branch and other staff. The data held on a member of staff is his or her
name, position, and salary. Each member of staff is given a staff number, which is unique
throughout the company.
c. Each branch has some stocks of DVDs. The data held on a stock is the catalog number, title,
category, and the names of the main actor and the director. A stock of DVDs is given a category
such as Action, Adult, Children, Drama, Horror, or Sci-Fi. The catalog number uniquely identifies
each stock of DVDs.
d. However, in most cases, there are several copies of each stock of DVDs at a branch, and the
individual copies are identified using the DVD number. The data held on a DVD are also: daily
rental, cost, status. The status indicates whether a specific copy of a DVD is available for rent.
e. Before borrowing a DVD from the company, a customer must first register as a member of a local
branch. The data held on a member is the first and last name, address, and the date that the
member registered at a branch. Each member is given a member number, which is unique
throughout all branches of the company.

3
f. Once registered, a member is free to rent DVDs, up to a maximum of ten at any one time. The
data held on each DVD rented is the rental number, the full name and number of the member, the
DVD number, title, and daily rental, and the dates the DVD is rented out and returned.
Using your answers to parts (a) to (f), attempt to represent the data requirements of the DVD rental
company as a single ER (or EER if needed) diagram. State any assumptions necessary to support
your design.
Question 22 (3.0 marks): Given the following figure

a. Assume all the attributes in the table Treatment are atomic, which form of normalization is the
table?
b. Identify the functional dependencies represented by the figure
c. Perform a normalization of table Treatment into a set of third normal form relations
THE END

Course learning outcomes Content


Understand functional requirements, determine concepts,
Q 8,9,19,1
architecture, and components of database models.
Understand the importance of businesses needing to turn database
Q 20
building solutions into a competitive advantage.
Analyze the current state of the business to propose appropriate Q 5,6
database building solutions
Be able to propose solutions to build databases to improve business
Q 3,4,7
efficiency
Be able to evaluate, compare and select different database models Q 17,11,12
Presents the steps to build a database to serve an information
Q 2,13,10
system
Operate databases for business activities and decision support Q 14,15,16,18
Build a database for an organization/operation in practice Q 21,22

Ho Chi Minh City, 25th December, 2023


Signature of Department Chair Signature of Instructor

Full name____________________________ Full name_____________________________

You might also like