This set of Compilers Questions and Answers for Campus interviews focuses on “Sdt Schemes to Specify Translation of Various Programming Language Construct – 2 “.
1. In which addressing mode the operand is given explicitly in the instruction?
a) Absolute mode
b) Immediate mode
c) Indirect mode
d) Index mode
View Answer
Explanation: In Immediate addressing mode operand is directly found from the instruction.
2. Which of the following is not true?
a) UGL doesn’t support high level seven interaction
b) Many DBMS support 4GLs
c) All of the mentioned
d) None of the mentioned
View Answer
Explanation: It supports HLL.
3. Non modifiable procedures are called ___________
a) Concurrent procedures
b) Serially usable procedures
c) Re-entrant procedures
d) Top down procedures
View Answer
Explanation: These can’t be modified.
4. Which of the following is not a type of assembler?
a) One pass
b) Two pass
c) Three pass
d) Load and go
View Answer
Explanation: No 3 pass assembler created as yet.
5. Daisy chain is a device for ___________
a) None of the mentioned
b) Connecting devices to a controller
c) Connecting controller to devices
d) All of the mentioned
View Answer
Explanation: Combines multiple devices in sequence or a ring.
6. What is the input of Lex?
a) Set to regular expression
b) Statement
c) Numeric data
d) ASCII data
View Answer
Explanation: Input is a string.
7. Yacc semantic action is a sequence of ___________
a) Tokens
b) Expression
c) Statement
d) Rules
View Answer
Explanation: Yacc is yet another compiler which is a set of statements.
8. Which of the following software tool is parser generator?
a) Lex
b) Yacc
c) Lex & Yacc
d) None of the mentioned
View Answer
Explanation: YACC is a LALR parser.
9. A Lex compiler generates ___________
a) Lex object code
b) Transition tables
c) Tokens
d) None of the mentioned
View Answer
Explanation: The output of Lex is a string of tokens.
10. A Compiler has __________ phases.
a) 7
b) 6
c) 8
d) None of the mentioned
View Answer
Explanation: It has 8 phases.
Sanfoundry Global Education & Learning Series – Compilers.
To practice all areas of Compilers for Campus Interviews, here is complete set of 1000+ Multiple Choice Questions and Answers.
- Practice MCA MCQs
- Practice Computer Science MCQs
- Apply for Computer Science Internship
- Check Computer Science Books
- Check Compiler Design Books