题目
题目
单项选择题

Given the following shell variable assignments, a=6; b=10; c=15 Which of the following conditions is true?

选项
A.[ $a –le 6 ]
B.[ $b = ($c – 5) ]
C.[ $b –eq 10 –o a –gt 5 ]
D.[ c –ge 10 ]
查看解析

查看解析

标准答案
Please login to view
思路分析
We start by restating the setup and the answer choices clearly, using the given shell variable values: a=6, b=10, c=15. Option 1: [ $a –le 6 ] - In proper shell syntax this is [ $a -le 6 ]. With a=6, this tests whether 6 is less than or equal to 6, which is true. The test succeeds, so this option is valid. Option 2: [ $b = ($c – 5) ] - Here the expression uses ($c – 5) whi......Login to view full explanation

登录即可查看完整答案

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

更多留学生实用工具

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