Computer Science (AS & A Level) · Oct / Nov 2023 · Paper 21 · Question 4
9618
As printed in the paper
The question as text
A global array is declared in pseudocode as follows: DECLARE Data : ARRAY[1:150] OF STRING A function TooMany() will: 1. take two parameters: • a string (the search string) • an integer (the maximum value) 2. count the number of strings in the array that exactly match the search string 3. return TRUE if the count is greater than the maximum value, otherwise will return FALSE
Read automatically from the paper; the printed page above is exact.
Show the answer and mark scheme
4(a)[6]
4(b)[3]
Make a free account to save your answers and see your weak topics and ask the AI why a wrong answer is wrong.

