# How binary digits work programming challenges

Number Name Challenge Level Languages
1.1 Display binary numbers (without calculations)
Beginner
Learning outcomes

Students will be able to:

Challenge Solutions
Show Block-based solution
Show Scratch solution
Show Python solution
1.2 Display Binary Numbers (using a variable)
Beginner
Learning outcomes

Students will be able to:

Challenge Solutions
Show Python solution
Show Block-based solution
Show Scratch solution
1.3 Display Binary Numbers (using variables as an operator)
Beginner
Learning outcomes

Students will be able to:

Challenge Solutions
Show Scratch solution
Show Block-based solution
Show Python solution
1.4 Display Binary Numbers (using a variable, operator and a repeat loop)
Beginner
Learning outcomes

Students will be able to:

Challenge Solutions
Show Python solution
Show Block-based solution
Show Scratch solution
2.1 Display number of dots for a given number of cards
Growing experience
Learning outcomes

Students will be able to:

Challenge Solutions
Show Scratch solution
Show Python solution
Show Block-based solution
2.2 Display number of dots from right to left in one line
Growing experience
Learning outcomes

Students will be able to:

Challenge Solutions
Show Scratch solution
Show Block-based solution
Show Python solution
3.1 Display number of dots from the given largest card to 1
Growing experience
Learning outcomes

Students will be able to:

Challenge Solutions
Show Scratch solution
Show Block-based solution
Show Python solution
4.1 Count dots on 5 black and white cards (without a loop)
Growing experience
Learning outcomes

Students will be able to:

Challenge Solutions
Show Python solution
Show Scratch solution
Show Block-based solution
4.2 Count dots on 5 black and white cards (using a loop)
Growing experience
Learning outcomes

Students will be able to:

Challenge Solutions
Show Scratch solution
Show Block-based solution
Show Python solution
4.3 Count dots on 5 black and white cards as one input (without a loop)
Growing experience
Learning outcomes

Students will be able to:

Challenge Solutions
Show Scratch solution
Show Python solution
Show Block-based solution
4.4 Count dots on 5 black and white cards as one input (using a loop)
Growing experience
Learning outcomes

Students will be able to:

Challenge Solutions
Show Scratch solution
Show Block-based solution
Show Python solution
4.5 Count dots on any number of black and white cards as one input (using a loop)
Learning outcomes

Students will be able to:

Challenge Solutions
Show Python solution
Show Scratch solution
Show Block-based solution
5.1 Display the binary cards needed to represent a given number of dots
Growing experience
Learning outcomes

Students will be able to:

Challenge Solutions
Show Scratch solution
Show Python solution
5.2 Display the binary cards needed to represent a given number of dots (all in one line)
Growing experience
Learning outcomes

Students will be able to:

Challenge Solutions
Show Scratch solution
Show Python solution
6.1 Display the number of bits needed to represent a number
Learning outcomes

Students will be able to:

Challenge Solutions
Show Scratch solution
Show Block-based solution
Show Python solution
7.1 Display the binary cards needed to represent a decimal number between 0 and 31
Learning outcomes

Students will be able to:

Challenge Solutions
Show Python solution
Show Scratch solution
7.2 Display the binary cards needed to represent any decimal number
Learning outcomes

Students will be able to:

Challenge Solutions
Show Python solution
Show Scratch solution
7.3 Convert a positive decimal number to a binary number
Learning outcomes

Students will be able to:

Challenge Solutions
Show Python solution
Show Scratch solution
7.4 Convert a decimal number to a binary number (alternative method)
Learning outcomes

Students will be able to:

Challenge Solutions
Show Scratch solution
Show Python solution
8.1 Binary representation of a decimal number between 0 and 31 by playing musical notes
Learning outcomes

Students will be able to:

Challenge Solutions
Show Scratch solution
Show Python solution
8.2 Binary representation of any decimal number by playing musical notes
Learning outcomes

Students will be able to:

Challenge Solutions
Show Scratch solution
Show Python solution
9.1 Display binary cards with dots representing a number between 0 and 31