Computer Science
Grade 1
20 min
Sing a Song: Chorus Repetition
Identifying and repeating the chorus of a song.
Tutorial Preview
1
Introduction & Learning Objectives
Learning Objectives
Identify the repeating part (chorus) in a simple song.
Explain that a loop means 'do something again and again'.
Use a 'repeat' command to represent a song's chorus.
Create a simple sequence of actions that includes a loop.
Predict what a simple program with one loop will do.
Find a mistake in a loop that repeats too many or too few times.
Do you love to sing songs? 🎤 What part of a song do you sing over and over again?
Today, we will learn about repeating parts. In computer science, this is called a loop! 🔄 Loops help computers do jobs many times without getting tired.
Real-World Applications
Singing the chorus of 'Wheels on the Bus' 🚌
Clapping your hands three times in a row 👏
A robot vacuum cleaning back...
2
Key Concepts & Vocabulary
TermDefinitionExample
SequenceA list of steps that happen in order.First, you stand up. Then, you stretch. 🧍♀️
RepeatTo do the exact same thing again.A cat might repeat the sound 'meow'. 😺
Loop 🔄A command that tells a computer to repeat steps.A loop can say: 'Repeat 3 times: Jump!' 🤸
ChorusThe part of a song we sing many times.In 'Twinkle, Twinkle, Little Star,' the main part is the chorus. ✨
AlgorithmA set of instructions to finish a task.Your algorithm for getting ready is: wake up, brush teeth, get dressed. ☀️
CommandA single instruction for a computer.A command can be 'Move forward' or 'Say hello'. ➡️
3
Core Syntax & Patterns
The Repeat Block
REPEAT [number] TIMES { DO [action] }
Use this to make an action happen more than once. Put the action inside the block.
Finding the Pattern
Look for actions that are exactly the same. 👀
If you see 'Hop, Hop, Hop', the pattern is 'Hop'. You can put that in a loop!
Counting the Repeats
Count how many times the pattern happens. 🔢
Count carefully to tell the computer the right number for the loop.
4 more steps in this tutorial
Sign up free to access the complete tutorial with worked examples and practice.
Sign Up Free to ContinueSample Practice Questions
Challenging
A song's pattern is: 🔵, 🔴, 🔴, 🔵, 🔴, 🔴. What is the repeating part (the 'chorus')?
A.🔵, 🔴
B.🔵, 🔴, 🔴
C.🔴, 🔴
D.🔵, 🔵
Challenging
You are writing a dance for a robot. The song is: Verse, Chorus, Chorus. The chorus dance is 'Spin, Jump'. What are all the dance steps in the correct order?
A.Spin, Jump, Wiggle
B.Wiggle, Spin, Jump, Spin, Jump
C.Spin, Jump, Spin, Jump
D.Wiggle, Spin, Jump
Challenging
You want to change a song to make it much longer, but you don't want to write a lot of new code. Using the idea of a chorus, what is the easiest way?
A.Add many new, different verses
B.Make the music louder
C.Increase the number of times the chorus loop repeats
D.Sing the whole song slower
Want to practice and check your answers?
Sign up to access all questions with instant feedback, explanations, and progress tracking.
Start Practicing Free