参考答案和解析
参考答案:B
更多“A computer’s case fan protects against which of the following environmental concerns?() ”相关问题
  • 第1题:

    下列程序的运行结果是( )。

    #include<stdio.h>

    void main

    {int s=0,k;

    for(k=7;k>1;k--)

    {switch(k)

    {case 1:

    case 4:

    case 7:

    s++:

    break;

    case 2:

    case 3:

    case 6:break;

    case 0:

    case 5:

    s+=2:

    break;

    }}

    printf("s=%d",s);

    }

    A. s=3

    B.s=4

    C.s=5

    D.无输出结果


    正确答案:B
    运行程序,当k=7时switch(7)执行case:7,s++后s=1,break跳出。k--,k=7继续循环switch(6),执行case6;直接跳出循环,k--变成5,继续循环switch(5),执行case5后面的语句s+=2,也相当于s=s+2,此时s为3,break跳出,k变为4,继续循环,执行case4为空,继续执行case7;s++为4跳出循环,k--变为3,继续循环,执行case3,空语句往下执行case6,跳出,k--为2,继续循环,执行case2;空语句往下执行case3,空语句再执行case7,跳出循环,k--为1不符合循环,退出,此时S=4。

  • 第2题:

    32、定义“char **s;”并为s正确赋值后,以下表达式正确的是()

    A.s=”computer”;

    B.* s=”computer”;

    C.** s-“computer”;

    D.* s=‘c’;


    * s=”computer”;

  • 第3题:

    下面程序段在vc++ 6.0下的运行结果是________。 char *s1="computer"; char *s2="comPuter"; s1+=3; s2+=3; printf("%dn",strcmp(s1,s2));

    A.-1

    B.0

    C.1

    D.不确定的值


    1,2,1

  • 第4题:

    YouplantoinstallWindowsXPProfessionalonanewcomputer.Youhaveananswerfilenamedunattend.txtandauniquenessdatabasefilenamedunattend.udb.Unattend.udbcontainsasectionforacomputernamedComputer1.YoucopytheWindowsXPProfessionalsourcefiles,unattend.txt,andunattend.udbtoanetworksharenamedSource.Youstartthenewcomputerbyusinganetworkstartupdisk,andthenmapX:totheSourceshare.YouneedtostartanunattendedinstallationofWindowsXPProfessionalonComputer1.Whatshouldyourun?()

    A.setupmgr.exe/m:computer1

    B.sysprep.exe/t:s:\computer1

    C.Winnt.exe/unattend:unattend.txt/udf:computer1,unattend.udb/s:x:

    D.Winnt32.exe/unattend:unattend.txt/udf:computer1,unattend.udb/s:x:


    参考答案:C

  • 第5题:

    执行下面程序段后,s的值是(). int s=5; switch(s) {case 6: case 7:s+=2; case 8: case 9:s+=2; }

    A.7

    B.10

    C.6

    D.8


    10

  • 第6题:

    【单选题】设有说明:char s1[10],*s2=s1;则以下正确的语句是 。

    A.s1[]="computer"

    B.s1[10]="computer"

    C.s2="computer"

    D.*s2="computer"


    C