Bird
0
0

You wrote a script to create a file named logfile.txt, but it fails. Which of these is a likely cause?

medium📝 Analysis Q6 of 15
Intro to Computing - How Files and Folders Organize Data
You wrote a script to create a file named logfile.txt, but it fails. Which of these is a likely cause?
AThe folder where the file is created does not have write permission
BThe file name is too short
CThe file extension is missing
DThe file name contains only letters
Step-by-Step Solution
Solution:
  1. Step 1: Check common reasons for file creation failure

    One common reason is lack of write permission in the target folder.
  2. Step 2: Evaluate options

    The folder where the file is created does not have write permission correctly identifies permission issues. Other options are not causes of failure.
  3. Final Answer:

    The folder where the file is created does not have write permission -> Option A
  4. Quick Check:

    Write permission needed to create files [OK]
Quick Trick: Check folder permissions if file creation fails [OK]
Common Mistakes:
  • Assuming file name length causes failure
  • Thinking missing extension blocks creation
  • Believing letters-only names cause errors

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Intro to Computing Quizzes