إدارة نظم قواعد البيانات

اختبار الفصل ٣

اختبار محاكي

Indexing

٢٥ أسئلة · اختيار من متعدد، صح/خطأ، وتوصيل. أجب ثم اضغط «تسليم الاختبار».

  1. ١

    What are the two basic kinds of indices?

  2. ٢

    When a node in an order-5 B-tree overflows during insertion (a 5th key arrives), which key moves up to the parent?

  3. ٣

    Secondary indices must be:

  4. ٤

    In a multilevel index, the outer index is:

  5. ٥

    A key advantage of B+-tree index files over indexed-sequential files is that they:

  6. ٦

    In a B+-tree, all paths from the root to a leaf are:

  7. ٧

    With 1 million keys and n = 100, roughly how many B+-tree nodes are accessed per lookup?

  8. ٨

    In static hashing, the bucket of a record is obtained from:

  9. ٩

    Overflow chaining, where overflow buckets form a linked list, is called:

  10. ١٠

    Which is generally preferred for range queries?

  11. ١١

    An index file is typically much smaller than the original file.

  12. ١٢

    A sparse index generally locates records faster than a dense index.

  13. ١٣

    A sequential scan using a secondary index is expensive.

  14. ١٤

    A block fetch is far slower than a memory access (milliseconds vs nanoseconds).

  15. ١٥

    In a B+-tree leaf, the last pointer Pₙ points to the next leaf in search-key order.

  16. ١٦

    An ideal hash function is uniform and random.

  17. ١٧

    Open hashing uses overflow buckets and is well suited to databases.

  18. ١٨

    Hash indices are always secondary indices.

  19. ١٩

    Static hashing handles a growing or shrinking database gracefully with a fixed number of buckets.

  20. ٢٠

    Bitmap indices are especially useful for queries on multiple attributes.

  21. ٢١

    Match each index type with its description.

    • Dense index
    • Sparse index
    • Secondary index
    • Multilevel index

    الإجابات

  22. ٢٢

    Match each B+-tree fact.

    • All root-to-leaf paths
    • Internal node children
    • Tree height
    • Self-reorganization

    الإجابات

  23. ٢٣

    Match each hashing term.

    • Bucket
    • Ideal hash function
    • Closed hashing
    • Open hashing

    الإجابات

  24. ٢٤

    Match each choice with the better structure.

    • Exact key-value lookup
    • Range query
    • SQL Server default
    • Growing/shrinking database

    الإجابات

  25. ٢٥

    Match each SQL/bitmap term.

    • create index
    • create unique index
    • drop index
    • Bitmap operation

    الإجابات

أجبت ٠ من ٢٥