Examveda

Which type of command in DOS needs additional files for their execution?

A. Internal commands

B. External commands

C. Batch commands

D. Redirectors

Answer: Option B

Solution (By Examveda Team)

External commands:
External commands in DOS are programs or executable files stored on the disk that are not built into the command interpreter (like command.com). These commands require additional files (the executable files themselves) to execute.

When you enter an external command in DOS, such as copy, dir, or format, DOS searches for the corresponding executable file on the disk and loads it into memory for execution. These commands are separate programs stored as files on the disk, and thus they need these files (external executables) to be present and accessible in order to run.

Internal commands:
Internal commands are built into the command interpreter (command.com) itself. They do not require additional files because their functionality is already integrated into the command interpreter. Examples of internal commands include dir, cd, mkdir, and type. These commands are part of the command interpreter and are available as soon as DOS is booted, without needing any additional files.

Batch commands:
Batch commands refer to sequences of commands stored in a file with a .bat extension. They are essentially scripts that contain a series of DOS commands to be executed sequentially. While batch files themselves are files that need to be accessed, the commands within them (if they are internal commands) do not require additional files beyond the command interpreter.

Redirectors:
Redirectors in DOS are symbols (>, <, >>) used to redirect input and output between commands and files. They do not themselves require additional files for execution; rather, they facilitate the manipulation of input and output streams.

Therefore, the correct answer is Option B: External commands, which require additional files for their execution.

This Question Belongs to Computer Science >> Disk Operating System (DOS)

Join The Discussion

Related Questions on Disk Operating System (DOS)