糖心Vlog

Please consent to cookies to view content.

' ); iframeDoc.close(); } } } } } const observer = new MutationObserver(switchSrc); observer.observe(document.documentElement, { childList: true, subtree: true, }); })();

糖心Vlog

Last updated

21 August 2026

pdf, 56.35 KB
pdf, 56.35 KB
pdf, 56.75 KB
pdf, 56.75 KB
pdf, 55.33 KB
pdf, 55.33 KB
pdf, 54.64 KB
pdf, 54.64 KB
pdf, 54.66 KB
pdf, 54.66 KB
pdf, 58.8 KB
pdf, 58.8 KB
pdf, 55.19 KB
pdf, 55.19 KB
pdf, 58.94 KB
pdf, 58.94 KB
pdf, 57.01 KB
pdf, 57.01 KB
pdf, 56.38 KB
pdf, 56.38 KB
pdf, 57.25 KB
pdf, 57.25 KB
pdf, 59.27 KB
pdf, 59.27 KB
pdf, 55.17 KB
pdf, 55.17 KB
pdf, 56.16 KB
pdf, 56.16 KB
pdf, 58.34 KB
pdf, 58.34 KB
pdf, 57.85 KB
pdf, 57.85 KB
pdf, 55.37 KB
pdf, 55.37 KB
pdf, 51.66 KB
pdf, 51.66 KB
pdf, 55.92 KB
pdf, 55.92 KB
pdf, 54.87 KB
pdf, 54.87 KB
pdf, 67.19 KB
pdf, 67.19 KB
pdf, 62.38 KB
pdf, 62.38 KB
pdf, 64.03 KB
pdf, 64.03 KB
pdf, 65.32 KB
pdf, 65.32 KB
pdf, 62.25 KB
pdf, 62.25 KB
pdf, 67.38 KB
pdf, 67.38 KB
pdf, 65.21 KB
pdf, 65.21 KB
pdf, 66.82 KB
pdf, 66.82 KB
pdf, 61.94 KB
pdf, 61.94 KB
pdf, 67.21 KB
pdf, 67.21 KB
pdf, 66.09 KB
pdf, 66.09 KB
pdf, 67.12 KB
pdf, 67.12 KB
pdf, 66.52 KB
pdf, 66.52 KB
pdf, 66.68 KB
pdf, 66.68 KB
pdf, 66.5 KB
pdf, 66.5 KB
pdf, 62.6 KB
pdf, 62.6 KB
pdf, 63.55 KB
pdf, 63.55 KB
pdf, 63.05 KB
pdf, 63.05 KB
pdf, 64.06 KB
pdf, 64.06 KB
pdf, 66.26 KB
pdf, 66.26 KB
txt, 4.08 KB
txt, 4.08 KB

Backus-Naur Form for AQA A Level Computer Science (7517): twenty different
worksheets, each built on a different grammar, and each with a complete
answer key.

Section 4.4.3 asks for two things. The first is to check whether a string is
syntactically valid by referring to BNF or to a syntax diagram. The second is
to explain why BNF can represent languages that a regular expression cannot.
Every sheet does both, and the second one is done on a grammar the student
has just spent four questions using.

WHAT YOU GET

  • 20 worksheets, 3 pages each, numbered 01 to 20
  • 20 matching answer keys
  • A contents table giving what each grammar describes and how long its
    derivation runs, so you can pick one without opening all twenty

WHAT IS ON EVERY SHEET

Question 1 gives a grammar and five strings to judge valid or not. The
invalid ones are never obviously invalid: each is one character away from a
string the grammar accepts, so the fault has to be found by following the
rules rather than by glancing at the alphabet.

Question 2 asks for one string to be derived step by step, writing the
sentential form and the production rule used on every line. The sheet states
that the leftmost non-terminal is replaced at every step, which is what makes
one sequence correct rather than several.

Question 3 shows one rule of the same grammar drawn as a syntax diagram, asks
which non-terminal it defines, and then gives three more strings to judge by
following the picture. The specification says BNF or syntax diagrams; this
question is where the two meet.

Question 4 has one symbol rubbed out of the grammar. Put it back, then answer
this: if that whole alternative were deleted, the language would become
finite - how many strings would be left? The answer is a number, and it is
the shortest route to what recursion is actually for.

Question 5 is a written question on why BNF goes beyond regular expressions,
on terminals and non-terminals, on recursion, on why a language needs a
formal definition at all, or on diagrams against notation.

Sheets run from 22 to 26 marks.

Reviews

Something went wrong, please try again later.

This resource hasn't been reviewed yet

To ensure quality for our reviews, only customers who have purchased this resource can review it

to let us know if it violates our terms and conditions.
Our customer service team will review your report and will be in touch.