1.

Every if is closed with a corresponding ____(a) else(b) fi(c) if(d) else ifThe question was posed to me in a job interview.I'd like to ask this question from Logical Operators and Conditional Execution topic in division Essential Shell Programming of Unix

Answer»

Right answer is (B) FI

The best I can explain: if and ELSE statements are used for making two-way decisions. Every if is CLOSED with the corresponding fi. If we don’t do this we’ll encounter an ERROR.



Discussion

No Comment Found

Related InterviewSolutions