Compilers Questions and Answers – SDT Schemes to Specify Translation of various Programming Language Construct – 2

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

Answer: b
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

Answer: a
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

Answer: b
Explanation: These can’t be modified.
advertisement
advertisement

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

Answer: c
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

Answer: b
Explanation: Combines multiple devices in sequence or a ring.
Sanfoundry Certification Contest of the Month is Live. 100+ Subjects. Participate Now!

6. What is the input of Lex?
a) Set to regular expression
b) Statement
c) Numeric data
d) ASCII data
View Answer

Answer: a
Explanation: Input is a string.

7. Yacc semantic action is a sequence of ___________
a) Tokens
b) Expression
c) Statement
d) Rules
View Answer

Answer: c
Explanation: Yacc is yet another compiler which is a set of statements.
advertisement

8. Which of the following software tool is parser generator?
a) Lex
b) Yacc
c) Lex & Yacc
d) None of the mentioned
View Answer

Answer: b
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

Answer: b
Explanation: The output of Lex is a string of tokens.
advertisement

10. A Compiler has __________ phases.
a) 7
b) 6
c) 8
d) None of the mentioned
View Answer

Answer: c
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.

advertisement
advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.