Binary Examples: 47 Problems with Answers

Worked examples of Binary to try before you open each solution, then practice problems with answers.

Worked Examples

Example 1

medium
Convert the decimal number 45 to binary.
Show solution

Answer

1011012

First step

1.
Step 1: 45 ÷ 2 = 22 remainder 1.

See the full worked solution + why-it-works coaching

SetupKey insightWhy it worksCommon pitfallConnection

Free: full solutions on 3 topics a day. No card.

Every topic, every day: the Family plan

Example 2

medium
Convert binary 110102 to decimal.

Example 3

medium
Convert 11112 to decimal and explain why it equals 24−1.

Example 4

hard
Convert decimal 100 to binary by repeatedly dividing by 2 and recording remainders.

Practice Problems

Try each one, then open the solution to compare your method.

Example 1

medium
Add the binary numbers 10112 and 01102.

Example 2

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

Example 3

easy
Convert the binary number 10112 to decimal.

Example 4

easy
Convert 10002 to decimal.

Example 5

easy
What is the decimal value of 1112?

Example 6

easy
Why do computers use binary instead of decimal?

Example 7

easy
Convert decimal 5 to binary.

Example 8

easy
In binary, what is 1+1?

Example 9

easy
What is the rightmost (position 0) place value in binary?

Example 10

easy
How many distinct values can 3 binary digits represent?

Example 11

medium
Convert decimal 19 to binary.

Example 12

medium
Convert 110102 to decimal.

Example 13

medium
Add 1012+0112 in binary. Give the binary result.

Example 14

medium
What is the largest decimal value representable with 4 bits?

Example 15

medium
Doubling a binary number is done by what simple operation?

Example 16

medium
Convert 101102 to decimal.

Example 17

medium
How many bits are needed to represent decimal 100?

Example 18

challenge
What decimal value is 111111112 (eight 1s), and why is this number significant?

Example 19

challenge
Subtract in binary: 10102−00112. Give the binary result.

Example 20

challenge
In binary, what does shifting 11002 right by one position produce, and what arithmetic operation is that (for the integer part)?

Example 21

medium
Convert decimal 42 to binary.

Example 22

medium
Convert 11012 to decimal.

Example 23

easy
Convert the binary number 10012 to decimal.

Example 24

easy
Convert decimal 3 to binary.

Example 25

easy
What is the decimal value of 1102?

Example 26

easy
Convert decimal 6 to binary.

Example 27

easy
In binary, what is 102+12?

Example 28

easy
How many distinct values can 5 binary digits represent?

Example 29

medium
Convert decimal 23 to binary.

Example 30

medium
Convert 101012 to decimal.

Example 31

medium
Add 1102+1012 in binary. Give the binary result.

Example 32

medium
What is the largest decimal value representable with 6 bits (unsigned)?

Example 33

medium
Convert 111002 to decimal.

Example 34

medium
How many bits are needed to represent decimal 200?

Example 35

medium
Convert decimal 50 to binary.

Example 36

medium
In binary, what is 1+1+1? Give the binary result.

Example 37

medium
Convert 1000002 to decimal.

Example 38

medium
How many bits are needed to represent decimal 64?

Example 39

hard
Add 11012+10112. Give the binary sum.

Example 40

hard
Subtract in binary: 100002−12. Give the binary result.

Example 41

hard
What does shifting 10102 LEFT by one position produce, and what arithmetic operation is that?

Example 42

hard
How many 1-bits are in the binary representation of decimal 255?

Example 43

challenge
Convert decimal 170 to binary.

What to focus on

Core idea: Computers use binary because electronic switches have exactly two states: on (1) or off (0).

Common stuck point: Each position is a power of 2 (1, 2, 4, 8 ...). Reading right-to-left: position 0 = 1, position 1 = 2, etc.

Ask yourself: Are you turning a string of 0s and 1s into an ordinary number, or a number into 0s and 1s?

Concept 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.

Picture a balance with one weight each of 1, 2, 4, 8 and 16 grams. Each weight is either on the pan (1) or off it (0), and every whole number of grams from 0 to 31 can be made in exactly one way, just as every number has exactly one binary form. The picture stops at addition: binary sums need the carry rule.

Read the full lesson on Binary

Common mistakes to watch for