StudyBrixFree worksheets, study guides and courses

Grade 10 · Computer science

Grade 10 Computer science diagnostic

15 questions on digital literacy, algorithms & logic, data systems and data structures, plus 3 from Grade 9. Answer what you can, then check your answers to see which topics are secure and what to practise next.

15 questions4 topicsAbout 15 minutesSet 3 of 5

Skip a question if you do not know the answer. It is better than guessing, because it shows what to practise.

1Algorithms & logicFOR i FROM 2 TO 74 INCLUSIVE STEP 6: print i. How many numbers are printed?
2Algorithms & logicConvert the binary number 101101110 to decimal.
3Algorithms & logicAn outer loop runs 22 times. Each time, an inner loop prints once on each of 14 iterations. How many prints occur?
4Data structuresA sorted array has 524287 entries. Binary search always inspects a middle entry. What is the largest number of inspected entries for a successful search? Round the final result to 4 decimal places if needed.
5Data structuresA sorted array has 32767 entries. Binary search always inspects a middle entry. What is the largest number of inspected entries for a successful search? Round the final result to 4 decimal places if needed.
6Data structuresA sorted array has 255 entries. Binary search always inspects a middle entry. What is the largest number of inspected entries for a successful search? Round the final result to 4 decimal places if needed.
7Data systemsA 885 MB payload is sent over a constant 50 Mbps link. Use decimal MB and ignore overhead. Find transfer time. Round the final result to 4 decimal places if needed. Answer in s.
s
8Data systemsA 20 MB payload is sent over a constant 135 Mbps link. Use decimal MB and ignore overhead. Find transfer time. Round the final result to 4 decimal places if needed. Answer in s.
s
9Data systemsA 162 MB payload is sent over a constant 95 Mbps link. Use decimal MB and ignore overhead. Find transfer time. Round the final result to 4 decimal places if needed. Answer in s.
s
10Digital literacyHow many bits are in 3821 bytes?
11Digital literacyA file shrinks from 1060 KB to 530 KB. What percentage of its original size was saved?
%
12Digital literacyA raw image is 179 × 197 pixels with 1 bytes per pixel. Ignoring headers and compression, how many bytes?

From Grade 9

These questions check skills from the grade below, so gaps can be spotted early.

13Algorithms & logic (Grade 9)Using zero-based indexing, what is values[3] for values = [33, 81, 82, 82, 90]?
14Digital literacy (Grade 9)An image is 70 pixels wide and 400 pixels high. How many pixels does it contain?
15Algorithms & logic (Grade 9)Using zero-based indexing, what is values[4] for values = [9, 57, 2, 52, 76]?