click below
click below
Normal Size Small Size show me how
FA4- Automata
| Question | Answer |
|---|---|
| 1. TRUE OR FALSE. Elimination of null and unit productions and symbols is called reduction of CFG Group of answer choices True False | TRUE |
| 2. TRUE OR FALSE. Given the CFG with P: S -> AC | a, A -> a. After simplification of the CFG, the resulting grammar is S λ. | FALSE |
| 3. FILL IN THE BLANKS (use all caps for your answer). A reduced _______ is the result of removing useless symbols and productions. | GRAMMAR |
| 4. FILL IN THE BLANKS (use all caps for your answer). Useless symbols are those variables and terminals that do not appear in any derivation of strings of _________. | TERMINALS |
| 5. FILL IN THE BLANKS. Given the CFG with P: S --> AC | a, A --> a. The non-generating symbol is ___. | C |
| 6. FILL IN THE BLANKS. Consider the CFG with P: S --> aC | bX A --> CAd | bSX | a C --> aSC | bCX X --> SCD | aCX | ad After simplification, the resulting grammar is S bX and X ___. | ad |
| 7. TRUE OR FALSE. Consider the CFG with P: S --> aC | bX A --> CAd | bSX | a C --> aSC | bCX X --> SCD | aCX | ad Is X a useful symbol? | TRUE |
| 8. TRUE OR FALSE. Consider the CFG with P: S --> aC | bX A --> CAd | bSX | a C --> aSC | bCX X --> SCD | aCX | ad Is A reachable? | FALSE |
| 9. TRUE OR FALSE. Consider the CFG with P: S --> aC | bX A --> CAd | bSX | a C --> aSC | bCX X --> SCD | aCX | ad Is C useful? | FALSE |
| 10. TRUE OR FALSE. In a CFG, a non-terminal symbol is nullable if there is a derivation that starts with that non-terminal symbol and leads to a null. | TRUE |
| 11. TRUE OR FALSE. A CFG is in CNF if a production has a non-terminal leads to a string of a non-terminal and a terminal symbol. | FALSE |
| 12. TRUE OR FALSE. If a production has a non-terminal symbol leading to a terminal symbol, it is said to be in CNF. | TRUE |
| 13. TRUE OR FALSE. The production B cDa is in GNF. | FALSE |
| 14. TRUE OR FALSE. The production D dD is not in GNF. | FALSE |
| 15. TRUE OR FALSE. One of the steps in converting a CFG into GNF is removing all null productions and not removing unit productions. | FALSE |