Eat some vegetables and fruit every day because they are (health) food.
第1题:
A.为变量赋值:$FRUIT=apple
B.显示变量的值:fruit=apple
C.显示变量的值:echo $FRUIT
D.判断变量是否有值:[-f“$FRUIT”]
第2题:
下列语句执行后,di['fruit'][1]值为 。 di={'fruit':['apple','banana','orange']} di['fruit'].append('watermelon')
第3题:
关于下列命令,哪些描述是错误的。 echo -e "1 applen2 pearn3 banana">>fruit.txt
A.这个命令将echo的输出重定向到了fruit.txt文件中。
B.fruit.txt文件中如果原有内容将被覆盖
C.echo的输出重定向将追加到fruit.txt文件最后
D.如果fruit文件不存在,命令将出错
第4题:
Each life jacket light that has a non-replaceable power source must be replaced ______.
A.every 6 months after initial installation
B.every 12 months after initial installation
C.every 24 months after initial installation
D.on or before the expiration date of the power source
第5题:
关于如下命令,下面哪些描述是错误的。echo -e "1 applen2 pearn3 banana">>fruit.txt
A.这个命令将echo的输出重定向到了fruit.txt文件中。
B.fruit.txt文件中如果原有内容将被覆盖
C.echo的输出重定向将追加到fruit.txt文件最后
D.如果fruit文件不存在,命令将出错