Podcast
Questions and Answers
What is the term used to describe the abstraction being defined in a grammar?
What is the term used to describe the abstraction being defined in a grammar?
- Nonterminal symbols (correct)
- Terminal symbols
- Recursive symbols
- Lexemes
In a recursive rule, where does the Left-hand side (LHS) appear?
In a recursive rule, where does the Left-hand side (LHS) appear?
- Only on the LHS
- Both on LHS and RHS (correct)
- On neither LHS nor RHS
- Only on the right-hand side (RHS)
What initiates the generation of sentences in a grammar?
What initiates the generation of sentences in a grammar?
- Nonterminal symbols
- Lexemes
- Terminal symbols
- Start symbol (correct)
What is a sentential form?
What is a sentential form?
Which derivation ensures that the replaced nonterminal is always the leftmost nonterminal in the sentential form?
Which derivation ensures that the replaced nonterminal is always the leftmost nonterminal in the sentential form?
What are the abstractions called in a BNF description or grammar?
What are the abstractions called in a BNF description or grammar?
Which term refers to the rules' lexemes and tokens in a grammar?
Which term refers to the rules' lexemes and tokens in a grammar?
What describes a rule as recursive in terms of its Left-hand side (LHS)?
What describes a rule as recursive in terms of its Left-hand side (LHS)?
What type of symbol is used to describe the lexemes and tokens in a rule?
What type of symbol is used to describe the lexemes and tokens in a rule?
Which type of derivation ensures that the replaced nonterminal is always the rightmost nonterminal in the sentential form?
Which type of derivation ensures that the replaced nonterminal is always the rightmost nonterminal in the sentential form?