Search Header Logo
module 6

module 6

Assessment

Presentation

Computers

University

Practice Problem

Medium

Created by

Carlos Theran

Used 3+ times

FREE Resource

29 Slides • 27 Questions

1

media

2

media

3

Open Ended

How do primary and foreign keys contribute to the process of database design?

4

Multiple Choice

Why is it important to understand relationships when designing a database?

1

To improve database performance

2

To ensure data integrity and accurate representation

3

To reduce the cost of database software

4

To make databases look visually appealing

5

media

6

Multiple Choice

Which SQL command is used to create a view of data from a relational database?

1

INSERT INTO

2

CREATE VIEW

3

UPDATE VIEW

4

SELECT VIEW

7

media

8

media

9

Multiple Choice

Which of the following attributes are included in the Payroll_View but not in the HR_View?

1

Salary

2

HireDate

3

EmpName

4

DeptName

10

media

11

Fill in the Blanks

12

media

13

Multiple Choice

Which abbreviation is used to identify alternate keys in Database Design Language (DBDL)?

1

PK

2

AK

3

SK

4

FK

14

media

15

Multiple Choice

Based on the entity definitions, which attributes are used as foreign keys in the SECTION entity?

1

CourseID and InstructorID

2

SectionID and Year

3

DeptID and OfficePhone

4

Term and Capacity

16

media

17

Multiple Choice

Which of the following key types in DBDL notation is used to enforce uniqueness but is not the primary key?

1

SK (surrogate key)

2

AK (alternate/unique key)

3

FK (foreign key)

4

CK (check key)

18

media

19

Fill in the Blanks

20

Open Ended

Explain how DBDL notation helps in determining which fields should be indexed in a relational database.

21

media

22

Multiple Choice

Which fields in the book database should NOT be indexed according to the indexing strategy, and why?

1

PublishedYear and CopiesAvailable, because they are rarely used for filtering and are constantly updated

2

Title and Author, because they are common search terms

3

ISBN and Genre, because they are unique and useful for reports

4

BookID and Title, because they are primary keys

23

media

24

media

25

Open Ended

Describe the difference between DBDL notation and E-R diagrams in representing relationships between tables. Use examples from the images to support your answer.

26

media

27

Multiple Choice

In a crow's foot E-R diagram, what does the dash dash symbol represent on the side of the relationship?

1

Zero, one, or many

2

One and only one

3

Primary key

4

Foreign key

28

media

29

Open Ended

Explain how referential integrity is enforced in a one-to-many relationship in Microsoft Access E-R diagrams.

30

Multiple Choice

Which symbols are used in Microsoft Access E-R diagrams to represent the two sides of a one-to-many relationship?

1

1 and infinity

2

1 and zero

3

zero and infinity

4

one and many

31

media

32

Multiple Choice

Which shapes are used in the E-R model (ERM) to represent entities and relationships?

1

Rectangles for entities, diamonds for relationships

2

Circles for entities, squares for relationships

3

Diamonds for entities, rectangles for relationships

4

Triangles for entities, circles for relationships

33

media

34

Fill in the Blanks

Type answer...

35

media

36

media

37

Multiple Select

Select all correct statements about many-to-many relationships in relational databases.

1

They require a composite entity to link tables

2

They can be directly created between two tables

3

A junction table is used in physical implementation

4

The composite entity serves on the 'many' side of one-to-many relationships

38

media

39

Open Ended

Compare how one-to-many and many-to-many relationships are represented in ERM diagrams, using examples from Departments/Employees and Students/Professors.

40

media

41

Multiple Choice

Which of the following best describes a one-to-one relationship in a relational database?

1

A relationship where each record in one table relates to only one record in another table

2

A relationship where each record in one table relates to multiple records in another table

3

A relationship where multiple records in one table relate to multiple records in another table

4

A relationship where tables are temporarily connected for data conversion

42

media

43

media

44

Multiple Select

Which of the following statements are true about many-to-many relationships in relational databases?

1

They require an intermediary table to resolve the relationship

2

They can be directly linked without any intermediary table

3

They can result in a Cartesian join if not properly resolved

4

They are less common than one-to-one relationships

45

media

46

Fill in the Blanks

Type answer...

47

Open Ended

Explain why a junction table is necessary to resolve a many-to-many relationship in a relational database. Use the students and courses example to support your answer.

48

media

49

Multiple Choice

What is the primary purpose of the ENROLLMENTS table in the students and courses database schema?

1

To store student grades

2

To link students to the courses they enroll in

3

To list available courses

4

To record course prerequisites

50

media

51

Open Ended

Describe how foreign keys are used in the ENROLLMENTS table to maintain referential integrity in the students and courses database schema.

52

media

53

media

54

media

55

Multiple Choice

One-to-many relationships in databases are typically implemented using:

1

Primary keys only

2

Foreign keys

3

Unique constraints

4

Indexes

56

Open Ended

Reflecting on today's lesson about database design relationships, what aspect of entity-relationship diagrams do you find most challenging or interesting, and why?

media

Show answer

Auto Play

Slide 1 / 56

SLIDE