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 2 of 5

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

1Algorithms & logicAn outer loop runs 12 times. Each time, an inner loop prints once on each of 15 iterations. How many prints occur?
2Algorithms & logicConvert the binary number 1000001111 to decimal.
3Algorithms & logicFOR i FROM 13 TO 68 INCLUSIVE STEP 5: print i. How many numbers are printed?
4Data structuresA sorted array has 4194303 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 65535 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 262143 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 282 MB payload is sent over a constant 180 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 413 MB payload is sent over a constant 40 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 204 MB payload is sent over a constant 110 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 literacyA file shrinks from 1560 KB to 858 KB. What percentage of its original size was saved?
%
11Digital literacyA raw image is 145 × 133 pixels with 2 bytes per pixel. Ignoring headers and compression, how many bytes?
12Digital literacyHow many bits are in 674 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[4] for values = [38, 35, 36, 49, 83]?
14Digital literacy (Grade 9)An image is 190 pixels wide and 320 pixels high. How many pixels does it contain?
15Algorithms & logic (Grade 9)Start with total = 71. Repeat 27 times: add 19 to total. What is the final total?