0

operating systems Online Quiz - 12

Description: operating systems Online Quiz - 12
Number of Questions: 20
Created by:
Tags: operating systems
Attempted 0/20 Correct 0 Score 0

Which command is used to see the disk volume label?

  1. Ver

  2. Vol

  3. Version

  4. Volume


Correct Option: B

Which command is used to see the version?

  1. Ver

  2. Version

  3. Verson

  4. None of the above


Correct Option: A

What is the name of the batch file that is automatically run when MSDOS is booted?

  1. Run.bat

  2. Config.sys

  3. Config.bat

  4. Autoexec.bat


Correct Option: D

What is the switch that is used to make sure that the copy command copied files correctly

  1. /a

  2. /c

  3. /s

  4. /v


Correct Option: D

What will be the output of the command prompt $l$p$g?

  1. C:>

  2. C:>>

  3. C:


Correct Option: A

Which among the following are the best tools for fixing errors on disks?

  1. Fdisk

  2. Scandisk

  3. Chkdsk

  4. Fixdsk


Correct Option: B

Which command can be used to create the disk’s tracks and sectors?

  1. Fdisk

  2. Format

  3. Chkdsk

  4. Attrib


Correct Option: B

Which command in DOS can be used to recover accidentally deleted files?

  1. UNDELETE

  2. DELETE/CANCEL

  3. RESTORE

  4. RECOVER


Correct Option: A

Which command is used to copy all files from drive a with extension .txt to the currently logged drive and directory?

  1. Copy a. *.txt

  2. Copy *.txt a:

  3. Copy *.txt c:

  4. Copy *.txt all.txt


Correct Option: A

Which command is used to create root directory and FAT on disk?

  1. Chkdsk

  2. Command.com

  3. Fat

  4. Format


Correct Option: D

AI Explanation

To answer this question, we need to understand the purpose of each command and how they are used in creating the root directory and File Allocation Table (FAT) on a disk.

Option A) Chkdsk - This command is used to check a disk for errors and repair any issues found. It does not create the root directory and FAT.

Option B) Command.com - This command is the command interpreter for MS-DOS and Windows 9x. It does not specifically create the root directory and FAT.

Option C) Fat - This command does not exist in the context of creating the root directory and FAT on a disk.

Option D) Format - This command is used to prepare a disk for use by creating a new file system, including the root directory and FAT. Therefore, the correct answer is D.

The correct answer is D) Format. This option is correct because the format command is used to create the root directory and FAT on a disk.

Which command is used to delete all the files extension .txt on the current drive and directory?

  1. Del .txt

  2. Erase .txt

  3. Del *.txt

  4. Del ./p


Correct Option: C
Explanation:

To solve this question, the user needs to know the correct command to delete all files with a certain file extension.

Now, let's go through each option and explain why it is right or wrong:

A. Del .txt: This command will not work as it deletes only files with the exact name ".txt", not all files with the ".txt" extension.

B. Erase .txt: This command will not work as it deletes only files with the exact name ".txt", not all files with the ".txt" extension.

C. Del *.txt: This command is correct. It will delete all files with the ".txt" extension.

D. Del ./p: This command is incorrect. The "/p" option is not a valid option for the "del" command, and the command does not specify which file extension to delete.

Therefore, the correct answer is:

The Answer is: C

Which command is used to delete all the files in the root directory of drive a

  1. A:\del

  2. Del . a:

  3. Del a:\

  4. Erase .


Correct Option: C

Which command is used to display a list of deleted files that DOS can undelete?

  1. Undelete .

  2. Undelete/all

  3. Undelete/list

  4. None of the above


Correct Option: C

Which command is used to undelete delete a bunch of files with extension doc that you have just deleted

  1. Undelete

  2. Undelete *.doc

  3. Undelete/all

  4. All of the above


Correct Option: B

Which file in MSDOS contain internal command that are loaded during booting process?

  1. Io.sys

  2. Msdos.sys

  3. Command.com

  4. Config.sys


Correct Option: C

Which is valid extension that user creates on operating system?

  1. Exe

  2. Com

  3. Sys

  4. Bat


Correct Option: D

How do you close a if block in unix shellscript?

  1. end if

  2. }

  3. fi

  4. #


Correct Option: C

which of the following command shows ALL the content of a directory in unix/GNUlinux

  1. ls -l

  2. ls

  3. ls -a

  4. dir


Correct Option: C

how do we make a file hidden in unix?

  1. prefix the name of file with a '.'

  2. prefix the name of file with a '~'

  3. by changing its permissions

  4. Any of the Above


Correct Option: A
- Hide questions