0

operating systems Online Quiz - 6

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

How do you get help about the command "cp"?

  1. help

  2. help cp

  3. man cp

  4. cp?


Correct Option: C

What do you use to forward errors to a file ?

  1. 1> filename

  2. 2> filename

  3. 2> /dev/null

  4. &> filename


Correct Option: B

What command do you have to use to go to the parent directory?

  1. cd /up

  2. cd ..

  3. cd ~

  4. cd -


Correct Option: B

How do you get all files with on the 3rd place an r, g or i?

  1. ls ?3[rgi]*

  2. ls [rgi]

  3. ls ??[rgi]*

  4. ls **[rgi]?


Correct Option: C
Explanation:

To answer this question, the user needs to know the basics of using wildcard characters in Linux. Wildcards are used to represent one or more characters in a filename or directory. In this case, we are looking for files that have an "r", "g", or "i" on the third place of their filename.

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

A. ls ?3[rgi]*: This option is incorrect because "?3" means to match any single character in the third position, and then we are looking for either "r", "g", or "i" as the next character. This would only match files that have a single character in the third position and then either "r", "g", or "i".

B. ls [rgi]: This option is incorrect because it would match any file that has "r", "g", or "i" anywhere in its filename. This would include files that have these characters on the third place as well as those that don't.

C. ls ??[rgi]*: This option is correct. The "??" matches any two characters in the filename, followed by either "r", "g", or "i", and then any number of other characters. This would match any file that has two characters before "r", "g", or "i" on the third place.

D. ls [rgi]?: This option is incorrect because "" means to match any number of directories recursively, and "[rgi]?" means to match any file that ends with either "r", "g", or "i", followed by any one character. This would match files that end with "r", "g", or "i", not those that have these characters on the third place.

Therefore, the correct answer is:

The Answer is: C. ls ??[rgi]*

How can you append the output of a command to a file?

  1. command << file

  2. command > file

  3. command >> file

  4. command <> file


Correct Option: C

With what can you stop a process?

  1. kill

  2. delete

  3. shutdown

  4. stop


Correct Option: A

Which of the following commands displays the full pathname of the directory you are positioned in?

  1. cd

  2. cd ~

  3. pwd

  4. man pwd


Correct Option: C

How to create a new file without opening it?

  1. more filename

  2. less filename

  3. cat filename

  4. touch filename


Correct Option: D
Explanation:

To create a new file without opening it, the user needs to use the touch command, which is option D.

Explanation for each option:

A. The more command is used to display the contents of a file one page at a time. It is not used to create a new file.

B. The less command is similar to the more command and is used to display the contents of a file one page at a time. It is also not used to create a new file.

C. The cat command is used to display the contents of a file in the terminal. It is not used to create a new file.

D. The touch command is used to create a new empty file without opening it. The command takes the name of the file as an argument. If the file already exists, then the command updates the modification timestamp of the file.

Therefore, the answer is: D. touch filename

which command can show one line summary of system status ?

  1. uptime

  2. pmon

  3. top

  4. df


Correct Option: A
Explanation:

To solve this question, the user needs to know basic commands to check system status. The user must choose the command that can show a one-line summary of system status.

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

A. uptime: This option is correct. The uptime command displays how long the system has been running, the number of users currently logged on, and the system load averages for the past 1, 5, and 15 minutes. The output is a one-line summary of system status.

B. pmon: This option is incorrect. There is no command named pmon in Linux or Unix systems.

C. top: This option is incorrect. The top command displays the system's processes in real-time and provides a dynamic, real-time view of the running system. It does not provide a one-line summary of system status.

D. df: This option is incorrect. The df command is used to display the amount of disk space available on file systems. It does not provide a one-line summary of system status.

The Answer is: A

Command to display lines that match a pattern ?

  1. find

  2. awk

  3. sed

  4. grep


Correct Option: D

command for prepare text for printing with headers and page breaks ?

  1. pr

  2. lpr

  3. pico

  4. file


Correct Option: A

Which of the following is not a linux/unix based OS

  1. UBUNTU

  2. FEDORA

  3. AMIGA

  4. DEBIAN


Correct Option: C

Which of the following is not a linux/unix based OS

  1. UBUNTU

  2. FEDORA

  3. AMIGA

  4. DEBIAN


Correct Option: C

Which Windows system was the first to incoporate the System Restore?

  1. ME

  2. 2000

  3. 98SE

  4. XP


Correct Option: A

Holding down [SHIFT] while inserting a CD does what?

  1. Ejects the CD Immediately

  2. Nothing

  3. Displays the CD Properties

  4. Turns off Auto Run


Correct Option: D

Pressing CTRL+ALT+DEL and then "K" on a Windows terminal does what?

  1. Warm boots the Terminal

  2. Shut downs the Terminal

  3. puts the Terminal in Standby

  4. Locks the Terminal


Correct Option: D
  1. Defragment the local drive

  2. Run System backup

  3. shutdown the system

  4. Move the files from a CD to a DVD


Correct Option: B

What happens when you enter "cmd" into the "run" line (Windows XP)?

  1. you get an error

  2. opens a Command Prompt window

  3. Nothing

  4. looks for files with "CMD" name


Correct Option: B

What is the Registry used for?

  1. It stores information about all of the software and hardware on the system.

  2. It stores hardware information only

  3. It stores software information only

  4. It stores system information only


Correct Option: A

In Device Manager, what does it mean when a hardware has a yellow "!" beside its name?

  1. The device is disabled

  2. The hardware is not working/not recognized

  3. The device has not yet failed, but could

  4. The hardware is set at default settings


Correct Option: B
Explanation:

To understand what it means when a hardware has a yellow "!" beside its name in Device Manager, the user needs to know what Device Manager is and what it does. Device Manager is a utility program that shows the hardware devices currently installed on a computer, and it allows the user to manage and troubleshoot those devices.

When a hardware device has a yellow "!" beside its name in Device Manager, it means that the hardware is not working properly and is experiencing a problem. The correct option is B. The yellow "!" is an indication of a driver issue or a hardware malfunction. It indicates that the device is not recognized by the system or the driver is not installed correctly. This can be caused by a variety of issues, such as outdated or corrupted drivers, conflicts with other devices, or hardware failure.

Option A is incorrect because if a device is disabled, it will have a red "X" beside its name, not a yellow "!".

Option C is incorrect because if a device is about to fail, it will have a red "X" beside its name or no icon at all. A yellow "!" indicates that the device is not working properly, but it does not necessarily mean that it is about to fail.

Option D is incorrect because the yellow "!" does not indicate that the hardware is set at default settings. It only indicates that there is a problem with the hardware.

Therefore, the correct answer is:

The Answer is: B. The hardware is not working/not recognized.

- Hide questions