Which of the following is not a disadvantage of bit array?

Which of the following is not a disadvantage of bit array?

a) Without compression, they might become sparse

b) Accessing individual bits is expensive

c) Compressing bit array to byte/word array, the machine also has to support byte/word addressing

d) Storing and Manipulating in the register set for long periods of time

Answer: Storing and Manipulating in the register set for long periods of time

Which of the following is not an advantage of bit array?

Accessing Individual Elements is easy

Which of the following bitwise operations will you use to toggle a particular bit?

XOR

Which of the following bitwise operations will you use to set a particular bit to 0?

AND

Which of the following bitwise operations will you use to set a particular bit to 1?

OR

What is a bit array?

Data structure that compactly stores bits

Which class in Java can be used to represent bit array?

BitSet

Which of the following bitwise operator will you use to invert all the bits in a bit array?

NOT

What does Hamming weight/population count mean in Bit arrays?

Finding the number of 1 bit in a bit array

Which one of the following operations returns the first occurrence of bit 1 in bit arrays?

Find First One

Leave a Comment