RDBMS Questions and Answers – Bitmap Indices

This set of RDBMS Multiple Choice Questions & Answers (MCQs) focuses on “Bitmap Indices”.

1. A bitmap is _______
a) An array of bits
b) An index of bits
c) A function mapping all the bits of data
d) None of the mentioned
View Answer

Answer: a
Explanation: A bitmap is simply an array of bits. A bitmap can be used for various purposes such as bitmap indexing.

2. A _________ on the attribute A of relation r consists of one bitmap for each value that A can take
a) Bitmap array
b) Bitmap index
c) Bitmap excess
d) Bitmap
View Answer

Answer: b
Explanation: A bitmap index on the attribute A of relation r consists of one bitmap for each value that A can take. Each bitmap contains as many bits as the number of records in the relation.

3. Intersection of the bitmaps is done by
a) Logical AND
b) Logical OR
c) Logical NOT
d) Logical NOR
View Answer

Answer: a
Explanation: The intersection of the bitmaps is done by the logical AND operation. This is similar to the binary set intersection operation which is done by the logical AND operation.
advertisement
advertisement

4. What does an existence bitmap do?
a) It recognizes deleted records
b) It inserts values into empty bitmaps
c) It makes sure that no records are deleted
d) None of the mentioned
View Answer

Answer: a
Explanation: An existence bitmap is used to recognize deleted records and not to prevent deletion of records. It also does not insert any records into empty bitmaps.

5. The complement operation in bitmaps is done by using
a) Logical AND
b) Logical OR
c) Logical NOT
d) Logical NOR
View Answer

Answer: c
Explanation: The complement operation in bitmaps is done by using the logical not operator. This is similar to the binary complement operation.
Sanfoundry Certification Contest of the Month is Live. 100+ Subjects. Participate Now!

6. State true or false: Bitmaps can be combined with B+ trees
a) True
b) False
View Answer

Answer: a
Explanation: Bitmaps can be combined with B+ trees for relations where a few attribute values are extremely common.

7. We create an index in SQL using _______ command
a) Create index
b) New index
c) Create new index
d) Develop index
View Answer

Answer: a
Explanation: We create an index in SQL using the create index command. Eg: create index dept_index on instructor(dept_name).
advertisement

8. We delete and index in SQL using the ________ command
a) Remove index
b) Delete index
c) Drop index
d) None of the mentioned
View Answer

Answer: c
Explanation: We delete and index in SQL using the drop index command. Syntax: drop index ;

9. State true or false: Intersection operations are extremely slow on bitmaps
a) True
b) False
View Answer

Answer: b
Explanation: Intersection operations are extremely fast on bitmaps making them ideal for supporting queries on multiple attributes.
advertisement

10. Which of the following operations is used for the union of bitmaps?
a) Logical AND
b) Logical OR
c) Logical NOT
d) Logical NOR
View Answer

Answer: b
Explanation: The logical OR operation is used for the computation of the union of bitmaps. This is similar to the binary set union operation.

Sanfoundry Global Education & Learning Series – RDBMS.

To practice all areas of RDBMS, here is complete set of 1000+ Multiple Choice Questions and Answers.

If you find a mistake in question / option / answer, kindly take a screenshot and email to [email protected]

advertisement
advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.