An algorithm is shown in the pseudocode below.
1 minerals ← ['Quartz', 'Gypsum', 'Feldspar']
2 min1 ← 'Calcite'
3 min2 ← 'Fluorite'
4 OUTPUT min1
5 OUTPUT LEN(minerals)
6 result ← SUBSTRING(2, 5, min2)
7 OUTPUT result
SUBSTRING returns a portion of a string containing the characters from the start index to the end index inclusive (using 0-based indexing). For example, SUBSTRING(1, 3, 'Python') will return the string 'yth'.
State the output of line 7 from this algorithm.
89 exam-style questions on AQA GCSE Computer Science String handling operations in a programming language. Each one has a worked solution and a mark scheme showing where the marks go.