This is an algorithm to find if a batch of parts has been manufactured successfully.
- (a)Complete the trace table using this data: Y, Y, Y, N, Y, Y, Y, Y, N, Y, Y, Y, Y Accept Reject PartOK Error OUTPUT[5]
- (b)Describe how the algorithm should be changed to accept 'Y' or 'y' for a successfully manufactured part.[3]
Mark scheme
Marking points from the official mark scheme (Oct/Nov 2023). The mark or mark type is shown in brackets.
- [5] One mark for each column Accept: 0, 1, 2, 3, 3, 4, 5, 6, 7, 7, 8, 9, 10 Reject: 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 PartOK: Y, Y, Y, N, Y, Y, Y, Y, N, Y, Y, Y, Y Error: --, --, --, --, --, --, --, --, --, --, --, --, 20 OUTPUT: --, --, --, --, --, --, --, --, --, --, --, --, Too many rejected 20% error
- [3] One mark for each point max three after the Input box // before the first decision box insert a process box to convert the input to upper case OR change the first decision / add another decision box to accept 'y' as well by adding OR PartOK = 'y'
Write your answer and get it marked
On Oracle Prep you can write or photograph your own answer and have it marked by AI against this mark scheme, with feedback on what you missed.
Sign up free →