Question 11
EasyWhat is a sparse index?
- A.
An index with an entry for every record
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
DBMS
What is a sparse index?
An index with an entry for every record
An index on an empty table
An index with no entries
An index with entries for only some of the search-key values, for example one per block
Sign up free to see the answer and a step-by-step explanation.
What does a unique index ensure?
The index is used only once
The column holds numbers only
No two rows have the same value in the indexed column
The table has one row
Sign up free to see the answer and a step-by-step explanation.
In a DBMS, what is hashing?
Deleting duplicate records
Computing a record's storage location from its key with a hash function
Encrypting the database
Sorting records alphabetically
Sign up free to see the answer and a step-by-step explanation.
In a hashed file, a new record's key hashes to a bucket that is already full. What happens?
The hash function is deleted
The whole file is sorted again
Bucket overflow: the record is placed in an overflow bucket or chain
The record is rejected for ever
Sign up free to see the answer and a step-by-step explanation.
In hashing, what is a bucket?
A unit of storage, such as a disk block, that holds records with the same hash value
A deleted record
A type of index key
A SQL keyword
Sign up free to see the answer and a step-by-step explanation.
What is a full table scan?
Reading only the first row
Reading every row of a table to answer a query
Reading only the index
Scanning the disk for viruses
Sign up free to see the answer and a step-by-step explanation.
What is a non-clustered index?
A damaged index
An index with no keys
A separate structure holding keys and pointers to rows, without changing the order of the rows
An index that sorts the table itself
Sign up free to see the answer and a step-by-step explanation.
Why are the leaf nodes of a B+ tree linked together?
To save memory
To prevent deadlocks
To allow fast sequential and range scans
To store passwords
Sign up free to see the answer and a step-by-step explanation.
Are all the leaves of a B+ tree at the same depth?
No, they vary randomly
Only in a full tree
Yes, a B+ tree is always balanced
Only if keys are numbers
Sign up free to see the answer and a step-by-step explanation.
Which SQL statement creates an index?
INDEX CREATE
CREATE INDEX
ADD INDEX TABLE
MAKE INDEX
Sign up free to see the answer and a step-by-step explanation.