StudyBrixFree worksheets, study guides and courses

Grade 11 · Computer science

Grade 11 Algorithms & logic worksheet

20 questions on algorithms & logic. The answer key is a separate download.

What is on the worksheet

  1. An outer loop runs 7 times. Each time, an inner loop prints once on each of 4 iterations. How many prints occur?

  2. An outer loop runs 7 times. Each time, an inner loop prints once on each of 23 iterations. How many prints occur?

  3. Python: total = 0 for n in range(1, 5): total += n What is total?

  4. An outer loop runs 17 times. Each time, an inner loop prints once on each of 4 iterations. How many prints occur?

  5. An outer loop runs 8 times. Each time, an inner loop prints once on each of 10 iterations. How many prints occur?

  6. An outer loop runs 26 times. Each time, an inner loop prints once on each of 27 iterations. How many prints occur?

  7. An outer loop runs 2 times. Each time, an inner loop prints once on each of 15 iterations. How many prints occur?

  8. An outer loop runs 23 times. Each time, an inner loop prints once on each of 7 iterations. How many prints occur?

  9. An outer loop runs 21 times. Each time, an inner loop prints once on each of 27 iterations. How many prints occur?

  10. An outer loop runs 10 times. Each time, an inner loop prints once on each of 15 iterations. How many prints occur?

  11. An outer loop runs 24 times. Each time, an inner loop prints once on each of 18 iterations. How many prints occur?

  12. An outer loop runs 27 times. Each time, an inner loop prints once on each of 26 iterations. How many prints occur?

  13. Advanced computing concepts: which term fits this description? A description of how an algorithm's operation count grows with input size.

    1. Time complexity
    2. Encapsulation
    3. Recursion
    4. Queue
  14. An outer loop runs 26 times. Each time, an inner loop prints once on each of 3 iterations. How many prints occur?

  15. An outer loop runs 26 times. Each time, an inner loop prints once on each of 21 iterations. How many prints occur?

  16. An outer loop runs 30 times. Each time, an inner loop prints once on each of 27 iterations. How many prints occur?

  17. An outer loop runs 28 times. Each time, an inner loop prints once on each of 4 iterations. How many prints occur?

  18. An outer loop runs 5 times. Each time, an inner loop prints once on each of 25 iterations. How many prints occur?

  19. An outer loop runs 26 times. Each time, an inner loop prints once on each of 15 iterations. How many prints occur?

  20. An outer loop runs 14 times. Each time, an inner loop prints once on each of 8 iterations. How many prints occur?

More worksheets like this