



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
A series of true/false questions and short answer exercises related to the first quarter of cmpt 454, covering topics such as database management systems, memory, and hard disk drives. It explores concepts like transactions, acid properties, database schemas, dbms architecture, secondary storage, and disk access mechanisms. The exercises are designed to test understanding of these fundamental database concepts.
Typology: Exams
1 / 7
This page cannot be seen from the preview
Don't miss anything!
T or F: Single queries can either be on one or more tables - Answer T Instead of reading all records in a table and returning all those that match, what can we do? -Answer Use an index
Multiple table queries generally entails _________ - Answer joins What is the time complexity of the naive algorithm of a join? - Answer O(n^2) What is a transaction? - Answer A single logical unit of work Transactions are often composed of multiple ___________. - Answer actions T or F: An OLTP usually is accessed by only one user at a time - Answer False. Multiple usersconcurrently
What is a benefit of concurrent transactions? - Answer 1. Increases throughput (number oftransactions processed over time)
What is a disadvantage of concurrent transactions? - Answer Can leave database in aninconsistent state
What does ACID stand for and what is it? - Answer Atomic, Consistent, Isolated, Durable. Transactions should maintain these properties.
What a system failure occurs, what must happen to a database? - Answer 1. Must recover
Where are schemas defined? - Answer In the database How are schemas created? - Answer Running a CREATE A TABLE statement or using the DBMSGUI
A schema is associated with one or more constraints. Which are they? - Answer 1. Primary key
Disadvantage:
T or F: Main memory is bigger than persistent storage - Answer F. Much smaller thanpersistent storage
Database data must be transferred between ______________ and ______________. - Answer Mainmemory and storage
What does transient memory mean? - Answer Memory that is both persistent and working Where are operations like read, update, write performed? - Answer Main memory What are cylinders in an HDD? - Answer Set of tracks with same diameter on all surfaces Where is control information located? - Answer In the fixed-sized gaps that separate blocks How can blocks be addressed? - Answer By cylinder number
What do blocks map to? - Answer Pages T or F: When data from a disk is read into the main memory, only the desired record is read intothe main memory. - Answer F. The block in which the record resides gets written into main memory What must happen before most writes? - Answer An initial read of a disk block How many disk heads can read or write at a time? - Answer One If there are 3 platters in an HDD, how many disk heads are there? - Answer 6, one for eachsurface
What are the steps to access a block on a disk? - Answer 1. Disk head pivots over the desiredtrack (seek time)