Computer Science (AS & A Level) · Oct / Nov 2022 · Paper 42 · Question 1
9618
As printed in the paper
The question as text
A computer program is needed to store jobs in order of priority. Each job has a job number (for example, 123) and a priority from 1 to 10, with 1 being the highest priority and 10 the lowest. The program stores the jobs in a global 2D array. The pseudocode declaration for the array is: DECLARE Jobs : ARRAY[0:99, 0:1] OF INTEGER For example: • Jobs[0, 0] stores the job number of the first job. • Jobs[0, 1] stores the priority of the first job. The global variable, NumberOfJobs, stores the number of jobs currently in the array.
Read automatically from the paper; the printed page above is exact.
Show the answer and mark scheme
1(a)[3]
1(b)[3]
1(c)[5]
1(d)[2]
1(e)[5]
1(f)[3]
1(g)(i)[1]
1(g)(ii)[1]
Make a free account to save your answers and see your weak topics and ask the AI why a wrong answer is wrong.

