ADVANCED TOPICS IN COMPILER DESIGN
CODE GENERATION FOR OBJECT ORIENTED LANGUAGES
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
If/else
|
|
while
|
|
do while
|
|
for
|
Detailed explanation-1: -Overview. In selection control structures, conditional statements are features of a programming language which perform different computations or actions depending on whether a programmer-specified Boolean condition evaluates to true or false.
Detailed explanation-2: -Selection Structure. Use to make a decision or comparison and then, based on the result of that decision or comparison, to select one of two paths. The condition must result in either a true (yes) or false (no) answer. If the condition is true, the program performs one set of tasks.
Detailed explanation-3: -An if statement is a selection statement that allows more than one possible flow of control. An if statement lets you conditionally process a statement when the specified test expression, implicitly converted to bool, evaluates to true . If the implicit conversion to bool fails the program is ill-formed.
Detailed explanation-4: -Four Types of Selection Structures. Simple selection (simple IF statement) Simple selection with null false branch (null ELSE statement) Combined selection (combined IF statement) Nested selection (nested IF statement) 02-Sept-2015