Bird
0
0

In a file management script, the command move file.txt FolderA/ is executed twice in a row. What happens after the second command?

medium📝 Analysis Q5 of 15
Intro to Computing - How Files and Folders Organize Data
In a file management script, the command move file.txt FolderA/ is executed twice in a row. What happens after the second command?
Afile.txt is moved to FolderA the first time, second time causes an error because file.txt no longer exists in original location
Bfile.txt is copied twice to FolderA
Cfile.txt is renamed twice inside FolderA
Dfile.txt is deleted after the second move
Step-by-Step Solution
Solution:
  1. Step 1: First move command effect

    The first move transfers file.txt from original location to FolderA.
  2. Step 2: Second move command effect

    Since file.txt is no longer in the original location, the second move command fails or causes an error.
  3. Final Answer:

    file.txt is moved to FolderA the first time, second time causes an error because file.txt no longer exists in original location -> Option A
  4. Quick Check:

    Moving non-existent file causes error [OK]
Quick Trick: Moving a file twice from same place causes error second time [OK]
Common Mistakes:
  • Assuming move copies the file
  • Thinking file is renamed automatically
  • Ignoring file existence after first move

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Intro to Computing Quizzes