Shell Scripting/Shell Scripting Mcq Question Set 4 Sample Test,Sample questions

Question:
 Which symbol is used to redirect error messages to /dev/null?

1. <

2.>

3. %

4.$


Question:
Continue statment cannot be used in which loop?

1.For loop

2.until loop

3.while loop

4.case...esac


Question:
The >> symbol is used to overwrite the existing file if it exists and | is used to give input to another program.

1.True, False

2.True, True

3.False, True

4.False, False


Question:
We can redirect the error message to file named newfile using __________ command.

1.cat foo errorfile

2.cat foo >errorfile

3. cat errorfile>foo

4.cat foo 2>errorfile


Question:
What is the syntax of continue statement?

1.continue

2. continue n

3.continue this

4. All of the above


Question:
Which command saves one copy of character stream in a file and store the other to standard output?

1.who

2. tee

3. ls

4.wc


Question:
Which of the following is not true about tee command?

1. it is a feature of the shell

2. it is an external command

3. tee command duplicates its input

4.tee is an internal command


Question:
Which of the following statement causes the current iteration of the loop to exit, rather than the entire loop?

1.Continue

2.break

3.return

4. goto


Question:
Which of the following symbol(s) can be used to redirect the output to a file or another program?

1. |

2. >

3.>>

4. All of the above


Question:
Which symbol is used for taking input from standard input?

1. &

2.%

3. -

4.$


More MCQS

  1. Shell Scripting Mcq Question Set 1
  2. Shell Scripting Mcq Question Set 2
  3. Shell Scripting Mcq Question Set 3
  4. Shell Scripting Mcq Question Set 4
Search
Olete Team
Online Exam TestTop Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on Online Exam Testwebsite is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!