Bird
0
0

A file named script.py does not run when double-clicked. Which of the following is the most likely reason?

medium📝 Analysis Q7 of 15
Intro to Computing - How Files and Folders Organize Data
A file named script.py does not run when double-clicked. Which of the following is the most likely reason?
APython is not installed or not associated with .py files
BThe file is an image, not a script
CThe file extension should be .exe
DThe file is corrupted
Step-by-Step Solution
Solution:
  1. Step 1: Recognize .py file purpose

    .py files are Python scripts requiring Python interpreter to run.
  2. Step 2: Identify common causes for failure

    If Python is missing or .py files are not associated with Python, double-click won't run the script.
  3. Final Answer:

    Python is not installed or not associated with .py files -> Option A
  4. Quick Check:

    Missing interpreter or association = script won't run [OK]
Quick Trick: Python scripts need Python installed and associated [OK]
Common Mistakes:
  • Thinking .py is an image
  • Expecting .exe extension for scripts
  • Assuming file corruption without evidence

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Intro to Computing Quizzes