A+ second exam question. I think the answer is wrong.
-
ctive 21h ago
I have a question about one of the questions in the second A+ exam list of practice questions. The question ID is, 1471258. In part, the question asks, " You run the 'dir D:\MYDOCS\FILECHK.* /S' command. What would this command accomplish?" The winning answer is, "A) It locates all the files and directories that have the name FILECHK with any file extension in the MYDOCS directory of drive D, including the subdirectories." I chose answer, "C) It locates all files that have names starting with FILECHK in the MYDOCS directory of drive D, including the subdirectories." I believe that the answer they give as the right answer is a mistake. I did a google search and found out that this specific command is only looking for any file with any extension, but is looking in the MYDOCS directory and any sub-directory within MYDOCS. I would please ask for confirmation on the correct answer for this particular question ID: 1471258. Thank you. -
Hi Chris! What a tricky one. To confirm that the question is correct, I labbed this up on my Windows machine. As you can see - the practice exam question is correct. The DIR command will find subdirectories named FILECHK.* as well. Here are the results of my labbing:
C:>dir C:\MYDOCS\FILECHK.* /S
Volume in drive C has no label.
Volume Serial Number is D033-816FDirectory of C:\MYDOCS
03/04/2024 09:43 AM <DIR> FILECHK.FOLDER
03/04/2024 09:43 AM 0 FILECHK.txt
1 File(s) 0 bytesDirectory of C:\MYDOCS\FOLDER2
03/04/2024 09:44 AM 0 FILECHK.bmp
03/04/2024 09:44 AM <DIR> FILECHK.private
1 File(s) 0 bytesTotal Files Listed: 2 File(s) 0 bytes 2 Dir(s) 223,950,413,824 bytes free