Which command of DOS is used to sort the file in reverse order? A. SORT > filename B. SORT < filename C. SORT/R < filename D. SORT/V < filename E. None of the above

[amp_mcq option1=”SORT > filename” option2=”SORT < filename" option3="SORT/R < filename" option4="SORT/V < filename E. None of the above" correct="option3"]

The correct answer is C. SORT/R < filename.

The SORT command is used to sort lines of text in a file. The /R switch tells SORT to sort the lines in reverse order. The < filename switch tells SORT to read the input from the file filename.

For example, if you have a file called list.txt that contains the following lines:

1
2
3
4
5

You can use the following command to sort the lines in reverse order:

SORT /R < list.txt

This will produce the following output:

5
4
3
2
1

The other options are incorrect. Option A, SORT > filename, will overwrite the file filename with the sorted output. Option B, SORT < filename, will read the input from the standard input device (usually the keyboard). Option D, SORT/V < filename, will sort the lines in case-sensitive order. Option E, None of the above, is also incorrect.