0

operating systems Online Quiz - 60

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

To unhide the selected row

  1. CTRL + SHIFT + )

  2. CTRL + SHIFT + (

  3. CTRL + (

  4. CTRL + U


Correct Option: B

To apply the outline border to selected cells

  1. CTRL + SHIFT + _

  2. CTRL + &

  3. CTRL + SHIFT + &

  4. CTRL + B


Correct Option: C

To remove the outline border to selected cells

  1. CTRL + SHIFT + &

  2. CTRL + SHIFT + _

  3. CTRL + &

  4. CTRL + B


Correct Option: B

To insert a new worksheet

  1. CTRL + N

  2. SHIFT + F11

  3. CTRL + W

  4. SHIFT + W


Correct Option: B

_____________ is the command that writes the last 10 lines of a file to the screen.

  1. head

  2. last

  3. tail

  4. cat


Correct Option: C

Which command is used to change your password?

  1. pwd

  2. Passwd

  3. password

  4. user


Correct Option: B

Which command will display a calendar?

  1. ls

  2. cat

  3. grep

  4. cal


Correct Option: D

Which command can be used to display the contents of a file on the screen?

  1. dir

  2. cp

  3. cal

  4. cat


Correct Option: D

Which command would you use to create a sub-directory in your home directory?

  1. dir

  2. rmdir

  3. cd

  4. mkdir


Correct Option: D

_____________ is the command that writes the first 10 lines of a file to the screen.

  1. whereami

  2. head

  3. dir

  4. ls


Correct Option: B

The ________ command will display the absolute pathname for the directory that you are wokring in.

  1. pwd

  2. cwd

  3. dir

  4. ls


Correct Option: A

wc command will report mispelled words.

  1. True

  2. False


Correct Option: A

Which command allows you to determine if a host is connected to the Internet?

  1. ls

  2. dir

  3. ping

  4. host


Correct Option: C

The file assign4.html has permissions set as rwxrwxrwx

  1. The file is really a directory and was named incorrectly.

  2. It is impossible for an html file to have permissions set that way.

  3. Everyone can read, write, and execute the file.

  4. The file can not be viewed on the WWW.


Correct Option: C

AI Explanation

To answer this question, we need to understand the permissions set for files in a Linux or Unix-like operating system.

In Unix-based systems, file permissions are represented by a series of 10 characters. The first character represents the file type, and the remaining nine characters represent the permissions for the file's owner, group, and others.

The permissions are represented by three sets of rwx (read, write, execute) flags, corresponding to the owner, group, and others.

In this case, the permissions for the file "assign4.html" are set as "rwxrwxrwx". Let's break it down:

  • "rwx" for the owner: The owner of the file has read, write, and execute permissions.
  • "rwx" for the group: The group that the file belongs to also has read, write, and execute permissions.
  • "rwx" for others: All other users on the system also have read, write, and execute permissions.

Therefore, option C is correct: Everyone can read, write, and execute the file. The permissions are set to allow full access to the file for all users on the system.

What is the use of INITIALIZE verb?

  1. Used to initialize some value to a variable

  2. Numeric values are set to zero, alphabetic and alphanumberic variables are set to spaces.

  3. All variables are set to spaces.

  4. None of the above


Correct Option: B

AI Explanation

To answer this question, you need to understand the use of the INITIALIZE verb. Let's go through each option to understand why it is correct or incorrect:

Option A) Used to initialize some value to a variable - This option is incorrect. The INITIALIZE verb is used to initialize variables with specific values, but it does not allow for specifying any specific value.

Option B) Numeric values are set to zero, alphabetic and alphanumeric variables are set to spaces - This option is correct. The INITIALIZE verb is commonly used in programming languages to initialize variables. When used, it sets numeric variables to zero and alphabetic or alphanumeric variables to spaces.

Option C) All variables are set to spaces - This option is incorrect. The INITIALIZE verb does not set all variables to spaces. It only sets alphabetic and alphanumeric variables to spaces.

Option D) None of the above - This option is incorrect. Option B is the correct answer.

The correct answer is B. This option is correct because the INITIALIZE verb is used to set numeric values to zero and alphabetic or alphanumeric variables to spaces.

When a thread blocks on I/O, which of the following are true?

  1. The thread enters the ready state

  2. The thread enters the dead state

  3. No other thread may perform I/O

  4. The thread enters the waiting state


Correct Option: D

What is the command used for redirecting the standard error (stderr) to a file?

  1. >>

  2. 2>

  3. <2


Correct Option: C

What is the result of doing the following? date >> file

  1. The date output is redirected to the file.

  2. The date output is redirected and appended to the end of the file.

  3. The date output is redirected and appended to the beginning of the file.

  4. None of the above


Correct Option: B

Which of the following will return the exit code of the last executed command?

  1. $%

  2. $#

  3. $?

  4. $!


Correct Option: C

What is the command used for changing the scope of a shell variable to a global variable?

  1. global

  2. shell

  3. export

  4. None of the above


Correct Option: C
- Hide questions