Draw a flowchart that shows the steps a computer takes to copy a file named 'report.txt' from the 'Documents' folder to the 'Backup' folder, then move a file named 'notes.txt' from 'Documents' to 'Archive', and finally delete a file named 'old_data.txt' from the 'Downloads' folder.
Copying, moving, and deleting files in Intro to Computing - Draw & Build Visually
Start learning this pattern below
Jump into concepts and practice - no test required
or
Test this pattern10 questions across easy, medium, and hard to know if this pattern is strong
Draw This - beginner
Grading Criteria
Solution
_______
/ \
| Start |
\_______/
|
v
____________________________
| Copy 'report.txt' from |
| 'Documents' to 'Backup' |
|____________________________|
|
v
____________________________
| Move 'notes.txt' from |
| 'Documents' to 'Archive' |
|____________________________|
|
v
____________________________
| Delete 'old_data.txt' from |
| 'Downloads' folder |
|____________________________|
|
v
_______
/ \
| End |
\_______/ This flowchart starts with the Start symbol. The first step is to copy the file 'report.txt' from the 'Documents' folder to the 'Backup' folder, shown as a process box. Next, it moves the file 'notes.txt' from 'Documents' to 'Archive'. Then, it deletes the file 'old_data.txt' from the 'Downloads' folder. Each step is connected by arrows showing the order of actions. Finally, the flowchart ends with the End symbol.
This shows the sequence of file operations clearly and simply, just like following a recipe step-by-step.
Variations - 2 Challenges
[intermediate] Draw a flowchart to copy two files, 'image1.png' and 'image2.png', from 'Pictures' to 'Backup', then delete 'temp.txt' from 'Downloads'.
[advanced] Draw a flowchart to move a file 'project.docx' from 'Work' to 'Archive', then copy 'summary.pdf' from 'Work' to 'Backup', and finally delete 'draft.docx' from 'Work'.
Practice
1. Which of the following best describes what happens when you
copy a file on your computer?easy
Solution
Step 1: Understand copying
Copying means making a duplicate file without deleting the original.Step 2: Compare with other actions
Moving removes the original, deleting removes permanently, renaming changes the name only.Final Answer:
A new file is created in the new location, and the original file stays where it is. -> Option DQuick Check:
Copying duplicates file = A [OK]
Hint: Copying duplicates, original stays [OK]
Common Mistakes:
- Confusing copying with moving
- Thinking deleting is copying
- Believing renaming moves the file
2. Which command correctly moves a file named
report.txt from the folder Documents to Archives in a command-line interface?easy
Solution
Step 1: Identify the move command
The command to move files is usuallymove(Windows) ormv(Unix).Step 2: Check other commands
copyduplicates,deleteremoves,renamechanges name only.Final Answer:
move Documents/report.txt Archives/ -> Option AQuick Check:
Move command = move [OK]
Hint: Move command is 'move' or 'mv' [OK]
Common Mistakes:
- Using copy instead of move
- Using delete to move files
- Confusing rename with move
3. Consider this Python code snippet using the
What will happen after running this code?
shutil module:import shutil
shutil.copy('data.txt', 'backup/data.txt')
shutil.move('data.txt', 'archive/data.txt')What will happen after running this code?
medium
Solution
Step 1: Understand shutil.copy()
This creates a duplicate of 'data.txt' in 'backup' folder; original remains.Step 2: Understand shutil.move()
This moves the original 'data.txt' from current location to 'archive', removing it from original place.Final Answer:
A copy of 'data.txt' is made in 'backup', then the original is moved to 'archive'. -> Option CQuick Check:
Copy then move = C [OK]
Hint: Copy duplicates, move transfers original [OK]
Common Mistakes:
- Thinking move duplicates file
- Assuming copy deletes original
- Believing both files are deleted
4. You wrote this command to delete a file:
But you get an error saying the file is not found. What is the most likely cause?
del myfolder\file.txtBut you get an error saying the file is not found. What is the most likely cause?
medium
Solution
Step 1: Check file path and existence
If the file path is wrong or file missing, deletion fails with 'not found' error.Step 2: Understand del command
deldeletes files; it works if file exists and path is correct.Final Answer:
The file path is incorrect or the file does not exist. -> Option AQuick Check:
File not found = wrong path or missing file [OK]
Hint: Check file path and existence first [OK]
Common Mistakes:
- Assuming del cannot delete files
- Trying to copy before deleting unnecessarily
- Ignoring file path correctness
5. You want to organize your photos by moving all files from
Downloads to Pictures, but keep a backup copy in Backup. Which sequence of actions correctly achieves this?hard
Solution
Step 1: Copy files to Backup
Copying duplicates files to Backup folder, preserving originals in Downloads.Step 2: Move files to Pictures
Moving transfers files from Downloads to Pictures, removing them from Downloads.Final Answer:
Copy all files from Downloads to Backup, then move all files from Downloads to Pictures. -> Option BQuick Check:
Copy backup first, then move original = B [OK]
Hint: Copy first to backup, then move originals [OK]
Common Mistakes:
- Moving before copying loses original files
- Deleting files before backup
- Copying from wrong folders
