Multiple choice technology testing

What is the output of the following code snippet? @echo off Copy /? > d:\test.txt

  1. Writes the names of all the files present in the current directory to d:\test.txt

  2. Copies d:\test.txt to windows directory

  3. Writes the help options available on ‘Copy’ into d:\test.txt

  4. Not a valid command

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The /? flag is used to request command-line help for a utility. The redirection operator > sends this help output directly into the file d:\test.txt instead of printing it to the console.