Question Detail

BIO 107 While Loops & Control Flow Objective Question

Question

Based on the document, what is another term for a 'runaway loop'?
Options
A A loop that executes too quickly.
B A loop that consumes too much memory.
C An infinite loop.
Correct Answer
D A loop with a complex condition.
Correct Answer

Option C is the correct answer.

Detailed Explanation

The 'Stopping a Runaway Loop' slide (page 8) discusses how to stop a program 'stuck in an infinite loop' using Ctrl + C, directly equating 'runaway loop' with an 'infinite loop.'

Hint

The title of slide 8 is 'Stopping a Runaway Loop,' and the content immediately refers to 'an infinite loop.'

Question Info