examcram OS question

paige1paige1 Member Posts: 117
Hello everyone.

I could really use an explanation on this one.

I am taking the practice test (OS) and come across question #10
it reads:

The MYFILE.EXE is located in the C:\Test directory. To execute the file from anywhere, you...

A) add C:\Test to the Path statement.

B) add the line C:\Test\MYFILE.EXE to the CONFIG.SYS file.

C) add the line DEVICE=MYFILE.EXE to the AUTOEXEC.BAT file.

D) add ;C:\TEST to the Path statement.

I choose A). Wrong answer. icon_sad.gif Right answer D). :o

I thought the semicolon was for setting off multiple path entries, not a part of the entry itself. (path=c:\test;d:\test2)

Does case (upper or lower) make a difference?

Here's the kicker,..The explanation for the right answer was...

"The Path statement in the AUTOEXEC.BAT file sets up the system with an automatic search order for executing files. To make a file, such as MYFILE.EXE, able to be executed from anywhere, the filename must be added to the Path statement (with a semicolon at the beginning)".

Shouldn't it read that the directory name must be added to the Path statement with a semicolon? (As opposed to the file name). icon_confused.gif:
Self-confidence is the first requisite to great undertakings.

Samuel Johnson

Comments

  • pipearcepipearce Member Posts: 19 ■□□□□□□□□□
    Hello Paige1

    I can see your confusion with the question and as you suggest the explanation is incorrect.

    I believe the question assumes a Path statement already exists, in which case the provided answer is correct. If it did not already exist then you would not need the semi-colon...it is just used to separate entries in the path statement.

    And it is the Directory name that is added to the path, not the file name.

    Hope this helps!

    Cheers, Paul
  • Doomsday JDoomsday J Member Posts: 43 ■■□□□□□□□□
    Classic example of a trick question.

    You gotta read each question and answer very carefully!
    If you dont stand for something, you will fall for anything.
Sign In or Register to comment.