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
An outer loop runs 7 times. Each time, an inner loop prints once on each of 4 iterations. How many prints occur?
An outer loop runs 7 times. Each time, an inner loop prints once on each of 23 iterations. How many prints occur?
Python: total = 0 for n in range(1, 5): total += n What is total?
An outer loop runs 17 times. Each time, an inner loop prints once on each of 4 iterations. How many prints occur?
An outer loop runs 8 times. Each time, an inner loop prints once on each of 10 iterations. How many prints occur?
An outer loop runs 26 times. Each time, an inner loop prints once on each of 27 iterations. How many prints occur?
An outer loop runs 2 times. Each time, an inner loop prints once on each of 15 iterations. How many prints occur?
An outer loop runs 23 times. Each time, an inner loop prints once on each of 7 iterations. How many prints occur?
An outer loop runs 21 times. Each time, an inner loop prints once on each of 27 iterations. How many prints occur?
An outer loop runs 10 times. Each time, an inner loop prints once on each of 15 iterations. How many prints occur?
An outer loop runs 24 times. Each time, an inner loop prints once on each of 18 iterations. How many prints occur?
An outer loop runs 27 times. Each time, an inner loop prints once on each of 26 iterations. How many prints occur?
Advanced computing concepts: which term fits this description? A description of how an algorithm's operation count grows with input size.
- Time complexity
- Encapsulation
- Recursion
- Queue
An outer loop runs 26 times. Each time, an inner loop prints once on each of 3 iterations. How many prints occur?
An outer loop runs 26 times. Each time, an inner loop prints once on each of 21 iterations. How many prints occur?
An outer loop runs 30 times. Each time, an inner loop prints once on each of 27 iterations. How many prints occur?
An outer loop runs 28 times. Each time, an inner loop prints once on each of 4 iterations. How many prints occur?
An outer loop runs 5 times. Each time, an inner loop prints once on each of 25 iterations. How many prints occur?
An outer loop runs 26 times. Each time, an inner loop prints once on each of 15 iterations. How many prints occur?
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
Grade 5 Computer science practice
20 questions
Grade 5 Algorithms & logic worksheet
20 questions
Grade 5 Digital literacy worksheet
20 questions
Grade 6 Computer science practice
20 questions
Grade 6 Algorithms & logic worksheet
20 questions
Grade 6 Digital literacy worksheet
20 questions