Table of Contents
Which 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: NOT
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