Question DSA-BIT-0038
EasyEvery subset of 4 items is represented by a bitmask. How many different masks are there?
- A.
16
- B.
4
- C.
15
- D.
8
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Bit Manipulation question
Every subset of 4 items is represented by a bitmask. How many different masks are there?
16
4
15
8
Sign up free to see the answer and a step-by-step explanation.