Bird
0
0

A script uses the command copy file1.txt file2.txt but the user expects the original file to be deleted. What is the error and how to fix it?

medium📝 Analysis Q7 of 15
Intro to Computing - How Files and Folders Organize Data
A script uses the command copy file1.txt file2.txt but the user expects the original file to be deleted. What is the error and how to fix it?
AError: copy duplicates file; fix by using move command instead
BError: copy deletes original; fix by using rename command
CError: copy renames file; fix by using delete command
DError: copy moves file; fix by using copy command twice
Step-by-Step Solution
Solution:
  1. Step 1: Identify copy command behavior

    Copy duplicates the file, leaving the original intact.
  2. Step 2: Correct command for deleting original

    To move (copy then delete original), use the move command instead.
  3. Final Answer:

    Error: copy duplicates file; fix by using move command instead -> Option A
  4. Quick Check:

    Copy duplicates; move transfers file [OK]
Quick Trick: Use move to transfer and delete original file [OK]
Common Mistakes:
  • Expecting copy to delete original
  • Confusing rename with move
  • Using delete command incorrectly

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Intro to Computing Quizzes