0

operating systems Online Quiz - 96

Description: operating systems Online Quiz - 96
Number of Questions: 28
Created by:
Tags: operating systems
Attempted 0/28 Correct 0 Score 0
  1. True

  2. False


Correct Option: A
Explanation:

To solve this question, the user needs to know what a multi-user operating system is. A multi-user operating system is an operating system that allows multiple users to access and use a single computer system simultaneously. This type of operating system is commonly used in large organizations and institutions where many users need access to the same resources.

The correct answer is:

A. True

"PWD" stands for?

  1. Preserve Working Directory

  2. Present Workspace Directive

  3. Preserve Workable Diskspace

  4. Present Working Directory


Correct Option: D
  1. pass -change

  2. changepword

  3. chpassword

  4. passwd


Correct Option: D
  1. An E-mail client

  2. A text editor

  3. The UNIX telnet service

  4. An FTP client


Correct Option: B

What will be the output of "echo this || echo that && echo other"?

  1. this

  2. that

  3. this that

  4. this other


Correct Option: D

AI Explanation

To answer this question, we need to understand the concept of logical operators in shell scripting.

In shell scripting, the || operator is the logical OR operator, and the && operator is the logical AND operator.

When the || operator is used, the command following it will only be executed if the preceding command fails or returns a non-zero exit status. On the other hand, when the && operator is used, the command following it will only be executed if the preceding command succeeds or returns a zero exit status.

Let's go through the given command step by step:

  1. echo this - This command will be executed and will output "this" to the console.

  2. echo that - This command will not be executed because the preceding command (echo this) succeeds and returns a zero exit status.

  3. echo other - This command will be executed and will output "other" to the console.

Therefore, the output of the given command "echo this || echo that && echo other" will be "this other".

The correct answer is option D) this other.

  1. test $a -eq $b

  2. test $a -equal $b

  3. test $a = $b

  4. sh -c test $a == $b


Correct Option: A

Which of the following would return the process ID of the sleep command?

  1. sleep 1 & echo $#

  2. test sleep 1

  3. sleep 1 & echo $?

  4. sleep 1 & echo $!


Correct Option: A,C

Which of the following will always output "xyz"?

  1. $abc=xyz; echo $abc

  2. abc=xyz ; echo $abc

  3. export abc=xyz ; echo $abc

  4. abc=xyz; export abc=xyz ; echo $abc


Correct Option: D
  1. mv new old

  2. none

  3. cp new old

  4. rm new old


Correct Option: A

What do you use to forward errors to a file?

  1. 2> filename

  2. 1> filename

  3. &> filename

  4. 2> /dev/null


Correct Option: D

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

  1. cd -

  2. cd ..

  3. cd ~

  4. cd /up


Correct Option: C

How do you delete a file?

  1. rm filename

  2. less filename

  3. touch filename

  4. dl filename


Correct Option: A

With what can you stop a process?

  1. stop

  2. kill

  3. delete

  4. shupdown


Correct Option: B

How can you display a list of all files, including the hidden files?

  1. ls -a

  2. ls -all

  3. find -all

  4. find a


Correct Option: A

What does the command ls do?

  1. isplay of the contents of a file

  2. Shows a calendar

  3. Display of files and folders, present in the folder where you are

  4. Opening a file


Correct Option: C

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: B

How to create a new file without opening it?

  1. pico filename

  2. cat filename

  3. more filename

  4. touch filename


Correct Option: D

AI Explanation

To create a new file without opening it, you can use the touch command.

Option A) pico filename - This option is incorrect because pico is a text editor, not a command to create a new file without opening it.

Option B) cat filename - This option is incorrect because cat is a command used to display the contents of a file, not create a new file.

Option C) more filename - This option is incorrect because more is a command used to view a file one screen at a time, not create a new file.

Option D) touch filename - This option is correct because the touch command is used to create a new file without opening it. It updates the access and modification timestamps of the file, and if the file does not exist, it creates an empty file with the specified name.

The correct answer is Option D.

With what command you can see your user name?

  1. pwd

  2. me

  3. i

  4. whoami


Correct Option: D
  1. mcells

  2. fragments

  3. inodes table

  4. cylinder group


Correct Option: C
  1. execute a remote command

  2. log in and initiate a shell on a remote system

  3. This is a restricted shell on HP-UX.

  4. grant read-only access to a system


Correct Option: C
  1. Bourne shell

  2. Korn shell

  3. C shell

  4. POSIX shell


Correct Option: A
- Hide questions