Question Detail

BIO 107 While Loops & Control Flow Objective Question

Question

According to the document, what is one of the primary benefits of using iteration in programming?
Options
A It makes debugging easier.
B It allows computers to perform tasks repeatedly without getting tired.
Correct Answer
C It reduces the memory footprint of a program.
D It automatically generates user interfaces.
Correct Answer

Option B is the correct answer.

Detailed Explanation

Slide 3 states: 'Computers are great at doing the same thing over and over without getting tired.' and 'Iteration saves you from writing the same code 1,000 times.'

Hint

Think about the 'Need for Repetition' slide.

Question Info