1.

Which one of the following is used for looping with a list?(a) while(b) until(c) case(d) forThe question was asked in an internship interview.The doubt is from Shell Programming using Various Commands topic in division Essential Shell Programming of Unix

Answer» RIGHT choice is (d) for

Easy explanation: The SHELL’s for loop differs in structure as used in C. for loop doesn’t test a condition but it uses a LIST INSTEAD. The syntax for USING for loop is:


Discussion

No Comment Found

Related InterviewSolutions