1.

Which of the following commands let us perform a set of instructions repeatedly?(a) for(b) while(c) until(d) for, while, untilThe question was asked in an interview for internship.Asked question is from Shell Programming using Various Commands in portion Essential Shell Programming of Unix

Answer»

The correct choice is (d) for, while, until

To ELABORATE: For REPEATEDLY performing a set of instructions, we have to use loops. Shell features THREE TYPES of loops —while, for and until. All of them repeat the INSTRUCTION set enclosed by certain keywords.



Discussion

No Comment Found

Related InterviewSolutions