Home of real teaching & learning
  • Full support for teachers
  • Focus on critical thinking
  • Engaging classroom activities
  • Integrated student eBook
  • Assessed tasks / qBank
  • Practice exam questions

The InThinking Guarantee: Our sites are written by expert practitioners and not by AI

See our AI policy

Disclaimer: InThinking subject sites are neither endorsed by nor connected with the International Baccalaureate Organisation.

Don't miss out, find out!

D.3 Program development repetition statements - For Loops - Exercises

1. In each loop state what is printed. a) b) c) d) e) f) g) h) i) j) 2. Solve the following problems using for loops. a) Calculate how many times the character 'a' appears in a sentence. Use the sentence below as a test. "I've seen things you people wouldn't believe. Attack ships on fire off the shoulder of Orion. I watched C-beams glitter in the dark near the Tannhäuser Gate. All those moments will be lost in time,...

Help