ADVANCED TOPICS IN COMPILER DESIGN
CODE GENERATION FOR OBJECT ORIENTED LANGUAGES
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
this means that control is passed downwards only through the hierarchy
|
|
the object have relationships with one another
|
|
in the top-down design model, programs are drawn as rectangles
|
|
top-down design means that the whole program is broken down into smaller sections that are known as modules
|
|
beneficial for organizing and coding computer programs which employ a hierarchy of modules, this means that control is passed downwards
|
Detailed explanation-1: -Using the SPMs requires a more disciplined approach to programming and, therefore, provides the following advantages: Application programs are easier to read and understand. Application programs are less likely to contain logic errors. Errors are more easily found.
Detailed explanation-2: -Structured programming encourages dividing an application program into a hierarchy of modules or autonomous elements, which may, in turn, contain other such elements. Within each element, code may be further structured using blocks of related logic designed to improve readability and maintainability.
Detailed explanation-3: -Structured programming is a program written with only the structured programming constructions: (1) sequence, (2) repetition, and (3) selection. Sequence. Lines or blocks of code are written and executed in sequential order.
Detailed explanation-4: -The main difference between structured and object oriented programming is that structured programming helps to develop a program using a set of modules or functions while object oriented programming helps to construct a program using a set of objects and their interactions.