Bird
0
0

What is the main difference between Python interactive mode and script mode?

easy📝 Conceptual Q11 of 15
Python - Basics and Execution Environment
What is the main difference between Python interactive mode and script mode?
AInteractive mode is slower than script mode.
BInteractive mode runs files; script mode runs commands one by one.
CInteractive mode runs commands one by one; script mode runs a whole file at once.
DScript mode shows results immediately after each command.
Step-by-Step Solution
Solution:
  1. Step 1: Understand interactive mode behavior

    Interactive mode lets you type and run one command at a time and see the result immediately.
  2. Step 2: Understand script mode behavior

    Script mode runs a saved file with many lines of code all at once, not line-by-line interactively.
  3. Final Answer:

    Interactive mode runs commands one by one; script mode runs a whole file at once. -> Option C
  4. Quick Check:

    Interactive = one command, Script = whole file [OK]
Quick Trick: Interactive = one command; script = whole file run [OK]
Common Mistakes:
MISTAKES
  • Confusing which mode runs commands one by one
  • Thinking script mode shows immediate results after each line
  • Believing interactive mode runs whole files

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Python Quizzes