Backus-Naur Form (BNF)

Backus-Naur Form (BNF)

Assessment

Quiz

Computers

10th - 12th Grade

Hard

Created by

Calum Gordon

Used 38+ times

FREE Resource

Student preview

quiz-placeholder

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What name is given to the rules that define how symbols can be replaced by other symbols?

Construction rules

Production rules

Definition rules

Establishing rules

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which of these is an example of a production rule?

a → ab

R → (B → 5)

x + y2 → 17

x2 + 3y

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What type of object is enclosed in angle brackets <> in Backus-Naur Form?

Definitive

Terminal

Non-terminal

Special

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What name is given to an object in Backus-Naur form that does not have a corresponding rule with that object on the LHS?

Definitive

Terminal

Non-terminal

Special

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which of the following examples is in valid Backus-Naur form for storing a multi-part name?

< Name> ::= < Name >

<Name> =:: <Forename> | <Surname>

<Name> ::= <Forename> <Surname>

<Name> ::= <Forename Surname>

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Why is it that Backus-Naur form is capable of representing some languages that cannot be represented by regular expressions?

Backus-Naur form supports sequence

Backus-Naur form supports recursion

Backus-Naur form supports selection

Backus-Naur form supports looping

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is represented by ellipses in BNF syntax diagrams?

Terminals

Non-Terminals

Selections

Definitions

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?