MULTIPLE CHOICE QUESTION 1. Which tool is used for grouping of characters in tokens in the compiler? * a. Parser b. Code optimizer c. Code generator d. Scanner ANSWER.D 2) Does the compiler program translate the whole source code in one step? * a. No b. Depends on the Compiler c. Don't Know d. Yes ANSWER.D 3) The Lex compiler runs the lex.1 program and produces a C program as * a. lex.yy.c. b. lex.c c. lex.y.c d. a.out ANSWER.A 4) Buffer pair can store up to --------------------characters * a. N b. N+1 c. N2 d. N2n ANSWER.A 5) In the compiler, the function of using intermediate code is * a. to improve the register allocation b. to increase the error reporting & recovery. c. to make semantic analysis easier. d. to increase the chances of re-using the machine-independent code optimizer in other compilers. ANSWER.D 6) Which symbol is not related to context-free grammar? * a. End symbol b. Start symbol c. Non-terminal symbol d. Terminal symbol ANSWER.A 7) Which method merge...
Comments
Post a Comment