ADVANCED TOPICS IN COMPILER DESIGN
CODE GENERATION FOR OBJECT ORIENTED LANGUAGES
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
It allows us to choose one of several paths through an algorithm
|
|
It allows us to simplify an algorithm by removing unnecessary steps
|
|
It allows more steps to be included in an algorithm
|
|
None of the above
|
Detailed explanation-1: -Why is iteration important? Iteration allows us to simplify our algorithm by stating that we will repeat certain steps until told otherwise. This makes designing algorithms quicker and simpler because they don’t have to include lots of unnecessary steps.
Detailed explanation-2: -Why is iteration important? Iteration allows algorithms to be simplified by stating that certain steps will repeat until told otherwise. This makes designing algorithms quicker and simpler because they don’t need to include lots of unnecessary steps.
Detailed explanation-3: -In computer programming, iterations enable programmers to streamline design and development, since they know that definite steps will be repeated and many irrelevant steps will be removed. The steps that are part of the loop will be repeated. To show this repetition, they are indented in the code.
Detailed explanation-4: -Iterating allows you to make mistakes quickly and learn from them in order to change or improve what you’ve done.
Detailed explanation-5: -Iteration is also known as repetition. Iteration allows programmers to simplify a program and make it more efficient . Instead of writing out the same lines of code again and again, a programmer can write a section of code once, and ask the program to execute the same line repeatedly until no longer needed.