Question Detail

BIO 107 While Loops & Control Flow Objective Question

Question

If your program is stuck in an infinite loop in a terminal or console, what key combination is typically used to send an interrupt signal and stop the program immediately?
Options
A Ctrl + S
B Ctrl + P
C Ctrl + C
Correct Answer
D Ctrl + Z
Correct Answer

Option C is the correct answer.

Detailed Explanation

Page 8, under 'Emergency Stop', explicitly instructs users to 'press Ctrl + C in your terminal/console' to stop a program stuck in an infinite loop.

Hint

This is a common command-line shortcut for interrupting a running process.

Question Info