2210/22/M/J/20 question 5: worked solution (May/June 2020, paper 22)

Show as plain text

Cambridge O Level Computer Science 2210 · 8.2 Arrays Worked solution from the Programming Paper 2 Algorithms, Programming and Logic booklet, Part 2 of 3. Q42 2210/22/M/J/20 original Q5 Structured · 3 marks Worked solution (a) Explain both terms and give an example. Dimension : the number of indexes needed to reach one element, so Names [5] is one-dimensional and Grid[2, 3] is two-dimensional [1] Index : the position of an element in the array, so in Names [5] the index 5 points to the 5th element [1] Example given for the arrays, such as A [25] being the 25th element of a one-dimensional array [1] KEY IDEA Dimension is how many indexes you need; index is the position of one element. TOTAL 3 marks Official mark scheme VIDEO ▶ Whole paper Video solution of the whole paper · by Zafar Ali Khan (ZAK). Tap the picture to open it on YouTube.