Multiple choice technology operating systems

Only filenames and extensions are to be displayed in wide format, which command you’ll use?

  1. Dir/w

  2. Dir a:

  3. Dir/s

  4. Dir/b

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

The DIR/W command displays only filenames and extensions in a wide format, showing multiple files per row without additional details like file size or date. This is the correct command for the specified requirement. DIR A: accesses a specific drive, DIR/S includes subdirectories recursively, and DIR/B shows only filenames. The /W switch specifically creates the wide format display.

AI explanation

DIR /W lists directory contents in 'wide' format — filenames and extensions only, arranged in multiple columns across the screen, omitting file size, date, and time details. This is exactly what the question asks for. DIR A: simply lists the contents of the A: drive (unrelated to format). DIR /S recurses into subdirectories, listing all files in the tree. DIR /B uses 'bare' format, listing only filenames with no headers/summary but in a single column per line, not the multi-column wide layout. So /W is the correct switch for a wide, names-only display.