题目
单项选择题
Given the following shell variable assignments, a=2; b=5; c=10 Which of the following conditions is true?
选项
A.[ $a –eq 3 –o $b –ge 5 ]
B.[ a –eq 2 ]
C.[ $c = (3 + 7) ]
D.[ $b –gt 5 ]
查看解析
标准答案
Please login to view
思路分析
We start by restating the problem: we have shell variable assignments a=2, b=5, c=10, and we must determine which of the given test conditions is true.
Option 1: [ $a –eq 3 –o $b –ge 5 ]. If we substitute the variables, assuming correct shell syntax is [ $a -eq 3 -o $b -ge 5 ], this becomes [ 2 -eq 3 -o 5 -ge 5 ]. The left side 2 -eq 3 is false, while th......Login to view full explanation登录即可查看完整答案
我们收录了全球超50000道考试原题与详细解析,现在登录,立即获得答案。
类似问题
Given the following shell variable assignments, a=6; b=10; c=15 Which of the following conditions is true?
Given the following shell variable assignments, a=10; b=5; c=3 Which of the following conditions is true?
Which of the following shell scripts (if any) correctly prints TRUE if x and y are both equal to 10? Select all that apply.
The expression "if [ $count -gt 0 ]" checks if count is .....
更多留学生实用工具
希望你的学习变得更简单
加入我们,立即解锁 海量真题 与 独家解析,让复习快人一步!