a) Find First Zero b) Find First One c) Counting lead ...
View QuestionBit fields and Bit arrays are same.
a) true b) false Answer: b Explanation: Bit field contains the ...
View QuestionWhat does Hamming weight/population count mean in Bit arrays?
a) Finding the number of 1 bit in a bit array b) Finding the ...
View QuestionRun-Length encoding is used to compress data in bit arrays.
a) true b) false Answer: a Explanation: A bit array ...
View QuestionWhich of the following bitwise operator will you use to invert all the bits in a bit array?
a) OR b) NOT c) XOR d) NAND Answer: b Explanation: ...
View QuestionWhich class in Java can be used to represent bit array?
a) BitSet b) BitVector c) BitArray d) BitStream Answer: a Explanation: The BitSet ...
View QuestionWhich of the following is/are not applications of bit arrays?
a) Used by the Linux kernel b) For the allocation of memory pages c) ...
View QuestionWhich 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 ...
View QuestionWhich of the following is not an advantage of bit array?
a) Exploit bit level parallelism b) Maximal use of data cache c) Can be stored and ...
View QuestionWhich of the following bitwise operations will you use to toggle a particular bit?
a) OR b) AND c) XOR d) NOT Answer: c Explanation: 1 XOR 1 = 0, ...
View Question