A: echo "var";
B: echo 'var';
C: echo "$var";
D: echo '$var'
举一反三
- 以下打印的结果是? <?php $var='a';$VAR='b';echo"$var$VAR"; A: aa B: C: a
- 以下程序的运行结果是: <?php $var=89; test($var); function test($var){ $var++; echo $var."<br>"; } echo $var."<br>"; test($var); ?>
- 以下代码执行后,输出结果为100。$var=100;function test( ){ echo $var;}test( );
- 下列变量命名错误的是( )。 A: var _hello; B: var $hello; C: var $x_$y; D: var %x;
- 以下程序的运行结果是: "; } echo $var." "; test($var); ?>
内容
- 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';