Which command will be used to display file and directory names only, without size, date, and time information? A. DIR/W B. DIR A: C. DIR/B D. DIR/S E. None of the above

DIR/W
DIR A:
DIR/B
DIR/S E. None of the above

The correct answer is: DIR/B

The DIR command is used to list the files and directories in a directory. The /B switch tells DIR to display only the file and directory names, without any other information.

The other options are incorrect for the following reasons:

  • DIR/W displays the file and directory names in wide list format.
  • DIR A: displays the contents of the A: drive.
  • DIR/S displays the files and directories in sorted order.
  • None of the above is a valid command.