1.

____ statement matches an expression for more than one alternative.(a) for(b) while(c) elif(d) caseThe question was posed to me during an interview for a job.This question is from Case and Expr Command in portion Essential Shell Programming of Unix

Answer»

Correct option is (d) case

Explanation: The case statement is the second conditional offered by the shell. This statement MATCHES an EXPRESSION for more than one ALTERNATIVE. case statements are used in menu-driven PROGRAMS. The syntax of the case statement is:

case expression in



Discussion

No Comment Found

Related InterviewSolutions