#!/bin/ksh line is missing
Variable name VAR is not properly initialized
Loop variable is not incremented inside the loop
Replace brackets with braces
第1题:
A.The$VARvariablewasnotexported.
B.The$VARshouldhavebeensetasVAR.
C.dogneedsdoublequotesarounditwhensetting$VAR.
D.The{}shouldnotbearoundVARintheechocommand.
第2题:
A./var/log/syslog.out
B.var/log/cron.log
C./var/spool/cron/logs
D.mail
第3题:
A. cd /var/spool
B. lcd /var/spool
C. cd /usr/bin /var/spool
D. lcd /usr/bin /var/spool
第4题:
第5题:
An operator needs to change from the /usr/bin to the /var/spool directory. Which of the following commands will accomplish this?()
第6题:
Given the following script, why does the output come out as an empty line instead of "dog"()#!/bin/ksh $VAR=dog echo "${VAR}"
第7题:
Given the following scripts, what output would be generated() usr/local/bin/scriptl #!/usr/bin/ksh VARl=red export VARl=green VARl=blue /usr/local/bin/script2 ARl=yellow /usr/local/bin/script2 #!/bin/ksh echo "The sky is ${VAR1}."
第8题:
A System p administrator needs to run the annualreval.sh script, directing standard error to /var/log/reval.err, and appending standard out to /var/log/reval.log. How can this be accomplished ()
第9题:
The $VAR variable was not exported.
The $VAR should have been set as VAR.
dog needs double quotes around it when setting $VAR.
The { } should not be around VAR in the echo command.
第10题:
The sky is red.
The sky is blue.
The sky is green.
The sky is yellow.
第11题:
0
17
18
这是一个无限循环,没有输出
第12题:
#!/bin/ksh line is missing
Variable name VAR is not properly initialized
Loop variable is not incremented inside the loop
Replace brackets with braces
第13题:
以下程序的输出结果是( )。 Dim var1 Dim var2 Dim var3 var1 = "Hello" var2 = "World !" var3 = var1&" "&var2 var1 = 10 var2 = 20 MsgBox var1 + var2
A.Hello World! 30
B.30
C.102
D.Hello World!
第14题:
A.#!/bin/kshlineismissing
B.VariablenameVARisnotproperlyinitialized
C.Loopvariableisnotincrementedinsidetheloop
D.Replacebracketswithbraces
第15题:
第16题:
以下代码的输出结果是() while(1) { $var++; $result=$var; if($result==17)break; $var--; } echo($result);
第17题:
设VAR1、VAR2为字变量,LAB为标号,分析下列指令的错误之处并加以改正。 (1) ADD VAR1,VAR2 (2) MOV AL,VAR2 (3) SUB AL,VAR1 (4) JMP LAB[SI] (5) JNZ VAR1 (6) JMP NEAR LAB
第18题:
What is the most likely problem with this script () VAR=1 ((VAR=$VAR+1)) while [ $VAR -It 10 ] do echo $VAR done
第19题:
What is the primary syslog file?()
第20题:
The $VAR variable was not exported
The $VAR should have been set as VAR
dog needs double quotes around it when setting $VAR
The { } should not be around VAR in the echo command
第21题:
annualreval.sh 2>&1 /var/log/reval.log 2> /var/log/reval.err
annualreval.sh 1>/var/log/reval.log 2>/var/log/reval.err
annualreval.sh 2>>&1 /var/log/reval.log /var/log/reval.err
annualreval.sh 1>>/var/log/reval.log 2>/var/log/reval.err
第22题:
cd /var/spool
lcd /var/spool
cd /usr/bin /var/spool
lcd /usr/bin /var/spool
第23题:
/var/syslog-file
/var/syslog
/var/log/messages
/log-file
第24题:
<;stock:quote&ensp;symbol=";SUNW";&ensp;/>;${var}
${var}.&ensp;<;stock:quote&ensp;symbol=";SUNW";&ensp;/>;
<;stock:quote&ensp;symbol=";SUNW";>;.&ensp;${var}.&ensp;<;/stock:quote>;
<;stock:quote&ensp;symbol=";SUNW";&ensp;var=";quote";&ensp;/>;${quote}