Which of the following shell scripts (if any) correctly prints TRUE if x and y are both equal to 10? Select all that apply.多项选择题

A

if [ $x == 10 & $y == 10 ]; then echo TRUE fi

B

None of the other answers is correct

C

if [ $x -eq 10 -a $y -eq 10 ]; then echo TRUE fi

D

if [ $x == 10 && $y == 10 ]; then echo TRUE fi

E

if [ $x = 10 && $y = 10 ]; then echo TRUE fi

登录即可查看完整答案

我们收录了全球超50000道真实原题与详细解析,现在登录,立即获得答案。

更多留学生实用工具

加入我们,立即解锁 海量真题独家解析,让复习快人一步!