Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

CPS 510 Exam Review Questions with Correct Answers – Database Systems Study Guide – SQL, RA, Normalization, Indexing, Transactions

Rating
-
Sold
-
Pages
35
Grade
A+
Uploaded on
22-01-2026
Written in
2025/2026

Ace your CPS 510 (Database Systems) exam with this comprehensive review guide containing verified questions and detailed answers. Covers all major topics: SQL Essentials (DROP TABLE, UPDATE with subqueries, views, constraints, GROUP BY/HAVING, ALTER TABLE) Relational Algebra & QBE (selection, projection, division, join, QBE operators) Functional Dependencies & Normal Forms (1NF–4NF, BCNF, transitive dependencies, minimal cover) Algorithmic Normalization (Bernstein's algorithm, lossless decomposition, BCNF/3NF trade-offs) Disk & Indexing (RAID, B+ Trees, blocking factor, hashing, dense vs. sparse indexes) Joins & Set Operations (union compatibility, natural join, outer joins, Cartesian product) Transactions (ACID properties, COMMIT, ROLLBACK, serializability) Includes formulas, definitions, and step-by-step explanations. Perfect for last-minute review and concept reinforcement.

Show more Read less
Institution
Course

Content preview

CPS 510 EXAM REVIEW QUESTIONS WITH
CORRECT ANSWERS LATEST UPDATE NEW
MODIFIED


QUESTION 1 - SECTION 1

SQL ESSENTIALS

What is the effect of the `DROP TABLE` command on a table and its data?

Choices:

A) It deletes the data but keeps the table structure.

B) It removes the table definition from the catalog and deletes all rows.

C) It marks the table as archived but retains the data.

D) It deletes the specific rows matching a condition. --CORRECT ANSWER--
Answer: B) It removes the table definition from the catalog and deletes all rows.

[cite_start]Explanation: `DROP TABLE` removes the table structure entirely
from the database schema, along with all data contained within it[cite: 2619].




QUESTION 2 - SECTION 1

A correlated subquery is best described as:

Choices:

A) A subquery that executes once for the entire outer query.


pg. 1

,B) A subquery that runs independently of the outer query.

C) A subquery that references a column from the outer query and executes once
for each row of the outer query.

D) A subquery found only in the `FROM` clause. --CORRECT ANSWER--
Answer: C) A subquery that references a column from the outer query and
executes once for each row of the outer query.

[cite_start]Explanation: A correlated subquery depends on values from the outer
query row currently being processed[cite: 2033].



QUESTION 3 - SECTION 1

When using the `UPDATE` statement with a subquery, which logic correctly
updates the `status` of students to 'Honors' if their GPA is higher than the
average GPA of the 'CS' department?

Choices:

A) `UPDATE Student SET status = 'Honors' WHERE gpa > (SELECT
AVG(gpa) FROM Student WHERE major = 'CS')`

B) `UPDATE Student SET status = 'Honors' WHERE gpa > AVG(gpa) AND
major = 'CS'`

C) `SELECT status = 'Honors' FROM Student WHERE gpa > (SELECT
AVG(gpa) FROM Student)`

D) `UPDATE Student SET status = 'Honors' HAVING gpa > (SELECT
AVG(gpa) FROM Student WHERE major = 'CS')` --CORRECT ANSWER--
Answer: A) `UPDATE Student SET status = 'Honors' WHERE gpa > (SELECT
AVG(gpa) FROM Student WHERE major = 'CS')`



pg. 2

,Explanation: An `UPDATE` statement uses a `WHERE` clause to identify
rows. [cite_start]The condition compares the individual `gpa` against the scalar
result of the subquery calculating the average[cite: 2033].



QUESTION 4 - SECTION 1

Which of the following SQL statements allows you to create a virtual table that
does not store data itself but displays data from base tables?

Choices:

A) CREATE TABLE AS SELECT

B) CREATE VIEW AS SELECT

C) CREATE INDEX AS SELECT

D) ALTER TABLE ADD VIEW --CORRECT ANSWER--Answer: B)
CREATE VIEW AS SELECT

Explanation: A view is a virtual table defined by a query. [cite_start]It does not
store data physically (unless materialized) but presents data derived from base
tables[cite: 2035].



QUESTION 5 - SECTION 1

Which SQL aggregate function ignores NULL values by default?

Choices:

A) `COUNT(*)`

B) `AVG(column_name)`

C) `ISNULL(column_name)`


pg. 3

, D) `COALESCE(column_name)` --CORRECT ANSWER--Answer: B)
`AVG(column_name)`

Explanation: Aggregate functions like `AVG`, `SUM`, and `COUNT(column)`
ignore NULL values in their calculation. [cite_start]`COUNT(*)` counts all
rows regardless of NULLs[cite: 2033].



QUESTION 6 - SECTION 1

When creating a table, which constraint ensures that a column cannot contain
duplicate values?

Choices:

A) `NOT NULL`

B) `FOREIGN KEY`

C) `UNIQUE`

D) `CHECK` --CORRECT ANSWER--Answer: C) `UNIQUE`

Explanation: The `UNIQUE` constraint ensures that all values in a column are
distinct from one another.



QUESTION 7 - SECTION 1

Consider the table `Student(id, name, gpa, major)`. You want to find the number
of students in each major, but only for majors where the average GPA is greater
than 3.0. Which query is correct?

Choices:

A) `SELECT major, COUNT(*) FROM Student WHERE AVG(gpa) > 3.0
GROUP BY major`

pg. 4

Written for

Course

Document information

Uploaded on
January 22, 2026
Number of pages
35
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$24.99
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
TESTBANKNURSEHUB
4.0
(2)

Get to know the seller

Seller avatar
TESTBANKNURSEHUB Chamberlain College Of Nursing
Follow You need to be logged in order to follow users or courses
Sold
7
Member since
7 months
Number of followers
0
Documents
2832
Last sold
1 month ago
your document plug

I offer all types of documents notes, exams and study guide practice exams. Feel free to contact me for any clarification and document prices.

4.0

2 reviews

5
0
4
2
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions