Information about cookies on this page

Our website uses cookies to ensure the functionality of the website, to collect and analyze information about the performance and usage of the website. Privacy Policy

  • Courses
    • Discord
    • Twitter
    • Linkedin
    • Facebook
    • Instagram
  • Pricing
  • English
  • Čeština
  • Deutsch
  • Русский
Sign inStart free
  • Courses
  • Pricing

Community

Sign in
  
  • Courses
    • Discord
    • Twitter
    • Linkedin
    • Facebook
    • Instagram
  • Pricing
  • English
  • Čeština
  • Deutsch
  • Русский
Sign inStart free
  • Courses
  • Pricing

Community

Sign in

Quiz: Repeat While Not

The dog starts at the arrow and carries out this program. On which numbered tile does it stop?

1while (!pathLeft()) {
2    moveForward();
3}
4turnLeft();
5while (pathAhead()) {
6    moveForward();
7}
8
Back

3/7

  1. 1. The Not Block
  2. 2. Turn Until the Path Is Ahead
  3. 3. Quiz: Repeat While Not
  4. 4. Bones Mark the Way
  5. 5. Take the First Right
  6. 6. Quiz: A Bug with Not
  7. 7. Summary
Next

Try it yourself

Do this exercise right here in your browser. No account needed.