exam questions

Exam MD-100 All Questions

View all questions & answers for the MD-100 exam

Exam MD-100 topic 5 question 15 discussion

Actual exam question from Microsoft's MD-100
Question #: 15
Topic #: 5
[All MD-100 Questions]

HOTSPOT -
You have a computer named Computer1 that runs Windows 10 and contains the following files:
✑ C:\Folder1\File1.bat
✑ C:\Folder1\File1.exe
✑ C:\Folder1\File1.cmd
A user named User1 is assigned Read & execute to all the files.
Computer1 is configured as shown in the exhibit.

Use the drop-down menus to select the answer choice that completes each statement based on the information presented in the graphic.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
The command prompt will open in the user profile folder. In the exhibit, USERPROFILE is C:\Users\User1.
PathExt is an Environment Variable that stores a list of the file extensions for operation system to execute. When running a command line that does not contain an extension, the system uses the value of this environment variable to determine which extensions to look for and in what order, such as .com first, follow by
.exe, .bat, .cmd, which happens to be the default value stored in the PathExt by Windows.
In the exhibit, PATHEXT shows that .exe comes before .bat and .cmd. Therefore, File1.exe will run.
Reference:
https://www.nextofwindows.com/what-is-pathext-environment-variable-in-windows

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Anthony_2770
Highly Voted 4 years, 6 months ago
This exam has too many incorrect answers. The order of execution is controlled by the PATHEXT environment variable. File1.exe will run
upvoted 17 times
FKF
4 years, 3 months ago
File.bat is correct since "c:\folder1\" is not listed in the PATH, just above PATHEXT.
upvoted 2 times
...
forummj
4 years, 5 months ago
Personally, I'm not taking what I see for granted, I'm researching any question I don't know for certain, so this exam not being 100% is perfect for studying.
upvoted 23 times
AVP_Riga
4 years, 1 month ago
I think that, just for training it is good. To make some effort, to look for information. But if you just want to memorize the answers and cheat, then another thing.
upvoted 3 times
...
configmike
4 years ago
exactly. If I'm not sure, I test between two VM's. Learning a lot about stuff !
upvoted 2 times
...
...
...
Nodorf
Highly Voted 4 years, 3 months ago
I just did the test in my lab machine and the exe ran
upvoted 9 times
...
flabezerra
Most Recent 2 years, 6 months ago
cd env: dir See for your self and play with it :) examtopics is the best!
upvoted 1 times
...
skalolaz
2 years, 9 months ago
Correct. Tested. Thought that receive error :)
upvoted 1 times
...
ZahiLevi
3 years, 3 months ago
Incorrect File.bat is correct since, I test it in my lab
upvoted 1 times
...
Nail
4 years, 6 months ago
I think it should be file.exe since it is listed first in PATHEXT.
upvoted 6 times
HvD
3 years, 3 months ago
Maybe I see another screendump then you do, but I see .com first.
upvoted 1 times
RodrigoT
3 years, 3 months ago
COM is not CMD.
upvoted 1 times
...
...
PanKok
4 years, 6 months ago
https://www.nextofwindows.com/what-is-pathext-environment-variable-in-windows
upvoted 2 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago