operating systems Online Quiz - 59

operating systems Online Quiz - 59

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

What is the command used for printing in Shell Script?

  1. print
  2. printf
  3. echo
  4. echo$
Question 2 Multiple Choice (Single Answer)

What is the command used for defining a shell variable?

  1. setenv
  2. setexp
  3. set
  4. unset
Question 3 Multiple Choice (Single Answer)

Which of the following is a commented line?

  1. *This is commented
  2. //This is commented
  3. #This is commented
  4. #/This is commented
Question 4 Multiple Choice (Single Answer)

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”
Question 5 Multiple Choice (Single Answer)

Which of the following is a commented line?

  1. *This is commented
  2. //This is commented
  3. #This is commented
  4. #/This is commented
Question 6 Multiple Choice (Single Answer)

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
Question 7 Multiple Choice (Single Answer)

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

  1. <
  2. >>
  3. 2>
  4. <2
Question 8 Multiple Choice (Single Answer)

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”
Question 9 Multiple Choice (Single Answer)

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

  1. $%
  2. $#
  3. $?
  4. $!
Question 10 Multiple Choice (Single Answer)

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
Question 11 Multiple Choice (Single Answer)

What is the command used for printing in Shell Script?

  1. print
  2. printf
  3. echo
  4. echo$
Question 12 Multiple Choice (Single Answer)

What is the command used for defining a shell variable?

  1. setenv
  2. setexp
  3. set
  4. unset
Question 13 Multiple Choice (Single Answer)

When was Active Directory first released with?

  1. Windows 2003 Server
  2. Windows 2000 Server
  3. Windows 2008 Server
  4. Windows 2003 Server R2
Question 14 Multiple Choice (Single Answer)

What was Active Directory called in older Microsoft documents?

  1. SIDS
  2. DTDS
  3. NTDS
  4. UIDS
Question 15 Multiple Choice (Single Answer)

Everything that 'Active Directory' tracks is considered an

  1. Object
  2. Tree
  3. Domain
  4. Forest
Question 16 Multiple Choice (Single Answer)

At the top of the Active Directory structure is the

  1. Domain
  2. Site
  3. Tree
  4. Forest
Question 17 Multiple Choice (Single Answer)

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

  1. Sites
  2. Tree
  3. Organizational Units (OUs)
  4. Trusts
Question 18 Multiple Choice (Single Answer)

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*
Question 19 Multiple Choice (Single Answer)

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
Question 20 Multiple Choice (Single Answer)

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