ADVANCED TOPICS IN COMPILER DESIGN
CODE GENERATION FOR OBJECT ORIENTED LANGUAGES
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
Sequence, selection, loop
|
|
Structured, object-oriented, procedural
|
|
Java, Python, Visual Basic
|
|
Machine, assembly, high-level
|
Detailed explanation-1: -sequence. selection. iteration.
Detailed explanation-2: -Since the late 1960’s ‘the rules of structure’ and been supported by structured programming languages with language elements to support the three ‘original’ logical structures: Sequence, Alternative Selection, and Loops.
Detailed explanation-3: -An algorithm is made up of three basic building blocks: sequencing, selection, and iteration.
Detailed explanation-4: -Java provides three repetition statements/looping statements that enable programmers to control the flow of execution by repetitively performing a set of statements as long as the continuation condition remains true. These three looping statements are called for, while, and do… while statements.