1. Syntax Analyser takes Groups Tokens of source Program into Grammatical Production.
a) True
b) False
Explanation: It Groups Tokens of source Program into Grammatical Production.
2. From where it takes its input from?
a) Lexical analyser
b) Syntactic Analyser
c) Semantic Analyser
d) None of the mentioned
Explanation: A syntax analyzer or parser takes the input from a lexical analyzer in the form of token streams.
3. Parsers are expected to parse the whole code.
a) True
b) False
Explanation: Parsers are expected to parse the whole code even if some errors exist in the program.
4. A grammar for a programming language is a formal description of _______________
a) Syntax
b) Semantics
c) Structure
d) Library
Explanation: The grammar clearly indicates which type of structure does a program has.
5. Which of these is not true about the Symbol Table?
a) All the labels of the instructions are symbols
b) Table has entry for symbol name address value
c) Perform the processing of the assembler directives
d) Created during pass 1
Explanation: The Symbol table does not ever perform the processing of the assembler derivative.
6. Which of these features of assembler are Machine-Dependent?
a) Instruction formats
b) Addressing modes
c) Program relocation
d) All of the mentioned
Explanation: All of these options are features of assembler which are machine dependent.
7. A compiler can check?
a) Logical Error
b) Syntax Error
c) Both Logical and Syntax Error
d) Not Logical and Syntax Error
Explanation: No compiler can ever check logical errors.
8. The fourth Generation computer was made up of ______________
a) Transistor
b) Vacuum tubes
c) Chips
d) Microprocessor chips
Explanation: It is the only way to increase its throughput.
9. Select a Machine Independent phase of the compiler.
a) Syntax Analysis
b) Intermediate Code generation
c) Lexical Analysis
d) All of the mentioned
Explanation: All of them work independent of a machine.
10. A system program that combines the separately compiled modules of a program into a form suitable for execution?
a) Assembler
b) Compiler
c) Linking Loader
d) Interpreter
Explanation: A loader which combines the functions of a relocating loader with the ability to combine a number of program segments that have been independently compiled.