Practice Binary in CS Thinking

Use these practice problems to test your method after reviewing the concept explanation and worked examples.

Quick Recap

Binary is a base-2 number system that uses only two digits, 0 and 1, to represent all values. Each digit position represents a power of 2, and computers use binary because electronic circuits have exactly two states: on and off.

Counting with only two states: on/off, yes/no, 0/1. Each extra digit doubles the count.

Example 1

medium
Convert the decimal number 45 to binary.

Example 2

medium
Convert binary 11010_2 to decimal.

Example 3

medium
Add the binary numbers 1011_2 and 0110_2.

Example 4

medium
Convert the decimal number 13 to binary using powers of 2.