StudyBrixFree worksheets, study guides and courses

Grade 8 · Computer science

Grade 8 Computer science practice

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

What is on the worksheet

  1. How many bits are in 6510 bytes?

  2. Using zero-based indexing, what is values[3] for values = [75, 7, 8, 88, 5]?

  3. Using zero-based indexing, what is values[3] for values = [59, 55, 11, 5, 2]?

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

  5. FOR i FROM 10 TO 66 INCLUSIVE STEP 4: print i. How many numbers are printed?

  6. An image is 120 pixels wide and 270 pixels high. How many pixels does it contain?

  7. Using zero-based indexing, what is values[1] for values = [19, 77, 44, 65, 14]?

  8. A file shrinks from 620 KB to 372 KB. What percentage of its original size was saved?

  9. A raw image is 157 × 51 pixels with 4 bytes per pixel. Ignoring headers and compression, how many bytes?

  10. How many bits are in 5026 bytes?

  11. Using zero-based indexing, what is values[4] for values = [48, 93, 34, 40, 59]?

  12. How many bits are in 8339 bytes?

  13. A raw image is 31 × 153 pixels with 2 bytes per pixel. Ignoring headers and compression, how many bytes?

  14. Three recorded values are 4, 6 and 8. Ignoring one explicitly missing value, find the mean of the recorded values.

  15. FOR i FROM 14 TO 122 INCLUSIVE STEP 4: print i. How many numbers are printed?

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

  17. Using zero-based indexing, what is values[2] for values = [30, 72, 83, 17, 80]?

  18. An image is 330 pixels wide and 160 pixels high. How many pixels does it contain?

  19. How many bits are in 5817 bytes?

  20. How many bits are in 4533 bytes?

More worksheets like this