ExamVeda
Login
Home
11
Which command displays all the files having the same name but different extensions?
Discuss
Answer & Solution
Answer: Option A
Solution:
* is a wild card character that stands for all any character. When you specify filename.*, it meant filenameshould be specified one but extension can be any. Second option lists only the specified filename.exe and third and fourth commands lists all files with sys extension and specified extension.
12
Which command displays only file and directory names without size, date and time information?
Discuss
Answer & Solution
Answer: Option C
Solution:
dir/b command barely lists the names of files and directories without any other information like size, date, time etc.
13
Which command displays comma for thousand separating on file size while listing?
Discuss
Answer & Solution
Answer: Option D
Solution:
Using comma for separating thousand in file size is by default on. You can use dir/-c to remove comma from the listing. /C stands for comma.
14
Which command is used to display all the files having the (.exe) extension but different filename?
Discuss
Answer & Solution
Answer: Option D
Solution:
First and second options are obviously wrong since specifying filename will list for that filename only. Since we need to list only with .exe extension fourth option is correct. Third option displays all files with sys extension.
15
Which command should be used to display all files within the specified subordinate directory of the subdirectory?
Discuss
Answer & Solution
Answer: Option B
Solution:
The subordinate directory of subdirectory can be accessed through the path sequence pathname\pathname and dir command lists the files of that location.
16
Which command displays the directory list including files in tree structure?
Discuss
Answer & Solution
Answer: Option B
Solution:
Tree command lists the directory structure in tree structure and /f switch of tree command includes the filenames in the structure.
17
Which command will be used to display a file within the specified directory of pathname?
Discuss
Answer & Solution
Answer: Option D
Solution:
Displaying a file which is inside specified directory can be done by specifying a directory name \ andfilename.
18
Which command creates a directory or subdirectory?
Discuss
Answer & Solution
Answer: Option D
Solution:
MK command and MKDIR both commands are equivalent and can be used to create subdirectories. Dir only lists directory but can't create.
19
Which command displays current directory name or change from one to another?
Discuss
Answer & Solution
Answer: Option D
Solution:
CD and CHDIR commands are equivalent and both used to change current working directory to another one. MKDIR creates a new directory and can't be used to change.
20
Which command is used to delete the directory that is empty?
Discuss
Answer & Solution
Answer: Option B
Solution:
RD command or RMDIR commands can be used to remove a directory if it is empty. Del command and Erase commands are used to delete files not directories. MD creates a new directory and can't remove directory.