Quiz 2

docx

School

Arizona State University *

*We aren’t endorsed by this school

Course

511

Subject

Computer Science

Date

Jan 9, 2024

Type

docx

Pages

2

Uploaded by ChiefPheasantPerson1012

Report
1. Which of the following file organizations must be used if one needs to retrieve all records in random order? Heap files Sorted files Indexes Scanned files 2. For which type of operations are heap files a sufficient method? Sorting data Bulk loading data Indexing data Selecting data 3. What is the purpose of file indexes? Sorting data Selecting data Searching data Loading data 4. In terms of decreasing the time it takes to process data searches, when does it make sense to create indexes for a database table? When the number of table columns is small. When the number of rows is much lower than the number of columns in the table. When data retrieved by queries is a large percentage of the available data in the table. When data retrieved by queries is a small percentage of the available data in the table. 5. Creating indexes is not a straightforward decision because of the costs involved. One must answer certain questions before creating indexes. Which of the following questions is not relevant? Should one build multiple indexes? Which tables should be indexed? Which record(s) should be part of an index? Which field(s) should be part of an index? 6. What does CPU stand for? Central Process Unit Center Processor Unit Central Processing Unit Center Process Unit 7. Which of the following computer components has the fastest processing speed? CPU Hard Disk Cache Memory 8. Which of the following computer components has the slowest processing speed? Memory Cache Hard Disk CPU
9. The buffer manager loads pages from the hard disk to which part of the computer? Central Processing Unit Cache Solid State Drive Memory 10. Which of the following statements about heap files is correct? Heap files are sufficient for indexing data. Heap files are in random order. Heap files are sufficient for selecting data. Heap files are sufficient for sorting data. 11. What kind of file organization is sufficient for bulk loading data? Sorted files Index files Scanned files Heap files 12. What kind of indexing scheme should be used in order to retrieve data on customers whose zip code is equal to 06902? Equality index Clustered index Hash-based index Heap-based index 13. Which of the following is a disadvantage of using indexes in a database? Increase in the speed of search. Decrease in the performance of select queries. Decrease in the performance of update queries. Increase in the cost of storage. 14. Which of the following is not a decision variable when building indexes? The tables to be included in an index. The fields to be included in an index. The attributes to be included in an index. The records to be included in an index. 15. Where are index files permanently stored in a computer? Memory CPU Hard disk Cache 16. Which of the following is/are among the disadvantages of indexes? Select all that apply. Increase in the cost of storage Increased cost of maintenance Decrease in performance of select queries Decrease in performance of update queries
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help