We can use 
bool BitSet::test(int bitPosition) const
To check the bit value to be true/false.