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.$

Posted Date:-2022-01-28 09:27:24


Question:
Continue statment cannot be used in which loop?

1.For loop

2.until loop

3.while loop

4.case...esac

Posted Date:-2022-01-28 09:23:43


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

Posted Date:-2022-01-28 09:26:38


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

Posted Date:-2022-01-28 09:26:59


Question:
What is the syntax of continue statement?

1.continue

2. continue n

3.continue this

4. All of the above

Posted Date:-2022-01-28 09:24:35


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

Posted Date:-2022-01-28 09:27:55


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

Posted Date:-2022-01-28 09:28:21


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

Posted Date:-2022-01-28 09:24:10


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

Posted Date:-2022-01-28 09:26:07


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

1. &

2.%

3. -

4.$

Posted Date:-2022-01-28 09:25:21


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
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website 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!