StudyBrixFree worksheets, study guides and courses

Grade 12 · Computer science

Grade 12 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 11 times. Each time, an inner loop prints once on each of 26 iterations. How many prints occur?

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

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

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

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

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

  7. Advanced computing concepts: which term fits this description? An agreed set of rules for communication or interaction.

    1. Authentication
    2. Primary key
    3. Protocol
    4. Hash table
  8. An outer loop runs 10 times. Each time, an inner loop prints once on each of 20 iterations. How many prints occur?

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

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

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

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

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

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

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

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

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

  18. Advanced computing concepts: which term fits this description? A formatted unit of data transmitted through a network.

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

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

More worksheets like this