ExamVeda
Login
Home
81
Which command is used to delete all the files in the root directory of drive a
Discuss
Answer & Solution
Answer: Option B
Solution:
Del . a: is the command used in DOS to delete all files in the root directory of drive A.

Explanation:
The del command is used to delete files in DOS.
. specifies that all files (regardless of their extensions) should be deleted.
a: specifies the drive letter A, indicating that the operation should be performed on drive A (the floppy disk drive).

When you execute del . a: at the DOS prompt, it will delete all files in the root directory of the A drive.

A:\del is not the correct syntax for deleting all files on drive A. The correct command starts with del followed by . and the drive letter.

Del a: is incorrect because it doesn't specify the files to delete (missing . or specific file names).

Erase . is not a valid command in DOS for deleting files. The correct command is del for deleting files.

Therefore, the correct answer is Option B: Del . a:.
82
Which command is used to display a list of deleted files that DOS can undelete?
Discuss
Answer & Solution
Answer: Option C
Solution:
The undelete command in DOS is used to recover accidentally deleted files.
/list option with undelete displays a list of files that have been deleted and are available for recovery.

This command helps users identify which files can be restored to their original state before permanent deletion.

Undelete .:
This syntax is not the correct way to list deleted files. It suggests attempting to undelete all files, which is not how the command operates.

Undelete/all:
There is no /all option for the undelete command in DOS. This option does not exist.

None of the above:
This option is incorrect because Undelete/list is a valid command in DOS to display a list of deleted files.

Therefore, the correct answer is Option C: Undelete/list.
83
Which command is used to undelete delete a bunch of files with extension doc that you have just deleted
Discuss
Answer & Solution
Answer: Option B
Solution:
The undelete command in DOS is used specifically for recovering deleted files.
Using *.doc after undelete specifies that only files with the ".doc" extension should be considered for recovery.

This command is useful when you have accidentally deleted multiple files with the ".doc" extension and wish to restore them.

Undelete:
While undelete alone initiates the undelete process, it requires specifying the file extension or name pattern to recover specific files.

Undelete/all:
There is no /all option for the undelete command in DOS. This option does not exist.

All of the above:
This option is incorrect because only Option B (Undelete *.doc) accurately describes the command to undelete files with a specific extension.

Therefore, the correct answer is Option B: Undelete *.doc.
84
Which file in MSDOS contain internal command that are loaded during booting process?
Discuss
Answer & Solution
Answer: Option C
Solution:
Command.com is the executable file that serves as the command interpreter in MS-DOS and early versions of Windows.
During the booting process of MS-DOS, Command.com is loaded into memory. It processes commands typed into the command prompt and executes them.
Internal commands, such as DIR, COPY, DEL, etc., are built-in functions of Command.com and are available immediately upon booting.
Io.sys and Msdos.sys are system files in MS-DOS that are crucial for system operations but do not contain the internal commands loaded during the booting process.
Config.sys is a configuration file in MS-DOS that is used to configure the system at startup, but it does not contain internal commands.

Therefore, the correct answer is Option C: Command.com.
85
Which is the valid filename assign in MS-DOS?
Discuss
Answer & Solution
Answer: Option C
Solution:
Ram_$.txt:
This is a valid filename format in MS-DOS.

Explanation:
In MS-DOS, filenames can have up to 8 characters followed by a period (.) and up to 3 characters for the extension. The characters allowed for filenames are letters (A-Z, a-z), digits (0-9), and certain special characters like underscore (_), dollar sign ($), and tilde (~).
  • Ram*.txt: This filename is invalid because the asterisk (*) is not allowed in filenames in MS-DOS.
  • Ram?.doc: This filename is invalid because the question mark (?) is not allowed in filenames in MS-DOS.
  • Ram_$.txt: This filename is valid because it uses the underscore (_) and dollar sign ($) characters, which are allowed in MS-DOS filenames.
  • None of above: This option is incorrect because Ram_$.txt is a valid filename format in MS-DOS.
Therefore, the correct answer is Option C: Ram_$.txt.
86
Which is valid extension that user creates on operating system?
Discuss
Answer & Solution
Answer: Option D
Solution:
In operating systems like MS-DOS and Windows, file extensions are used to identify the type of files and associate them with specific applications or actions. Here’s a breakdown of the options:

Exe: This extension typically denotes executable files in Windows. Executable files contain instructions that a computer can execute directly.
Com: This extension is used for command files in MS-DOS and Windows. It stands for "command".
Sys: This extension is used for system files in MS-DOS and Windows. System files are essential files used by the operating system.
Bat: This extension is used for batch files in MS-DOS and Windows. Batch files contain a sequence of commands that are executed one after another.

Therefore, the correct answer is Option D: Bat.
87
Which of the following file names are invalid in MSDOS?
Discuss
Answer & Solution
Answer: Option D
Solution:
In MS-DOS (and generally in file systems), filenames have certain rules and restrictions regarding valid characters and format:

MYFILE.DOS: This filename is valid. It follows the convention of using letters, numbers, and the dot (.) separator, which is standard for file extensions.
CHECK$.(1): This filename is valid. It uses letters, numbers, and special characters like "$" and "(", which are allowed in MS-DOS filenames.
Verified.###: This filename is valid. It uses letters, numbers, and the dot (.) separator, with numbers and the pound sign (#), which are allowed in filenames.
Qwerty.1?3: This filename is invalid. The "?" character is not allowed in MS-DOS filenames. MS-DOS restricts filenames to letters, numbers, and a few special characters like dot (.) and underscore (_).

Therefore, the correct answer is Option D: Qwerty.1?3.
88
Which of the following statements in regard to directories is false?
Discuss
Answer & Solution
Answer: Option D
Solution:
In MS-DOS and modern operating systems, directories (or folders) are organizational structures used to store files. Here's an analysis of each statement:

Directories can exist inside directories:
This statement is true. Directories can contain other directories, forming a hierarchical structure where directories can be nested within each other.

The root directory is always at the highest level:
This statement is generally true. The root directory is the top-most directory in a file system hierarchy. It contains all other directories and files on the disk.

Directories with files can be deleted:
This statement is true. Directories that contain files can be deleted from the file system. Deleting a directory typically removes all files and subdirectories contained within it.

Directories cannot be renamed:
This statement is false. Directories can be renamed in MS-DOS and other operating systems. Renaming a directory changes its name while keeping its contents intact.

Therefore, the correct answer is Option D: Directories cannot be renamed.
89
Which of the following statements is true in regard to diskcopy?
Discuss
Answer & Solution
Answer: Option D
Solution:
In MS-DOS, diskcopy is a command used to duplicate the entire contents of one floppy disk to another. Here's an analysis of each statement:

Copy and diskcopy are the same:
This statement is false. While both copy and diskcopy are commands in MS-DOS, they serve different purposes. Copy is used to copy files, whereas diskcopy is used to duplicate entire disks.

Discopy is a built-in command in DOS:
This statement is false. There is no discopy command in MS-DOS. The correct command for disk duplication is diskcopy.

Diskcopy can be used on hard disks:
This statement is true. Although diskcopy is primarily used for floppy disks, it can also be used to copy data between floppy disks and hard disks.

Therefore, the correct answer is Option D: Diskcopy can be used with a floppy and a hard disk.
90
Which switch should be used in the DIR command to view files in all directories?
Discuss
Answer & Solution
Answer: Option C
Solution:
In MS-DOS, the dir command is used to list the files and directories in the current directory. Here's an analysis of each option:

/p:
This switch is used in the dir command to display the results one screen at a time, pausing after each screenful of information. It does not list files in all directories.

/w:
This switch is used to display a wide list format with filenames listed across the page. It does not list files in all directories.

/s:
This switch is used to display files in all directories and subdirectories of the current directory. It recursively lists files from the current directory down through all levels of subdirectories.

/l:
This switch is not valid in the dir command for viewing files in all directories. It typically represents lowercase conversion, but not in the context of listing files in directories.

Therefore, the correct answer is Option C: /s, which should be used in the DIR command to view files in all directories.