单选题Given the following script, why does the output come out as an empty line instead of "dog"?()AThe $VAR variable was not exportedBThe $VAR should have been set as VARCdog needs double quotes around it when setting $VARDThe { } should not be around VAR i

题目
单选题
Given the following script, why does the output come out as an empty line instead of "dog"?()
A

The $VAR variable was not exported

B

The $VAR should have been set as VAR

C

dog needs double quotes around it when setting $VAR

D

The { } should not be around VAR in the echo command


相似考题
更多“单选题Given the following script, why does the output come out as an empty line instead of "dog"?()A The $VAR variable was not exportedB The $VAR should have been set as VARC dog needs double quotes around it when setting $VARD The { } should not be arou”相关问题
  • 第1题:

    与MOV AX,OFFSET VAR指令不等效的指令是()。

    • A、MOV BX,VAR
    • B、LES BX,VAR
    • C、LES AX,VAR
    • D、LEA BX,VAR

    正确答案:A,B,C

  • 第2题:

    Given the following output what course of action should be undertaken for a long term solution()

    • A、Implement regular monitoring to avoid full filesystems
    • B、Double the size of /usr
    • C、Reduce the size of /home to balance the filesystems
    • D、Add another disk allow for growth.

    正确答案:A

  • 第3题:

    An administrator needs to document system changes that have occurred recently. The company has a policy of making all possible changes via the smit interface. Which file would show the commands that have been performed from within smit and their resulting output?()

    • A、/smit.log
    • B、/smit.script
    • C、/var/log/smit.log
    • D、/var/log/smit.script

    正确答案:A

  • 第4题:

    与MOV BX,OFFSET VAR指令完全等效的指令是( )。 

    • A、MOV BX,VAR
    • B、LDS BX,VAR
    • C、LES BX,VAR
    • D、LEA BX,VAR

    正确答案:D

  • 第5题:

    Which of the following commands should be used to obtain a detailed output of the system error log?()

    • A、 errpt -d 
    • B、 errpt -a 
    • C、 errpt -D 
    • D、 errpt -i /var/adm/ras/diag_log

    正确答案:B

  • 第6题:

    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

    正确答案:C

  • 第7题:

    单选题
    Given the following script, why does the output come out as an empty line instead of "dog"?()
    A

    The $VAR variable was not exported

    B

    The $VAR should have been set as VAR

    C

    dog needs double quotes around it when setting $VAR

    D

    The { } should not be around VAR in the echo command


    正确答案: B
    解析: 暂无解析

  • 第8题:

    单选题
    A system administrator needs to specify a set of FQDN to IP address mappings for a legacyserver; the administrator does not want the legacy server to be referenced by other servers. Which of the following should the administrator use to set this?()
    A

    DHCP server

    B

    DNS server

    C

    Host file

    D

    Route statements


    正确答案: D
    解析: 暂无解析

  • 第9题:

    问答题
    Ellen turned around quick and noticed that the dog that had been following her was now gone. No error             A          B           C           D    E

    正确答案: A
    解析:
    A中quick应改为副词quickly,因为它修饰的是动词。

  • 第10题:

    单选题
    Which of the following commands should be used to obtain a detailed output of the system error log?()
    A

     errpt -d 

    B

     errpt -a 

    C

     errpt -D 

    D

     errpt -i /var/adm/ras/diag_log


    正确答案: A
    解析: 暂无解析

  • 第11题:

    单选题
    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


    正确答案: C
    解析: 暂无解析

  • 第12题:

    单选题
    A System p administrator needs to document system changes that have occurred recently. The company has a policy of making all possible changes via the smit interface.  Which of the following files would show the commands that have been performed from within smit and their resulting output()
    A

    /smit.log

    B

    /smit.script

    C

    /var/log/smit.log

    D

    /.history


    正确答案: D
    解析: 暂无解析

  • 第13题:

    反映了投资规模增加后,组合VaR值变化的指标是()

    • A、VaR
    • B、边际VaR
    • C、成分VaR
    • D、下标准差

    正确答案:B

  • 第14题:

    A System p administrator needs to document system changes that have occurred recently. The company has a policy of making all possible changes via the smit interface.  Which of the following files would show the commands that have been performed from within smit and their resulting output()

    • A、/smit.log
    • B、/smit.script
    • C、/var/log/smit.log
    • D、/.history

    正确答案:A

  • 第15题:

    An administrator setting up software RAID 1 on a Windows Server with two volumes for twoseparate hard drives, but the option for mirrored is grayed out.  Which of the following is the MOST likely reason why this is occurring?()

    • A、The disks have been setup as basic.
    • B、The page file must be at least 4GB to support mirrored drives.
    • C、The disks have been setup as dynamic.
    • D、Windows does not support software RAID 1.

    正确答案:A

  • 第16题:

    与指令MOV BX,OFFSET VAR功能完全等效的指令是()。

    • A、MOV BX, VAR
    • B、LDS BX, VAR
    • C、LES BX, VAR
    • D、LEA BX, VAR

    正确答案:D

  • 第17题:

    Given the following script, why does the output come out as an empty line instead of "dog"()#!/bin/ksh  $VAR=dog  echo "${VAR}"

    • A、The $VAR variable was not exported.
    • B、The $VAR should have been set as VAR.
    • C、dog needs double quotes around it when setting $VAR.
    • D、The { } should not be around VAR in the echo command.

    正确答案:B

  • 第18题:

    Which of the following will permit an operator to retrieve console log output from the command line?()

    • A、lscons -l
    • B、cat /var/conslog
    • C、alog -t console -o
    • D、lslog /var/adm/conslog

    正确答案:C

  • 第19题:

    单选题
    Given the following script, why does the output come out as an empty line instead of "dog"()#!/bin/ksh  $VAR=dog  echo "${VAR}"
    A

    The $VAR variable was not exported.

    B

    The $VAR should have been set as VAR.

    C

    dog needs double quotes around it when setting $VAR.

    D

    The { } should not be around VAR in the echo command.


    正确答案: B
    解析: 暂无解析

  • 第20题:

    单选题
    An administrator does not have console access to a Windows Server. Which of the following command line utilities should the administrator use to reboot the system remotely?()
    A

    reboot

    B

    pkill

    C

    shutdown

    D

    kill


    正确答案: A
    解析: 暂无解析

  • 第21题:

    单选题
    An administrator needs to document system changes that have occurred recently. The company has a policy of making all possible changes via the smit interface. Which file would show the commands that have been performed from within smit and their resulting output?()
    A

    /smit.log

    B

    /smit.script

    C

    /var/log/smit.log

    D

    /var/log/smit.script


    正确答案: A
    解析: 暂无解析

  • 第22题:

    单选题
    The author cites the dog as an example of artificial selection because of all the following statements EXCEPT that ______.
    A

    Dogs are domestic animals

    B

    The dog is one of nature’s survivors

    C

    Breeders register dogs to obtain a pedigree

    D

    Humans have been the primary agents in dog evolution


    正确答案: B
    解析:
    根据文章内容可知人工选择会栽培植物、驯化动物,并且第三段末句指出通过人工选择人们充当了agents of evolution。可见人们对狗进行人工选择时也符合这两方面内容,因此A、D项正确。C项内容在末段提及。由于狗是人工选择的结果,因此就不可能是自然选择的幸存者,故B项表述有误。

  • 第23题:

    单选题
    Which of the following precautions should always be carried out in dry dock?()
    A

    Liquids should never be transferred between tanks without consulting the dock master

    B

    If sea valves have been disassembled, all bonnets must be checked for leakage when the ship is re-floated

    C

    Before re-floating, all sea chest strainers should be verified as having been replaced

    D

    All of the above


    正确答案: C
    解析: 暂无解析

  • 第24题:

    单选题
    Which of the following will permit an operator to retrieve console log output from the command line?()
    A

    lscons -l

    B

    cat /var/conslog

    C

    alog -t console -o

    D

    lslog /var/adm/conslog


    正确答案: B
    解析: 暂无解析