COMPILER DESIGN

ADVANCED TOPICS IN COMPILER DESIGN

CODE GENERATION FOR OBJECT ORIENTED LANGUAGES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which control structure will execute an instruction only after the computer evaluates conditions to determine if a certain condition exists?
A
Selection
B
Loop
C
Functional
D
Sequence
Explanation: 

Detailed explanation-1: -sequential-normal flow. selection-used for decision making and execute if certain conditions are true ex. if, ifelse, switch. repetition-used for looping ex. for, while, dowhile. 11-Aug-2019

Detailed explanation-2: -If you have an action you want to execute when the condition is false, then you need an else clause. You can have a series of tests by following the initial if with any number of else if s. Here is an example of a valid if/else structure. The value of y is set depending on whether x > 3 or not.

Detailed explanation-3: -What are the 3 types of fundamental control structures in structured programming? If (Selection) Structure. While (Repetition) Structure. Assignment operators and Increment/Decrement operators. More items

There is 1 question to complete.