In a cache memory if total number of sets are ‘$s$’, then the set offset is:
If $'s'$ is the number of sets in the cache, then the set index has $\log_{2}s$ bits.
References:
So, the correct answer is $(B).$