DBMS Midterm Exam

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/26

encourage image

There's no tags or description

Looks like no tags are added yet.

27 Terms

1
New cards

Which statement best distinguishes a database from a spreadsheet?

A database can enforce relationships and rules for multiple users.

2
New cards

Which component checks user access, processes requests, enforces rules, and returns results?

DMBS

3
New cards

Which term describes the blueprint or structure of a database?

Schema

4
New cards

In a relational table, a tuple is:

One Row

5
New cards

In a relational table, an attribute is:

A Column

6
New cards

What is the main purpose of a primary key?

Uniquely identify each row

7
New cards

Which rule requires primary key values to be unique and non-null?

Entity integrity

8
New cards

Which rule requires a non-null foreign key to match an existing referenced key

Referential integrity

9
New cards

STUDENT.ProgramID references PROGRAM.ProgramID. STUDENT.ProgramID is a:

Foreign key

10
New cards

Which SQL clause identifies the columns to display?

SELECT

11
New cards

Which SQL clause identifies the source table?

FROM

12
New cards

In the logical processing order of a basic query, which clause is processed first?

FROM

13
New cards

Which condition includes prices of exactly $50 and exactly $100?

Price >= 50 AND Price <= 100

14
New cards

Why are parentheses useful in a condition containing both AND and OR?

They make the intended grouping explicit

15
New cards

What does SELECT DISTINCT do?

Removes duplicate result rows

16
New cards

What does an INNER JOIN return?

Only rows whose join condition matches

17
New cards

In a multi-table query, what is the purpose of the ON clause?

Define how rows from two tables match

18
New cards

Before running an UPDATE or DELETE, which action provides the best immediate safety check?

Run the intended condition as a SELECT

19
New cards

A STUDENT and COURSE_SECTION relationship is many-to-many. Which design resolves it?

Create ENROLLMENT with both identifiers

20
New cards

Why does Grade belong in ENROLLMENT?

Grade is determined by one student taking one section.

21
New cards

Which change is required by First Normal Form?

Place one value in each cell

22
New cards

ENROLLMENT has key (StudentID, CourseID). StudentName depends only on StudentID. What problem exists?

A partial dependency that violates 2NF

23
New cards

T/F: SQL is declarative because users specify the result they want rather than every processing step.

True

24
New cards

T/F: Referential integrity permits a non-null foreign key to reference a primary-key value that does not exist.

False

25
New cards

T/F: A bank that permits joint accounts may require a many-to-many relationship between CUSTOMER and ACCOUNT.

True

26
New cards

T/F: In Third Normal Form, a non-key attribute may depend on another non-key attribute.

False

27
New cards

T/F: Deleting the last enrollment from a poorly designed combined table can accidentally remove the only stored facts about a course.

True