How to decide how many bits to use to determine pattern

In most of the bit masking Qs do we observe only the last 2 bits to find pattern. Or number of bits to be used to determine a pattern is based on some property?

hello @vishakha_narang you have to find the logic i mean what logic you can apply to solve for the given pattern.
Happy Learning!!

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.