Grade 10 · Computer science
Grade 10 Algorithms & logic worksheet
20 questions on algorithms & logic. The answer key is a separate download.
What is on the worksheet
An outer loop runs 30 times. Each time, an inner loop prints once on each of 2 iterations. How many prints occur?
FOR i FROM 7 TO 142 INCLUSIVE STEP 9: print i. How many numbers are printed?
Computing foundations: which term fits this description? A sequence of characters treated as text.
- Output
- Logic error
- Syntax error
- String
FOR i FROM 10 TO 172 INCLUSIVE STEP 9: print i. How many numbers are printed?
An outer loop runs 29 times. Each time, an inner loop prints once on each of 23 iterations. How many prints occur?
An outer loop runs 25 times. Each time, an inner loop prints once on each of 17 iterations. How many prints occur?
FOR i FROM 12 TO 159 INCLUSIVE STEP 7: print i. How many numbers are printed?
FOR i FROM 4 TO 99 INCLUSIVE STEP 5: print i. How many numbers are printed?
Convert the binary number 1100110000 to decimal.
An outer loop runs 11 times. Each time, an inner loop prints once on each of 5 iterations. How many prints occur?
Convert the binary number 1101000001 to decimal.
Convert the binary number 1010011101 to decimal.
FOR i FROM 12 TO 24 INCLUSIVE STEP 2: print i. How many numbers are printed?
FOR i FROM 14 TO 46 INCLUSIVE STEP 8: print i. How many numbers are printed?
FOR i FROM 6 TO 142 INCLUSIVE STEP 8: print i. How many numbers are printed?
An outer loop runs 26 times. Each time, an inner loop prints once on each of 13 iterations. How many prints occur?
FOR i FROM 3 TO 84 INCLUSIVE STEP 3: print i. How many numbers are printed?
Convert the binary number 1011001010 to decimal.
FOR i FROM 13 TO 132 INCLUSIVE STEP 7: print i. How many numbers are printed?
Convert the binary number 1001000111 to decimal.
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