operating systems Online Quiz - 59
operating systems Online Quiz - 59
Questions
What is the command used for printing in Shell Script?
- print
- printf
- echo
- echo$
What is the command used for defining a shell variable?
- setenv
- setexp
- set
- unset
Which of the following is a commented line?
- *This is commented
- //This is commented
- #This is commented
- #/This is commented
What is the output? #!/bin/sh msg1="one" Msg2="$msg1 two" Msg3="$msg2 three" echo $msg3
- “””one” two” three”
- “one two three”
- one two three
- “$msg2 three”
Which of the following is a commented line?
- *This is commented
- //This is commented
- #This is commented
- #/This is commented
What is the result of doing the following? date >> file
- The date output is redirected to the file.
- The date output is redirected and appended to the end of the file.
- The date output is redirected and appended to the beginning of the file.
- None of the above
What is the command used for redirecting the standard error (stderr) to a file?
- <
- >>
- 2>
- <2
What is the output? #!/bin/sh msg1="one" Msg2="$msg1 two" Msg3="$msg2 three" echo $msg3
- “””one” two” three”
- “one two three”
- one two three
- “$msg2 three”
Which of the following will return the exit code of the last executed command?
- $%
- $#
- $?
- $!
What is the command used for changing the scope of a shell variable to a global variable?
- global
- shell
- export
- None of the above
What is the command used for printing in Shell Script?
- print
- printf
- echo
- echo$
What is the command used for defining a shell variable?
- setenv
- setexp
- set
- unset
When was Active Directory first released with?
- Windows 2003 Server
- Windows 2000 Server
- Windows 2008 Server
- Windows 2003 Server R2
What was Active Directory called in older Microsoft documents?
- SIDS
- DTDS
- NTDS
- UIDS
Everything that 'Active Directory' tracks is considered an
- Object
- Tree
- Domain
- Forest
At the top of the Active Directory structure is the
- Domain
- Site
- Tree
- Forest
The objects held within a domain can be grouped into containers called
- Sites
- Tree
- Organizational Units (OUs)
- Trusts
Which command is used to delete all files in the current directory and all its sub-directories?
- go to particular directory and type rm -rf
- go to particular directory and type rm*
- go to particular directory and type *rm -rf
- go to particular directory and type rm -rf*
Which command is used to delete all files in the current directory and all its sub-directories?
- go to particular directory and type rm -rf
- go to particular directory and type rm*
- go to particular directory and type rm -rf*
- go to particular directory and type *rm -rf
Which command is used to delete all files in the current directory and all its sub-directories?
- go to particular directory and type rm -rf
- go to particular directory and type rm*
- go to particular directory and type rm -rf*
- go to particular directory and type *rm -rf