COMPILER DESIGN

ADVANCED TOPICS IN COMPILER DESIGN

CODE GENERATION FOR OBJECT ORIENTED LANGUAGES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
What is Selection?
A
Repeating a number of steps
B
A decision point in a program
C
The order in which instructions are carried out
D
None of the above
Explanation: 

Detailed explanation-1: -Definition: A decision point is a combination of one or more conditions that define the conditions for the various possibilities in the subsequent system behaviour. The various conditions collectively determine the outcome of the decision point.

Detailed explanation-2: -Decision points are also referred to as milestones in planning and project management.

Detailed explanation-3: -Example. A person is given five small bags of popcorn. After eating the each bag, then they have a decision-point as to whether to open the next bag. Another person is given two bags of popcorn, containing in total the same amount of popcorn as the first person had in five bags.

Detailed explanation-4: -Decision making is the process of making choices by identifying a decision, gathering information, and assessing alternative resolutions. Using a step-by-step decision-making process can help you make more deliberate, thoughtful decisions by organizing relevant information and defining alternatives.

There is 1 question to complete.