ADVANCED TOPICS IN COMPILER DESIGN
CODE GENERATION FOR OBJECT ORIENTED LANGUAGES
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
A fixed loop will repeat code a specific number of times:true or false?
|
True
|
|
False
|
|
Either A or B
|
|
None of the above
|
Explanation:
Detailed explanation-1: -If the condition is true the code within the block is executed again. This repeats until the condition becomes false. Do while loops check the condition after the block of code is executed. This control structure can be known as a post-test loop.
Detailed explanation-2: -A repeated procedural section of code is commonly called a loop, because after the last statement in the code is executed, the program branches, or loops back to the first statement and starts another repetition. Each repetition is also referred to as an iteration or pass through the loop.
There is 1 question to complete.