Question Detail

BIO 107 While Loops & Control Flow Objective Question

Question

If your program is stuck in an infinite loop in the terminal or console, what key combination should you press to stop it immediately?
Options
A Ctrl + X
B Ctrl + S
C Ctrl + C
Correct Answer
D Ctrl + V
Correct Answer

Option C is the correct answer.

Detailed Explanation

Slide 8, 'Stopping a Runaway Loop', explicitly states: 'If your program is stuck in an infinite loop, press Ctrl + C in your terminal/console.'

Hint

The slide on 'Stopping a Runaway Loop' provides the answer.

Question Info