Grade 9 Tracing Loops Worksheet with Answers
Grade 9 (US) · Year 10 (UK) · Class 9 (India) · Computer Science
Unit 2: Programming FundamentalsControl StructuresCSTA 3A-AP-15
Tracing repeat and nested loops to find the final value or the number of times something happens. This free high school worksheet has 12 questions and a full answer key. Print it or save it as a PDF — every answer is checked by code, not guessed.
- Answer keys checked by code
- No ads, ever
- No student accounts needed
- Safety & privacy
Tracing Loops
Grade 9 · Computer Science
Name
Class
Date
Learning goal: Control Structures · CSTA 3A-AP-15
Directions: Read each question carefully and write your answer on the line. Use the diagram to help you.
RememberAlgorithms
- 1
What is total at the end?
- 2
What is total at the end?
- 3
What is total at the end?
- 4
What is total at the end?
- 5
What is total at the end?
- 6
What is total at the end?
- 7
What is total at the end?
- 8
What is total at the end?
- 9
What is total at the end?
- 10
What is total at the end?
- 11
What is total at the end?
- 12
What is total at the end?
★ Challenge corner for fast finishers
6 computers each connect directly to every other computer with one cable. How many cables are needed?
How did I do?
Teacher's comments
Free printable worksheets with answer keys · aethelsystems.com/worksheets/computer/9/loops_trace
Answer key — Tracing Loops (Grade 9)
- 1.-9
- 2.32
- 3.243
- 4.-20
- 5.-3
- 6.45
- 7.-55
- 8.57
- 9.29
- 10.-43
- 11.47
- 12.24
- ★15
Answer key (click to show)
- 1.-9
- 2.32
- 3.243
- 4.-20
- 5.-3
- 6.45
- 7.-55
- 8.57
- 9.29
- 10.-43
- 11.47
- 12.24
- ★15 (challenge corner)
Need another Tracing Loops worksheet?
Generate unlimited fresh versions at easy, medium or hard difficulty, each with its own answer key. Free during our launch — no card needed.
Create a free accountHow to use this worksheet
- Use it for revision before a test, as homework, or as a timed practice set.
- Students can self-mark with the answer key and note which question types they got wrong.
- Generate several versions of the same topic for spaced practice in the weeks before an exam.
Related worksheets
Can't find what you need? Tell us which worksheet to make next.
Frequently asked questions
Does this Grade 9 Tracing Loops worksheet come with answers?
Yes. The full answer key is on this page, and it prints on its own page after the questions. Every answer is calculated or checked by code rather than written by an AI model, so the key is always correct.
How do I print it or save it as a PDF?
Click "Download PDF" to save a ready-to-print PDF with the answer key on the last page, or click "Print" to send the worksheet and answer key straight to your printer.
Can I get a different Tracing Loops worksheet?
Yes. Create a free account to generate as many fresh Grade 9 Tracing Loops worksheets as you like, at easy, medium or hard difficulty, each with its own answer key.
Is this worksheet free?
Yes. This worksheet is free to print, and Practice Sheet is free to use during our launch with no card needed.