True or False
1.One of the downsides of a pure interpretation implementation is that it is less compact from a space perspective.
2.LR parsing algorithms cannot handle left recursive grammars.
3.A variable's scope is not necessarily the same as the variable's lifetime.
4.Top-down parsers require the language developer to develop a parsing table.
5.A global variable is never a local variable.
Solution:
1. True. It is true as during performing a simple add operation, many reading and writing of memory is involved with the stack pointers which are continuously incremented and decremented practically.
2. False. It is false as the LR parsing algorithms can handle some left recursion but not all kinds of left recursive grammars.
3. True. It is true as the scope is where a variable is accessible and the lifetime depends on the way how it is defined.
4. True. One of the best practices of the developer is to design a parsing table by the developer
5. True. No, if global variable starts acting as a local variable then the compiler throws an error.
Get Answers For Free
Most questions answered within 1 hours.