Question DSA-BIT-0021
EasyWhat is 12 written in binary?
- A.
1110
- B.
1010
- C.
Show answer and explanation
Answer: C
12 = 8 + 4, so the bits for 8 and 4 are 1 and the bits for 2 and 1 are 0: 1100₂.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Bit Manipulation question
What is 12 written in binary?
1110
1010
Answer: C
12 = 8 + 4, so the bits for 8 and 4 are 1 and the bits for 2 and 1 are 0: 1100₂.
1100
0110