Question: What does this program do?
- It renames text1.txt to text2.txt.
- It makes a directory called text2.txt and moves text1.txt there.
- It copies the contents of text1.txt into text2.txt - i.e., it makes a copy of text1.txt, named text2.txt.
- It appends the contents of text1.txt into text2.txt - i.e., replaces the contents of text2.txt by the concatenation of text2.txt and text1.txt.
Answer: The correct answer of the above question is Option C:It copies the contents of text1.txt into text2.txt - i.e., it makes a copy of text1.txt, named text2.txt.