____ statement matches an expression for more than one alternative.

Hoàng Minh An

New member
____ statement matches an expression for more than one alternative.
A. for
B. while
C. elif
D. case
 
Answer: d
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
Code:
   pattern1) commands1 ;;
   pattern2) commands2 ;;
   . . . . .
esac
 

Tìm kiếm

Back
Top