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

This set of Compilers Multiple Choice Questions & Answers (MCQs) focuses on “SDT Schemes to Specify Translation of various Programming Language Construct – 1”.

1. Which of the following is not a feature of the compiler?
a) Converts it into machine code
b) None of the mentioned
c) Slow for debugging
d) Execution time is more
View Answer

Answer: d
Explanation: No specified execution time.

2. A programming language is to be designed to run on a machine that does not have a big memory.
a) Prefer a 2 pass compiler
b) Prefer an interpreter
c) Not support recursion
d) All of the mentioned
View Answer

Answer: d
Explanation: If a language designed to run on a machine then recursion should not be followed it should prefer 2 pass assembler and prefer an interpreter to a compiler.

3. What is linker?
a) Is same as the loader
b) Create a load module
c) Is same as the loader & Create a load module
d) None of the mentioned
View Answer

Answer: b
Explanation: It creates a module to be loaded.
advertisement
advertisement

4. Predictive parsers can be __________
a) Recursive
b) Constructive
c) Non recursive
d) Both Recursive and Constructive
View Answer

Answer: a
Explanation: The nature of predictive parsers can be Recursive.

5. Producer consumer problem can be solved using __________
a) Semaphores
b) Event counters
c) Monitors
d) All of the mentioned
View Answer

Answer: d
Explanation: The famous producer consumer problem can be solved by a semaphores event counters as well as monitors.
Sanfoundry Certification Contest of the Month is Live. 100+ Subjects. Participate Now!

6. Bottom up parsing involves __________
a) Shift reduce
b) Handle pruning
c) Shift reduce & Handle pruning
d) None of the mentioned
View Answer

Answer: c
Explanation: The bottom up parsing involves Shift reduce operation and Handle pruning.

7. What is an example of intermediate language?
a) SNOBOL
b) PASCAL
c) COBOL
d) UNCOL
View Answer

Answer: d
Explanation: Others are HLL.
advertisement

8. In a two pass assembler the object code generation is done during the __________
a) Second pass
b) First pass
c) Zeroth pass
d) Not done by assembler
View Answer

Answer: a
Explanation: I second pass object code is generated.

Sanfoundry Global Education & Learning Series – Compilers.

advertisement

To practice all areas of Compilers, 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.