Question DSA-BIT-0023
EasyHow many 1 bits are there in the binary form of 13?
- A.
3
- B.
4
- C.
Show answer and explanation
Answer: A
13 = 1101₂, which has three 1s.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Bit Manipulation question
How many 1 bits are there in the binary form of 13?
3
4
Answer: A
13 = 1101₂, which has three 1s.
1
2