Question 10 Select all of the following statements that are

Question 10

Select all of the following statements that are true.

Question 10 options:

Backus-Naur Form (BNF) is used to describe the syntax of programming languages with context-free grammars.

A token of a language is a category of lexemes. For example, identifier is a token that can have lexemes like sum or total.

Formal descriptions of language syntax often do not include descriptions of the lowest-level syntactic units. Such small units are called lexemes, and the description of lexemes can be given separate from the syntactic description of the language.

In class, flex or lex were used to describe lexemes.

A metalanguage is a language used to describe other languages. BNF is a metalanguage.

Question 11 (1 point)

Select all of the following input streams that are syntactically correct based on the following BNF:

Question 11 options:

abc

aaabccccccc

bbb

aabbccaa

Save

Question 12 (1 point)

Select all of the following input streams that are syntactically correct based on the following BNF:

Question 12 options:

bbaab

baab

bbbab

bbaaaaa

A)

Backus-Naur Form (BNF) is used to describe the syntax of programming languages with context-free grammars.

B)

A token of a language is a category of lexemes. For example, identifier is a token that can have lexemes like sum or total.

C)

Formal descriptions of language syntax often do not include descriptions of the lowest-level syntactic units. Such small units are called lexemes, and the description of lexemes can be given separate from the syntactic description of the language.

In class, flex or lex were used to describe lexemes.

D)

A metalanguage is a language used to describe other languages. BNF is a metalanguage.

Solution

Answer 12 a b are true c and d are false

Answer 11 a b are true c and d are false

Answer 10 a b c d are true

Question 10 Select all of the following statements that are true. Question 10 options: Backus-Naur Form (BNF) is used to describe the syntax of programming lang
Question 10 Select all of the following statements that are true. Question 10 options: Backus-Naur Form (BNF) is used to describe the syntax of programming lang

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site