What is the most likely problem with this script () VAR=1 ((VAR=$VAR+1)) while [ $VAR -It 10 ] do echo $VAR done
A: #!/bin/ksh line is missing
B: Variable name VAR is not properly initialized
C: Loop variable is not incremented inside the loop
D: Replace brackets with braces
A: #!/bin/ksh line is missing
B: Variable name VAR is not properly initialized
C: Loop variable is not incremented inside the loop
D: Replace brackets with braces
举一反三
- What is the most likely problem with this script () VAR=1 ((VAR=$VAR+1)) while [ $VAR -It 10 ] do echo $VAR done A: #!/bin/ksh line is missing B: Variable name VAR is not properly initialized C: Loop variable is not incremented inside the loop D: Replace brackets with brace
- 以下打印的结果是? <?php $var='a';$VAR='b';echo"$var$VAR"; A: aa B: C: a
- 假如在脚本中定义了如下的变量:var="hello itheima"那么下列哪个选项可以成功打印变量var的值itheima?()(2.0) A: echo "var"; B: echo 'var'; C: echo "$var"; D: echo '$var'
- 设Varξ=Varη=Var(ξ-2η)=1, 则COV(ξ,η)=______
- 设随机变量X的方差存在,Var(X)>0,则以下结论正确的是 A: Var(X) > Var(1-X) B: Var(X) < Var(1-X) C: Var(X) = Var(1-X) D: Var(X) + Var(1-X) = 1