当前所在位置:珠峰网资料 >> 计算机 >> 软件水平 >> 正文
2015年软件水平程序员考试考前练习(2)
发布时间:2012/6/14 11:21:43 来源:城市网学院 编辑:ziteng
  软件水平:轨范员考前习题
  1.以下不是c说话划定保留字的是( )。
  (1)float
  (2)integer
  (3)signed
  (4) unsigned
  2.设int型变量x有初始值3,则表达式x++*5/10的值是( )
  (1)0
  (2)1
  (3)2
  (4)3
  3.下述轨范执行后的输出结不美观是( )
  #include
  main()
  {
  int x=’f’;
  printf(“%c\n”,’a’+(x-’a’+1));
  }
  (1)G
  (2)H
  (3)I
  (4)J
  4.设有轨范,
  #include
  main()
  {
  int i,j;
  for (i=0,j=1;i《=j+1;i+=2,j--)
  printf(“%d\n”,i);
  } [NextPage]   在运行上述轨范时,for语句中轮回体的执行次数是( )
  (1)3
  (2)2
  (3)1
  (4)0
  5.不才述选项时,没有组成死轮回的轨范是( )
  (1)int i=100
  while (1)
  {
  i=i0+1;
  if (i》100)
  break;
  }
  (2)for (;;);
  (3)int k=1000;
  do
  {
  ++k;
  }while (k》=10000);
  (4) int s=36;
  while (s);--s;
  谜底:
  1.(2) 2.(2) 3.(1) 4.(3) 5.(3)
广告合作:400-664-0084 全国热线:400-664-0084
Copyright 2010 - 2017 www.my8848.com 珠峰网 粤ICP备15066211号
珠峰网 版权所有 All Rights Reserved