CSE 511 Midterm Exam Questions With
Verified And Updated Answers
Which of the following are the advantages of using a DBMS? - answer✔Data Independence,
Data Security, Concurrency, Data Administration... (Concurrent Access/Crash Recovery, Data
Integration/Security, Reduced App Development Time)
At which level of abstraction is the logical structure defined? - answer✔Conceptual Schema
What does the physical level of schema define? - answer✔files and indexes used
What do views do? - answer✔describe how user sees data (ex: course_info(cid:string,
enrollmen:int))
Which of the following is true with regard to weak entities?
a. Owner entity set and weak entity set can participate in a many-to-many relationship.
b. Owner entity set and weak entity set must participate in a one-to-many relationship.
c. Weak entity must have total participation in the identifying relationship set.
d. Weak entities can exist without the owner entity - answer✔B: Owner set and weaker set
must participate in a one-to-many relationship set(one owner, and many weak entities)
C: Weak entities must have total participation in this identifying relationship set (When the
owner entity is deleted, all owned weak entities must also be deleted.)
Can be identified uniquely only by considering the primary key of another (owner) entity
SQL is a ______________ language - answer✔declarative (tells what data is to be retrieved but
does not tell the system how to retrieve it.
Which query can be used to list the student information for computer science majors [C] who
are not double majors in electrical engineering [E]? - answer✔C-E (difference)
ALL RIGHTS RESERVED.
Which of the following is true when using Heap Files?
a. Heap Files are efficient for loading bulk data.
b. Heap Files are efficient for sorting.
c. Heap Files are not efficient for selective queries.
d. Heap Files are not efficient while working on relatively small relations - answer✔a. Heap Files
are efficient for loading bulk data.
c. Heap Files are not efficient for selective queries.
Heap files are not efficient for sorting and may be time-consuming.
Heap files are efficient while working on relatively small relations as indexing overheads are
avoided.
What is the memory hierarchy? - answer✔Secondary Storage (Hard Disk) -> Computer Main
Mem -> Caches -> Registers
What storage is the fastest? - answer✔Registers
Which component loads pages from hard disk to memory? - answer✔Buffer Manager
stages pages from external storage to main memory buffer pool so DB can process info
(read/write)
File and index layers make calls to the buffer manager
Less memory than disk space so you upload everything into main memory at once with buffer
manager
Which of the following questions should be answered before creating an index?
a. What field(s) should be the search key?
b. Should you build several indexes?
c. Which relations should have indexes?
d. What records(s) should be the search key? - answer✔a. What field(s) should be the search
key?
b. Should you build several indexes?
c. Which relations should have indexes?
2|Page
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller TheStar. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $11.49. You're not tied to anything after your purchase.