wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Câu hỏi về cơ sở dữ liệu

Total questions: 139

Worksheet time: 1hrs 12mins

Name
Class
Date
1.

What is a database?

a)

A program consisting of many commands

b)

A matrix

c)

A relationship

d)

A structured set of data stored in a computer

2.

Which statement is correct about the components of a database system?

a)

Data, hardware

b)

Data, hardware, software, and users

c)

Data, software

d)

Data, users

3.

What is the significance of tables in a relational data model?

a)

Each table is called a relation/entity type/file

b)

Each table is called a database

c)

Each table is called an object

d)

Each table is called information

4.

What issues does a database need to address?

a)

Ownership, security, and authorization, data disputes, ensuring safety

b)

Ownership, security, and authorization

c)

Ownership, security, and authorization, data disputes

d)

Ownership

5.

What does the image below describe?

a)

Database table

b)

External level

c)

Database architecture

d)

Layered model

6.

Which statement is correct about structured and unstructured databases?

a)

Structured databases have organized and clear relationships between components, while unstructured databases do not have clear structure

b)

Both structured and unstructured databases have organized and clear relationships between components

c)

Both structured and unstructured databases do not have clear structure

d)

Structured databases do not have clear structure, while unstructured databases do

7.

Who is responsible for organizing the content of the database, creating and granting access rights to users, and protecting data safety in case of incidents?

a)

System analyst and designer

b)

Database administrator

c)

Application programmer

d)

End user

8.

Câu 8: Điểm nào sau đây diễn giải đúng về tính dùng chung của cơ sở dữ liệu ?

a)

A. Cơ sở dữ liệu cho phép nhiều người truy cập và sử dụng dữ liệu mà không bị ảnh hưởng đến người khác

b)

B. Cơ sở dữ liệu giảm bớt chi phí bảo trì hệ thống

c)

C. Cơ sở dữ liệu đảm bảo tính nhất quán và toàn vẹn dữ liệu

d)

D. Cơ sở dữ liệu tăng khả năng phát triển các ứng dụng

9.

Which of the following correctly interprets the common use of databases?

a)

Databases allow multiple users to access and use data without being affected by others

b)

Databases reduce system maintenance costs

c)

Databases ensure data consistency and integrity

d)

Databases increase the ability to develop applications

10.

What does the image below illustrate?

a)

Distributed data model

b)

Network data model

c)

Object-oriented data model

d)

Hierarchical data model

11.

What does the image below illustrate?

a)

Network data model

b)

Object-oriented data model

c)

Inferential data model

d)

Distributed data model

12.

Which data model uses graphs to represent data in the form of entities (keys, attributes) and the relationships between them?

a)

Inferential model

b)

Distributed model

c)

Entity-Relationship model

d)

Object-oriented model

13.

Which data model organizes data in a tree structure, with a root node and hierarchical child nodes?

a)

Hierarchical model

b)

Network model

c)

Relational model

d)

Object-oriented model

14.

Which data model is currently the most widely used, with data organized in tables?

a)

Hierarchical model

b)

Network model

c)

Relational model

d)

Distributed model

15.

A company wants to build a centralized data management system while supporting decision-making based on analyzed data. Which data model is the BEST choice for this company?

a)

Hierarchical model

b)

Relational model

c)

Network model

d)

Inferential model

16.

A system needs to manage a massive amount of data distributed across multiple servers in different geographical areas. The most important requirement of the system is to ensure high availability, allowing continuous data access even if some servers fail. Which data model is INDISPENSABLE to meet this requirement?

4 lines
17.

Which data model is NOT ESSENTIAL to meet the system's requirements?

a)

Relational model

b)

Object-oriented model

c)

Distributed model

d)

Entity-Relationship model

18.

In which field is the database primarily applied?

a)

Information system management in government agencies

b)

Scientific research

c)

Information processing in enterprises

d)

All of the above

19.

What does the image below describe?

a)

Layered architecture

b)

Hierarchical data model

c)

Network data model

d)

Database management system architecture

20.

When a student accesses the credit registration page to view the schedule, which level in the database architecture does it belong to?

a)

Logical level

b)

External or view level

c)

Physical level

d)

Data analysis level

21.

What does the image below illustrate?

a)

Hierarchical data model

b)

Relational data model

c)

Network data model

d)

Deductive data model

22.

What does the image below describe?

a)

Hierarchical data model

b)

Network data model

c)

Relational data model

d)

Distributed data model

23.

An application needs to manage information about courses, instructors, and students. Each course can have multiple instructors, and each instructor can teach multiple courses. Each student can participate in multiple courses, and each course can have multiple students participating. Which data model is MOST SUITABLE for designing the database for this application?

a)

Hierarchical model

b)

Relational model

c)

Network model

d)

Distributed model

24.

Which statement is correct about the database system?

a)

It is an architecture consisting of multiple layers

b)

It is a multi-layered model

c)

It focuses on creating, maintaining, and using databases

d)

It consists of multiple information cycles

25.

Which component is in the entity-relationship model?

a)

Object

b)

Key

c)

Entity

26.

What is a component in the entity-relationship model?

a)

Object

b)

Key

c)

Entity, attribute, key

d)

Attribute

27.

Which component does Microsoft SQL Server belong to in the database system?

a)

Data

b)

Software

c)

Hardware

d)

User

28.

Which is a database management system?

a)

Packet Tracker

b)

StarUML

c)

Microsoft Word

d)

Microsoft SQL Server 2022

29.

Which data model integrates data storage capabilities with reasoning capabilities to support decision making?

a)

Hierarchical model

b)

Relational model

c)

Object-oriented model

d)

Deductive model

30.

Sales staff access the database to view invoice information and check inventory, so which object do they belong to?

a)

System analyst

b)

Database administrator

c)

Application programmer

d)

End user

31.

What is the English name of the Database Management System?

a)

Random Access Memory

b)

HyperText Markup Language

c)

Database management system

d)

Read-only Memory

32.

Which of the following correctly interprets the shared use of a database?

a)

The database allows multiple users to access and use data without being affected by others

b)

The database reduces system maintenance costs

c)

The database ensures data consistency and integrity

d)

The database increases the ability to develop applications

33.

What does the image below describe?

a)

Relational data model

b)

Distributed data model

c)

Hierarchical data model

d)

Network data model

34.

In a table, each attribute corresponds to which case below?

a)

A data table

b)

A data column

c)

A data row

d)

A data set

35.

The domain of the attribute 'date of birth' usually includes:

a)

Integers

b)

Character strings

c)

Real numbers

d)

Date values

36.

What is the range of the attribute 'date of birth'?

a)

Integers

b)

Character strings

c)

Real numbers

d)

Date values

37.

What is the range of the attribute 'gender' in a dataset?

a)

Male

b)

Female

c)

Male, female

d)

Character strings

38.

How many keys can a relation have?

a)

0

b)

1

c)

2

d)

Many

39.

Given the relation Student(MaSV, TenSV, NgaySinh, Gioitinh, QueQuan). What is the key of the relation?

a)

MaSV

b)

TenSV

c)

NgaySinh

d)

Gioitinh

40.

What is the representation of the subtraction operation?

a)

R - S = { t | t ∈ R and t ∈ S}

b)

R - S = { t | t ∈ R and t ∉ S}

c)

R - S = { t | t ∈ R or t ∈ S}

d)

R - S = { t | t has the form (a1, a2, …, an, b1, b2, …, bm) where {a1, a2, …, an} ∈ R; {b1, b2, …, bm} ∈ S }

41.

Given two relations R and S as follows: R A B C a1 a1 b1 b2 c1 c2 S A B C a1 a2 b2 c2 c2. What is the result of R ∩ S?

a)

R ∩ S = A B C a1 a1 a2 b1 b2 b2 c1 c2 c2

b)

R ∩ S = A B C a1 b2 c2

c)

R ∩ S = A B C a1 a2 b1 b2 c1 c2

d)

R ∩ S = A B C a2 b2 c2

42.

Given two relations R and S as follows: R A B C a1 a2 b1 b2 c1 c2 S D E F d1 d2 e1 e2 f1 f2. What is the result of the Cartesian product R x S?

a)

R x S = A B C D E F a1 a2 b1 b2 c1 c2 d1 d2 e1 e2 f1 f2

b)

R x S = A B C D E F a1 a2 a2 b1 b2 b2 c1 c1 c2 d1 d2 d1 e1 e2 e1 f1 f2 f1

c)

R x S = A B C D E F a1 a1 a2 a2 b1 b1 b2 b2 c1 c1 c2 c2 d1 d2 d2 d2 e1 e2 e2 e2 f1 f2 f2 f2

d)

R x S = A B C D E F a1 a1 a2 a2 b1 b1 b2 b2 c1 c1 c2 c2 d1 d2 d1 d2 e1 e2 e1 e2 f1 f2 f1 f2

43.

Given two relations R and S as follows: R A B C a2 a1 a3 b2 b2 b3 c2 c2 c3 S A B C a1 a2 a1 b2 b2 b2 c2 c2 c1. What is the result of R - S?

a)

R - S = A B C a1 a1 a2 b1 b2 b2 c1 c2 c2

b)

R - S = A B C a1 b2 c2

c)

R - S = A B C a3 b3 c3

d)

R - S = A B C a2 b2 c2

44.

What is the representation of the projection operation?

a)

Πx R={ t | t ∈ R }

b)

Πx R={ t | t ∈ R and t (F) = True }

c)

Πx R={ t u,v | u ∈ R; v ∈ S and satisfies the selection expression F }

d)

Πx R={t.M with

45.

What is the representation of projection?

a)

Пx R=t X t ∈R }

b)

Пx R={ t / t ∈ R and t (F) = True }

c)

Пx R={ t u,v / u ∈ R; v ∈ S and satisfies the expression select F }

d)

Пx R={t.M with t∈R, t.M x S ⊆ R and M = U - V }

46.

What is the representation of division?

a)

R ÷ S =t X t ∈R }

b)

R ÷ S ={ t / t ∈ R and t (F) = True }

c)

R ÷ S ={ t u,v / u ∈ R; v ∈ S and satisfies the expression select F }

d)

R ÷ S ={t.M with t∈R, t.M x S ⊆ R and M = U - V }

47.

What is the projection on the attribute set X of relation R?

a)

Пx R= A B a1 a2 a1 b1 b2 b2

b)

Пx R= B C b1 b2 b2 c1 c2 c1

c)

Пx R= A B C a1 a2 a1 b1 b2 b2 c1 c2 c1

d)

Пx R= A B C a1 a2 b1 b2 c1 c2

48.

What is the result of the division of R and S?

a)

R ÷ S = A B a c b d

b)

R ÷ S = A B a b c b c d

c)

R ÷ S = A B a b

d)

R ÷ S = A B c d

49.

Write the relational algebra expression to find the list of items with yellow color.

a)

ПMauSac="Vàng" (HANGHOA)

b)

ПMaCongTy(σMaHang="H1CUNGCAP)

c)

σMauSac="Vàng" (HANGHOA)

d)

ПMaCongTy(σMaHang="H1CUNGCAP∗CONGTY)

50.

Write the relational algebra expression to find the names of companies supplying the item with code H2.

a)

ПMauSac="Vàng" (HANGHOA)

b)

ПMaCongTy(σMaHang="H2CUNGCAP)

c)

σMauSac="Vàng" (HANGHOA)

d)

ПTenCongTy ∗ MaCongTy(σMaHang="H2CUNGCAP∗CONGTY)

51.

What is the relationship R defined on the attribute set U?

a)

R(U) ⊃ DOM(A1) x DOM(A2) x … x DOM(An)

b)

R(U) = DOM(A1) ∩ DOM(A2) ∩ … ∩ DOM(An)

c)

R(U) = DOM(A1) ∪ DOM(A2) ∪ … ∪ DOM(An)

d)

R(U) ⊆ DOM(A1) x DOM(A2) x … x DOM(An)

52.

What is the range of the attribute 'Score' on a 4-point scale?

a)

Integers from 0 to 10

b)

Real numbers from 0 to 10

c)

A, B, C, D

d)

A, B, C, D, F

53.

What is the representation of the Cartesian product?

a)

R x S = { t | t ∈ R and t ∈ S}

b)

R x S = { t | t ∈ R and t ∉ S}

c)

R x S = { t | t ∈ R or t ∈ S}

d)

R x S = { t | t has the form (a1, a2, …, an, b1, b2, …, bm) where {a1, a2, …, an} ∈ R; {b1, b2, …, bm} ∈ S }

54.

What is the result of R1 ∪ R2?

a)

R1 ∪ R2 MASV MAMH DIEMTHI 1 CSDL 5.0 2 CTDL 6.0 3 Anh1 8.0 3 TTNT 5.0

b)

R1 ∪ R2 MASV MAMH DIEMTHI 1 CSDL 5.0 2 CTDL 6.0

c)

R1 ∪ R2 MASV MAMH DIEMTHI 3 TTNT 5.0 3 Anh1 8.0

d)

R1 ∪ R2 MASV MAMH DIEMTHI 1 CSDL 5.0 3 TTNT 5.0 3 Anh1 8.0

55.

What is the result of R - S?

a)

R - S = A B C a1 a1 a2 b1 b2 b2 c1 c2 c2

b)

R - S = A B C a1 b2 c2

c)

R - S = A B C a1 b1 c1

d)

R - S = A B C a2 b2 c2

56.

What is the representation of the selection operation?

a)

σF R=t X t ∈R }

b)

σF R={ t / t ∈ R and t (F) = True }

c)

σF R={ t u,v / u ∈ R; v ∈ S and satisfies selection expression F }

d)

σF R={t.M where t∈R, t.M x S ⊆ R and M = U - V }

57.

Given two relations R and S as follows: R A B C a1 a2 a3 b1 b2 b3 1 2 3 S C D 2 3 d1 d2 What is the result of the natural join between R and S?

a)

R * S = A B C D a1 a2 b1 b3 1 2 d1 d2

b)

R * S = A B C D a1 a2 a3 b1 b3 b3 1 2 3 d2 d2 d2

c)

R * S = A B C D a1 a2 b1 b2 1 2 d1 d2

d)

R * S = A B C D a2 a3 b2 b3 2 3 d1 d2

58.

What is the representation of the intersection?

a)

R ∩ S = { t | t ∈ R and t ∈ S}

b)

R ∩ S = { t | t ∈ R and t ∉ S}

c)

R ∩ S = { t | t ∈ R or t ∈ S}

d)

R ∩ S = { t | t has the form (a1, a2, …, an, b1, b2, …, bm) where {a1, a2, …, an} ∈ R; {b1, b2, …, bm} ∈ S }

59.

Given two relations R and S as follows: R A B C a1 a1 a2 2 3 4 4 5 6 S A B C a1 a2 a3 3 4 1 6 6 7 What is the result of R ∪ S?

a)

R ∪ S = A B C a1 a1 2 3 4 5

b)

R ∪ S = A B C a1 a1 a2 a1 a3 2 3 4 3 1 4 5 6 6 7

c)

R ∪ S = A B C a2 4 6

d)

R ∪ S = A B C a1 a1 a2 a1 a3 2 3 4 3 1 4 5 6 6 7

60.

Given relation R and attribute set X (with X = BC) R A B C a1 a2 a3 b1 b2 b3 c1 c2 c3 With the selection expression F:B = "b2", what is σF(R)?

a)

σF(R) = A B C a2 b2 c2

b)

σF(R) = A B C a1 b5 c1

c)

σF(R) = A B C a3 b3 c3

d)

σF(R) = A B C a1 b1 c1

61.

Given relation R and attribute set X (with X = A) R A B C a1 a2 a1 b1 b2 b2 c1 c2 c1 What is the projection on attribute set X of relation R?

a)

Πx R= A B a1 a2 a1 b1 b2 b2

b)

Πx R= B C b1 b2 b2 c1 c2 c1

c)

Πx R= A B C a1 a2 a1 b1 b2 b2 c1 c2 c1

d)

Πx R= A a1 a2

62.

Two relations R = {A1, A2, …, An} and S = {A'1, A'2, …, A'n} are called compatible relations if they satisfy

a)

DOM(Ai) ⊃ DOM(A'i), for i = 1, …, n

b)

DOM(Ai) ⊂ DOM(A'i), for i = 1, …, n

c)

DOM(Ai) ≠ DOM(A'i), for i = 1, …, n

d)

DOM(Ai) = DOM(A'i), for i = 1, …, n

63.

What is the representation of the union?

a)

R ∪ S = { t | t ∈ R and t ∈ S}

b)

R ∪ S = { t | t ∈ R and t ∉ S}

c)

R ∪ S = { t | t ∈ R or t ∈ S}

d)

R ∪ S = { t | t

64.

What is the representation of the union operation?

a)

R ∪ S = { t | t ∈ R and t ∈ S}

b)

R ∪ S = { t | t ∈ R and t ∉ S}

c)

R ∪ S = { t | t ∈ R or t ∈ S}

d)

R ∪ S = { t | t has the form (a1, a2, …, an, b1, b2, …, bm) where {a1, a2, …, an} ∈ R; {b1, b2, …, bm} ∈ S }

65.

Given two relations R and S with the following forms: R and S, what is the result of R ∪ S?

a)

R ∪ S = A B C a2 b2 c2

b)

R ∪ S = A B C a1 b2 c2

c)

R ∪ S = A B C a1 a2 b1 b2 c1 c2

d)

R ∪ S = A B C a1 a1 a2 b1 b2 b2 c1 c2 c2

66.

Write a relational algebra expression to find the names of companies supplying the item with code H2.

a)

ΠMauSac='Vàng' (HANGHOA)

b)

ΠMaCongTy(σMaHang='H2' CUNGCAP)

c)

σMauSac='Vàng' (HANGHOA)

d)

ΠTenCongTy * MaCongTy(σMaHang='H2' CUNGCAP * CONGTY) MaCongTy

67.

What steps are included in the database design process?

a)

Logical design, physical design

b)

Requirements analysis, conceptual design, logical design, physical design

c)

Requirements analysis, logical design

d)

Physical design, requirements analysis

68.

What step is called conceptual design?

a)

Creating a conceptual schema for the database

b)

Collecting data requirements

c)

Physical design

d)

Implementing the database

69.

In the step of collecting and analyzing requirements, what does the database designer usually do?

a)

Write source code for the database

b)

Meet and interview users of the database

c)

Design the internal structure of the database

d)

Create access paths and organize the database files

70.

When all requirements have been collected and analyzed, what is the next step?

a)

Create a logical schema

b)

Create a physical schema

c)

Create a conceptual schema

d)

Map the data model

71.

What is the step to convert the conceptual schema from a high-level data model to an executable data model?

a)

Design logical schema

b)

Design physical level

c)

Design physical level

d)

Map data model

72.

What is a collection of entities with the same attributes called?

a)

Link type

b)

Attribute set

c)

Entity type

d)

Link set

73.

At which level is the entity-relationship model used to design the database?

a)

Analysis

b)

Conceptual

c)

Logical

d)

Physical

74.

In an information management system about employees and departments, if each employee only works for one department, what is the degree of the relationship between EMPLOYEE and DEPARTMENT?

a)

Degree 1

b)

Degree 2

c)

Degree 3

d)

Degree 4

75.

In a company, the entity type EMPLOYEE can be divided into smaller groups such as SECRETARY, ENGINEER, and TECHNICIAN. What are these groups called?

a)

Parent class

b)

Child class

c)

Strong entity type

d)

Weak entity type

76.

When generalizing the entity types FAMILYCAR and TAXI into CAR, what does this mean?

a)

FAMILYCAR and TAXI will lose their individual attributes

b)

CAR will have the common attributes of both FAMILYCAR and TAXI

c)

FAMILYCAR and TAXI no longer exist

d)

CAR will not inherit any attributes from FAMILYCAR and TAXI

77.

When converting a strong entity, if there are complex attributes, we only need to:

a)

Keep the complex attribute

b)

Ignore complex attributes

c)

Take its simple component attributes

d)

Only take key attributes

78.

When converting the strong entity PRODUCT (ProductID, ProductName, Price, Color) to a relational model, which relation will we get?

a)

PRODUCT (ProductID, ProductName, Color)

b)

PRODUCT (ProductID, ProductName, Price, Color)

c)

PRODUCT (ProductName, Price, Color)

d)

PRODUCT (ProductID, Price)

79.

For the ERD with entity types TEACHER (TeacherID, TeacherName) and CLASS (ClassID, ClassName), with n - n relationship TEACH. Which relational model is correct for converting the TEACH relationship?

a)

Add TeacherID to CLASS

b)

Add ClassID to TEACHER

c)

Create relation TEACH (TeacherID, ClassID)

d)

Create relation TEACH (TeacherID, ClassID, TeacherName)

80.

Which relationship model is correct?

a)

Add MaGV to LOPHOC

b)

Add MaLH to GIANGVIEN

c)

Create relationship DAY (MaGV, MaLH)

d)

Create relationship DAY (MaGV, MaLH, TenGV)

81.

What is the high-level conceptual data model used for?

a)

To describe the technical details of the database

b)

To communicate and confirm requirements with users

c)

To define constraints and entity types

d)

To optimize access paths

82.

When converting weak entities, how will the primary key attributes of the parent entity type be included in relationship R?

a)

As non-key attributes

b)

As the primary key of R

c)

As foreign keys of R

d)

Must be included in R

83.

What is an entity?

a)

A characteristic of an object

b)

An object or thing in the real world

c)

A method of data storage

d)

A relationship between entities

84.

In database design, which step must indicate internal structures, access paths, and file organization for database files?

a)

Logical schema design

b)

Physical design

c)

Conceptual design

d)

Data model mapping

85.

What is the final result in the requirement gathering and analysis step?

a)

Conceptual schema

b)

Execution schema

c)

Set of user requirements

d)

Data model

86.

What is the attribute whose value is used to distinguish entities from each other called?

a)

Foreign key attribute

b)

Key attribute

c)

Derived attribute

d)

Complex attribute

87.

Given the diagram as shown. When converting the QUANLY link to the relational model, which relationship is correct?

a)

A. NHANVIEN (MaNV, NgaySinh, GioiTinh, Ten, DiaChi, MaDV)

b)

B. NHANVIEN (MaNV, NgaySinh, GioiTinh, Ho, Ten, DiaChi, MaDV)

c)

C. DONVI (MaDV, TenDV, DiaDiem, MaNV, NgayBatDau)

d)

D. NHANVIEN (MaNV, NgaySinh, GioiTinh, Ten, DiaChi, MaDV)

88.

Which of the following ER diagram representations is correct?

a)

A.

b)

B.

c)

C.

d)

D.

89.

Which representation of the relationship is correct?

a)

A.

b)

B.

c)

C.

d)

D.

90.

What is the level of the relationship between NHANVIEN, PHONGBAN, and DUAN?

a)

Level 3

b)

Level 4

c)

Level 2

d)

Level 1

91.

What is SoGio in the relationship THAMGIA (MaNV, MaDa, SoGio)?

a)

Primary key of NHANVIEN

b)

Primary key of DUAN

c)

Attribute of THAMGIA

d)

Attribute of NHANVIEN

92.

In the process of transformation, if the strong entity has a complex attribute 'DiaChi' with components 'SoNha', 'Duong', 'ThanhPho', what attributes will the relationship R have?

a)

'DiaChi', 'SoNha'

b)

'SoNha', 'Duong', 'ThanhPho'

c)

'SoNha', 'DiaChi'

d)

'DiaChi'

93.

In the ER model, entities are represented by what shape?

a)

Circle

b)

Rectangle

c)

Ellipse

d)

Diamond

94.

Why is the attribute MaNV2 added to the relationship CON (Ten, NgaySinh, GioiTinh, MaNV, MaNV2)?

a)

Because MaNV2 is a complex attribute of the weak entity

b)

Because MaNV2 is a foreign key referencing NHANVIEN and can be null

c)

Because MaNV2 is the primary key of the strong entity

d)

Because CON can have multiple primary key attributes.

95.

Which representation of the entity type and its attributes is correct?

a)

A.

b)

B.

c)

C.

d)

D.

96.

In the definition of functional dependency, if X → Y, what is true?

a)

Y does not depend functionally on X

b)

X and Y have the same value in all tuples of R

c)

X and Y are always the same

d)

X functionally determines Y

97.

For the relation R(U) with U = {ABCD}, if A → BC and C → D, what is the result applying the accumulation axiom?

a)

B → ACD

b)

A → BCD

c)

C → ABD

d)

ABC → D

98.

When we say Y is fully functionally dependent on X, what does this mean?

a)

Only part of X is needed to determine Y

b)

X cannot uniquely determine Y

c)

Y cannot uniquely determine X

d)

All attributes in X are necessary to determine Y

99.

Which of the following functional dependencies is fully functional?

a)

Student ID, Course ID -> Course Name, Credits

b)

Student ID, Course ID -> Exam Score

c)

Student ID, Class ID -> Student Name

d)

Student ID, Course ID -> Student Name

100.

What is the growth axiom in Armstrong's axioms?

a)

If Y ⊆ X then X → Y

b)

If X ⊆ Y then X → Y

c)

If X → Y and Z ∈ U then XZ → YZ

d)

If X → Y and Y → Z then X → Z

101.

For the relation R(U) with U = {A -> B}, which axiom is applied to prove AC -> BC?

a)

Transitive axiom

b)

Accumulation axiom

c)

Growth axiom

102.

Given relation R(U) with U = {A -> B}. Which axiom can be applied to prove AC -> BC?

a)

Transitive Axiom

b)

Augmentation Axiom

c)

Union Axiom

d)

Reflexive Axiom

103.

Given functional dependencies X -> Y, X -> Z. To prove X -> YZ, which axioms in Armstrong's axioms should be applied?

a)

Reflexive and Growth

b)

Growth and Transitive

c)

Reflexive and Transitive

d)

Augmentation

104.

Given functional dependencies X -> Y, WY -> Z. To prove WX -> Z, which axioms in Armstrong's axioms should be applied?

a)

Reflexive and Growth

b)

Growth and Transitive

c)

Reflexive and Transitive

d)

Augmentation

105.

Given r(U,F) with U = {ABCDE}; F = {AB -> C, DE -> B, C -> ABD, CD -> E}. Find the closure of the attribute set {BC}.

a)

{BC}+ = {ABCDE}

b)

{BC}+ = {AB}

c)

{BC}+ = {CDE}

d)

{BC}+ = {CABD}

106.

Given r(U,F) with U={ABCDE}, F={AB→C, DE→B, C→ABD, CD→E}. Find the closure of the attribute set (CD)?

a)

{CD}+ = {ABCDE}

b)

{CD}+ = {ABD}

c)

{CD}+ = {CDE}

d)

{CD}+ = {AB}

107.

Given r(U,F) with U = {ADIKL}; F = {K -> IL, A -> K, AK -> LD}. Find the closure of the attribute set {K}.

a)

{K}+ = {IL}

b)

{K}+ = {ADKL}

c)

{K}+ = {KIL}

d)

{K}+ = {K}

108.

Given r(U,F) with U = {ADIKL}; F = {K -> IL, A -> K, AK -> LD}. Find the closure of the attribute set {L}.

a)

{L}+ = ∅

b)

{L}+ = {LD}

c)

{L}+ = {L}

d)

{L}+ = {IL}

109.

What condition must a primary key in a table satisfy?

a)

Can contain duplicate values

b)

Can have NULL values

c)

Must be a foreign key

d)

Must have unique values and cannot be NULL

110.

Given r(U,F) with U = {ABCD}; F = {A -> B, B -> C, D -> A}. What is the minimal key of this relation schema?

a)

{ABD}

b)

{CD}

c)

{D}

d)

{AB}

111.

Given r(U,F) with U = {ABCDE}; F = {C -> AB, D -> C, CD -> EA}. What is the minimal key of this relation schema?

a)

{C}

b)

{AC}

c)

{AD}

d)

{D}

112.

Given r(U,F) with U = {ABCDE}; F = {C -> AB, D -> C, CD -> EA}. In the algorithm to find all keys for r(U,F), which attribute set is the source set?

a)

{CD}

b)

{AC}

c)

{D}

d)

{C}

113.

What is the source set for the relation r(U,F) with U = {ABCDE}; F = {AC -> D, A -> CB, AB -> ED}?

a)

{CD}

b)

{AC}

c)

{D}

d)

{C}

114.

In the algorithm to find all keys for r(U,F), what is the intermediate attribute set for r(U,F) with U = {ABCDE}; F = {AC -> D, A -> CB, AB -> ED}?

a)

{AB}

b)

{BC}

c)

{ED}

d)

{CD}

115.

What does the functional dependency f: X -> Y on relation R(U) mean?

a)

Y determines X

b)

X determines Y

c)

Y is unrelated to X

d)

X and Y have no relation

116.

Which of the following is a full functional dependency?

a)

Student ID, Course ID → Course Name, Credits

b)

Student ID, Class ID → Student Name

c)

Student ID, Course ID → Exam Score

d)

Student ID, Course ID → Student Name

117.

What is the correct statement of the reflexive axiom in Armstrong's axioms?

a)

If X ⸦ Y then X → Y

b)

If X → Y and Z ∈ U then XZ → YZ

c)

If Y ⸦ X then X → Y

d)

If X → Y and Y → Z then X → Z

118.

For relation R(U) with U = {ABC} and F = {A → B}, which axiom is applied to prove AC → BC?

a)

Reflexive axiom

b)

Union axiom

c)

Augmentation axiom

d)

Transitive axiom

119.

For r(U,F) with U = {ADIKL}; F = {K -> IL, A -> K, AK -> LD}. Find the closure of the attribute set {A}.

a)

{A}+ = {ADKL}

b)

{A}+ = {AK}

c)

{A}+ = {ADIKL}

d)

{A}+ = {K}

120.

For r(U,F) with U = {ABCDE}; F = {BC -> CE, B -> A, AB -> ED}. What is the minimal key of this relation schema?

a)

{AB}

b)

{BC}

c)

{B}

d)

{AC}

121.

For r(U,F) with U = {ABCD}; F = {A-> B, B -> C, CD -> A}. What is the minimal key of this relation schema?

a)

{AD}

b)

{B}

c)

{A}

d)

{CD}

122.

For R(U), with U={ADIKL} and F={K→IL, A→K, AK→LD}. Find the closure of the attribute set {AD}?

a)

{AD}+ = {ADK}

b)

{AD}+ = {ADKL}

c)

{AD}+ = {ADIKL}

d)

{AD}+ = {IKL}

123.

For r(U,F) with U = {ABCDE}; F = {AB -> C, DE -> B, C -> ABD, CD -> E}. Find the closure of the attribute set {AB}.

a)

{AB}+ = {AB}

b)

{AB}+ = {CABD}

c)

{AB}+ = {ABCDE}

d)

{AB}+ = {ABC}

124.

Find the closure of the attribute set {AB}

a)

{AB}

b)

{CABD}

c)

{ABCDE}

d)

{ABC}

125.

Given r(U,F) with U = {ABCD}; F = {A-> B, B -> C, A -> D}. Which dependency can be inferred from F?

a)

B -> D

b)

C -> BD

c)

A -> C

d)

A -> B

126.

Assuming there are two functional dependency sets F and G defined on the attribute set U. F and G are considered equivalent if:

a)

F and G have the same number of functional dependencies

b)

F and G have the same attribute set

c)

F+ = G+

d)

F is a redundant cover of G

127.

When is a functional dependency in set F considered redundant?

a)

When that functional dependency cannot be removed from set F while preserving the meaning of F

b)

When F removes that functional dependency while still being equivalent to F itself

c)

When the right side of the functional dependency contains more than one attribute

d)

When the left side of the functional dependency does not include all attributes of the attribute set U

128.

What question does the membership problem pose?

a)

Determine whether the functional dependency set F is empty or not

b)

Check whether a functional dependency X → Y belongs to F+

c)

Determine whether an attribute set U contains a certain attribute

d)

Check whether a functional dependency set F is equivalent to G or not

129.

When F is a cover of G, what does this mean?

a)

F has more functional dependencies than G

b)

F+ and G+ are equivalent

c)

F is a subset of G

d)

G does not contain any functional dependencies that are in F

130.

In what case can a functional dependency set G not be considered a cover of F?

a)

When G+ is not equivalent to F+

b)

When G has the same number of functional dependencies as F

c)

When G has fewer functional dependencies than F

d)

When G and F contain the same functional dependencies

131.

In the process of reducing the functional dependency set F to a minimal cover, if a functional dependency X → A is removed, what does this mean?

a)

F+ does not change when X → A is removed

b)

F+ changes when X → A is removed

c)

X → A is an important functional dependency in F

d)

X → A cannot be removed

132.

What does it mean when the functional dependency X → A is removed?

a)

F+ does not change when X → A is removed

b)

F+ changes when X → A is removed

c)

X → A is an important functional dependency in F

d)

X → A cannot be removed from F

133.

Given the set of functional dependencies F={A→B, B→C, A→C}. What should be done for F to be minimal?

a)

Remove the functional dependency B→C from F

b)

Remove the functional dependency A→C from F

c)

Add the functional dependency AB→C to F

d)

Keep the set F as it is

134.

Given the set of functional dependencies F={A→B, AB→C, B→D}. What should be done for F to become minimal?

a)

Remove the functional dependency AB→C

b)

Add the functional dependency A→D to F

c)

Remove the redundant attribute B on the left side of the functional dependency AB→C

d)

Keep the set F as it is

135.

In the set of functional dependencies F = { DE→A, A→B, AB→C, BD→B, BD→C}. Which functional dependency is redundant?

a)

BD→B

b)

A→B

c)

BD→C

d)

AB→C

136.

In the set of functional dependencies F = { AD→B, B→E, AE→C, AE→E, BE→C }. Which functional dependency is redundant?

a)

AE→C

b)

BE→C

c)

AE→E

d)

There are no redundant functional dependencies

137.

Given the relation DIEMTHI{MaSinhVien, MaMon, Diem} and F={ MaSinhVien, MaMon → Diem}. What is the highest normal form of the relation DIEMTHI?

a)

1NF

b)

2NF

c)

BCNF

d)

Does not meet any normal form

138.

Given the schema r(U,F) with U={ABCDEL}; F={ AD→B, B→E, AE→CE, BE→C}. Normalize r(U,F) to 3NF, what sub-schemas will be obtained?

a)

r1(ADB), r2(BEC), r3(AEC)

b)

r1(ADL), r2(ADB), r3(BEC), r4(AEC)

c)

r1(ADL), r2(BE), r3(AEC), r4(BEC)

d)

r1(ADL), r2(ADB), r3(BE), r4(AEC), r5(BEC)

139.

Given the schema r(U,F) with U={ABCDEL}; F={ED→C, C→B, BE→AB, BC→A}. Normalize r(U,F) to 3NF, what sub-schemas will be obtained?

a)

r1(ACB), r2(BDE), r3(CDE)

b)

r1(DEL), r2(EDC), r3(CBA), r4(BEA)

c)

r1(DEL), r2(EDC