• 2022-06-05
    假如在脚本中定义了如下的变量:var="hello itheima"那么下列哪个选项可以成功打印变量var的值itheima?()(2.0)
    A: echo "var";
    B: echo 'var';
    C: echo "$var";
    D: echo '$var'
  • C

    内容

    • 0

      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

    • 1

      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

    • 2

      JavaScript语法中,下列语句中不正确的变量定义是( ) A: var a11 B: var a; C: var 2a D: var _a;

    • 3

      与以下JavaScript代码var hello等价的代码是( )。 A: var HEllo B: var Hello C: var hello D: var HELLO

    • 4

      以下声明变量语句中,定义的变量a如被typeof检测结果为undefined的是()。 A: var a; B: var a,b=3; C: var a=30; D: var a='123';