Several syntax diagrams are shown. [Figure showing syntax diagrams for uppercase, lowercase, symbol, digit, passcode]
- (a)State why each passcode is invalid for the given syntax diagrams. #Jd7 Reason C%6A Reason[2]
- (b)Complete the Backus-Naur Form (BNF) for <uppercase> and <passcode>. <uppercase> ::= <passcode> ::=[4]
This question uses a diagram from the original paper, which isn't shown here. Open the full paper from the past papers archive to see it.
Mark scheme
Marking points from the official mark scheme (May/June 2025). The mark or mark type is shown in brackets.
- [1] For #Jd7: must begin with a member of the group uppercase // cannot begin with a symbol
- [1] For C%6A: the fourth character cannot be a member of the group uppercase // the fourth character must be either a symbol, digit or lowercase
- [1] <uppercase> ::= A | C | E | G | J
- [1] <passcode> ::= <uppercase><code>
- [1] <code> ::= <lowercase>|<symbol>|<digit>
- [1] <code> ::= <lowercase><code>|<symbol><code>|<digit><code>
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 →