COMPILER DESIGN

ADVANCED TOPICS IN COMPILER DESIGN

CODE GENERATION FOR OBJECT ORIENTED LANGUAGES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
____ programs have clean, goto-free, nested control structures.
A
Logic
B
Event Driven
C
Structured
D
Imperative
Explanation: 

Detailed explanation-1: -Structured programming is a program written with only the structured programming constructions: (1) sequence, (2) repetition, and (3) selection.

Detailed explanation-2: -Structured programming (SP) is a technique devised to improve the reliability and clarity of programs. In SP, control of program flow is restricted to three structures, sequence, IF THEN ELSE, and DO WHILE, or to a structure derivable from a combination of the basic three.

Detailed explanation-3: -Imperative. Logical. Functional. Object-Oriented.

Detailed explanation-4: -Sequence. Example: Baking Bread. Add flour. Add salt. Add yeast. Repetition. Example: Washing Dishes. Stack dishes by sink. Fill sink with hot soapy water. While (there are more dishes) Selection. Example: Sorting Mail. Get mail from mailbox. Put mail on table. While (more mail to sort)

There is 1 question to complete.