0

operating systems Online Quiz - 59

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

What is the command used for printing in Shell Script?

  1. print

  2. printf

  3. echo

  4. echo$


Correct Option: C

Which of the following is a commented line?

  1. *This is commented

  2. //This is commented

  3. #This is commented

  4. #/This is commented


Correct Option: C

What is the output? #!/bin/sh msg1="one" Msg2="$msg1 two" Msg3="$msg2 three" echo $msg3

  1. “””one” two” three”

  2. “one two three”

  3. one two three

  4. “$msg2 three”


Correct Option: C

Which of the following is a commented line?

  1. *This is commented

  2. //This is commented

  3. #This is commented

  4. #/This is commented


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

What is the output? #!/bin/sh msg1="one" Msg2="$msg1 two" Msg3="$msg2 three" echo $msg3

  1. “””one” two” three”

  2. “one two three”

  3. one two three

  4. “$msg2 three”


Correct Option: C

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

What is the command used for printing in Shell Script?

  1. print

  2. printf

  3. echo

  4. echo$


Correct Option: C

What is the command used for defining a shell variable?

  1. setenv

  2. setexp

  3. set

  4. unset


Correct Option: C

When was Active Directory first released with?

  1. Windows 2003 Server

  2. Windows 2000 Server

  3. Windows 2008 Server

  4. Windows 2003 Server R2


Correct Option: B

What was Active Directory called in older Microsoft documents?

  1. SIDS

  2. DTDS

  3. NTDS

  4. UIDS


Correct Option: C

Everything that 'Active Directory' tracks is considered an

  1. Object

  2. Tree

  3. Domain

  4. Forest


Correct Option: A

At the top of the Active Directory structure is the

  1. Domain

  2. Site

  3. Tree

  4. Forest


Correct Option: D

The objects held within a domain can be grouped into containers called

  1. Sites

  2. Tree

  3. Organizational Units (OUs)

  4. Trusts


Correct Option: C

Which command is used to delete all files in the current directory and all its sub-directories?

  1. go to particular directory and type rm -rf

  2. go to particular directory and type rm*

  3. go to particular directory and type *rm -rf

  4. go to particular directory and type rm -rf*


Correct Option: D

Which command is used to delete all files in the current directory and all its sub-directories?

  1. go to particular directory and type rm -rf

  2. go to particular directory and type rm*

  3. go to particular directory and type rm -rf*

  4. go to particular directory and type *rm -rf


Correct Option: C
  1. go to particular directory and type rm -rf

  2. go to particular directory and type rm*

  3. go to particular directory and type rm -rf*

  4. go to particular directory and type *rm -rf


Correct Option: C
- Hide questions