题目
题目

IWBS001 Sample Exam Questions- Requires Respondus LockDown Browser

单项选择题

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

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

查看解析

标准答案
Please login to view
思路分析
Question restatement: Given the shell variable assignments a=10; b=5; c=3, which of the following conditions is true? Option 1: [ $c = ( 5 – 2 ) ] - This tries to compare c to the result of ( 5 – 2 ). In shell, the expression ( 5 – 2 ) is not a valid arithmetic expression inside [ ... ]; arithmetic should be performed with $(( ... )) or inside let. Even if you intended arit......Login to view full explanation

登录即可查看完整答案

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

更多留学生实用工具

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