SPCC Viva Question PDF
SPCC Viva Question PDF
Lexical error
During the lexical analysis phase this type of error can be detected.
Lexical error is a sequence of characters that does not match the pattern of any
token. Lexical phase error is found during the execution of the program.
6. What is LR parser
Pg 5-119 tech knowledge
A bottom up parser which parses the grammar from left to right using rightmost
derivation in reverse direction. If LR(0) then has 0 look ahead symbols
9. What is an assembler?
12. Which tables are used in pass1 and pass2 of an assembler? Databases for
pass 1 and 2
13. How to determine if it is a LL1 grammar?
To check if a grammar is LL(1), one option is to construct the LL(1) parsing table
and check for any conflicts. These conflicts can be
17. Loader
18. Difference between parameterized macro and conditional macro
Additional Answers:
● Linker:
● Macro processor:
Functions:
1. Recognize macro Definitions
2. Save the definitions
3. Recognize the calls
4. Expand calls and substitute arguments
DB:
1. Macro Def Table
2. Macro Name Table
3. Arg List Array
● Compiler:
● Interpreter:
● Editor:
● Debugger:
Q) Compiler vs Interpreter
Module 2: Assemblers
Q)Features of Assembler
Q)Different kinds of statement in assembly language
Q) Functions of Macros
Q) Syntax of Macros
Q) Implementation of Macro
Q) Data structures of Macro
Q) Function of Loaders
Q) Types of Linking (Static and Dynamic)
Q) Types of Loaders
Q) Features of Compiler
Q) Requirements of compiler
Q) Types of Compiler
Q) Phases of Compiler
Q) Explain phases of Compilers
Q) Predictive Parser
Q) LL Parser
Q) LL1 grammar
Q) Shift Reduce Parser
Q) LL vs LR Parser
Q) synthesized attr