logo

AQA A-Level Computer Science practice

What does the symbol ::= usually mean in a BNF production rule?

Try the question first, then check the answer and practise the same topic again.

At a glance

MCQ

Type

practice

Style

Topic

Context-free languages

Exam-style question

Try this first

What does the symbol ::= usually mean in a BNF production rule?.

  1. A.Is defined as
  2. B.Must be repeated exactly twice
  3. C.Is optional
  4. D.Ends the language

Answer and explanation

Concise answer

Is defined as

Why this is correct

The symbol ::= separates a non-terminal from the alternatives or sequence that define it. For example, <digit> ::= "0" | "1" means that <digit> is defined as either "0" or "1".

Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.

Common mistake

No common mistake is linked to this question yet.

Related flashcards

No flashcards are published for this page yet.

Related practice questions