1.

Which of the following operators are used for logical execution?(a) ||(b) &&(c) %%(d) && and ||I got this question in unit test.This interesting question is from Logical Operators and Conditional Execution topic in section Essential Shell Programming of Unix

Answer»

Right OPTION is (d) && and ||

The EXPLANATION: The operators && and || are used for LOGICAL EXECUTION i.e. they act as AND, OR CONDITION respectively. The syntax for using these operators is:



Discussion

No Comment Found

Related InterviewSolutions