1.

Which command is used for computation and string handling?(a) expr(b) case(c) if(d) readThe question was posed to me in final exam.Asked question is from Case and Expr Command topic in portion Essential Shell Programming of Unix

Answer»

Correct choice is (a) expr

The explanation: The bourne shell can CHECK whether an integer is greater than ANOTHER or not, but it doesn’t have any COMPUTING features at all. It has to RELY totally on expr command for that PURPOSE. This command performs two functions:

•Performs arithmetic operations on integers

•Manipulates strings



Discussion

No Comment Found

Related InterviewSolutions