上海市计算机二级c程序考试,上海市计算机二级考试(C语言)复习资料题目答案...

a7f4a3f590493a1e451dd952a488fd7c.gif 上海市计算机二级考试(C语言)复习资料题目答案

(23页)

2de0f81489d490e4cf06f46bf51084c9.png

本资源提供全文预览,点击全文预览即可全文预览,如果喜欢文档就下载吧,查找使用更方便哦!

23.9 积分

上海理工大学上海市计算机二级考试(C语言)复习资料题目解答第一部份:基础知识1. B 2. C 3. C 4. B 5. D 6. A 7. A 8. C 9. C 10. A 11. C 12. A 13. B 14. B 15. C 16. B 17. D 18.B 19. A 20. C21. C 22. B 23. B 24. C 25. D 26. B 27. B 28. D 29. C 30. C31. D 32. C 33. C 34. B 35. C 36. D 37. C 38. B 39. C 40. B41. C 42. B 43. C 44. B 45. B 46. A 47. D 48. D 49. D 50. D51. A 52. C 53. (Sqrt( x)+ sqrt( y))/2/( x+ y) or similar 54. The "234" is namely the string234 55. B 56.D 57.D 58. B 59. C 60.D61.B 62. D 63.A 64.D 65.C 66.B 67.C 68. D 69. C 70.C71.A 72.A 73.B 74.B 75.C 76. C 77.C 78.A 79.D 80.B81.D 82.D 83.C 84.D 85.B 86.D 87.B 88.D 89.B 90.C91.C 92.B 93.B 94.B 95. N+'0'96. 0The x1400 moves is ex-, binary system 00010100 Bs or eight enter the 024 Qs of system97. The first answer 65 ds or 41 hses or a the second answer 1 or not098. 85 99. 14 100. x=-60第二部分 读程序,写结果1. 0,2,4,32. 3.1423. 84. m/10%10*100+m/100*10+m%105. ?uoy_era_woHHwaeyu6. 7,3 7. 546568. A the = biggest number, b= is most the fraction9. 110. 5,511. 987654321012. 1 3 5 7 913. j=0 m=4The first k : 4 j=1 m=414. The second k : 515. Count=0, position=0( did not find out)16. 0 -3017. 输出12 14 22 24 32 34,函数s是用插入法对数组a的前n个元素从小到大排序18. 输出 2 3 5 7 11 13 函数p的功能是求k(包括k )以内的质数19. 输出 n=91, a[]=0, 10, 21, 3120. 输出 Feith21. 输出 72 56 38 4922. 8181818123. k=524. 125. 926. 用递归函数实现10->2进制转换第三部分 程序改错1. #4 scanf(“%d”,&x); #10 low=m+1 #11 high=m-1 2. #7 scanf(“%c”,&str[i]); #8 break 3. #7 x , n #13 n==0 #15 x*xn(x,n-1) 4. #5 t=t*x/i #15 e=ex(x) 5. #4 scanf(%d”,&x);#10 low=m+1#11 high=m-16. #3 fun(str[])#5 while (*(str+num)!=’\0’) num++; #9 char str[10],*p=str;7. #14 flag=0 ; #19 flag=1; i++; 8. #3 func(str[]) #5 while (*(str+num)!=’\0’) num++; #9 {char str[10],*p=str; 9. #5 n=n/10; #6 while (!n); #12 scanf(“%ld”,&n); 10. #10 else if (x>a[m]) low=m+1; #11 else high=m-1;11. #6 a=1.0;#8 a/=i;#9 e+=a;12. #6 char *temp;#10 if(strcmp(temp,name[i])>0)#12 printf(“%s \n”, temp );13. #3 str[i]!=’\0’#4 str[i]>= ’0’ && str[i]<=’9’#10 data = data*16 + n;14. #3 int n1=0,n2=0, i;#6 if (str[i]==’#’) #8 if (str[i]>=’0’&&str[i]<=’9’)#9 n2++; }15. #5 i

4d91c43bfc72ca913299809b07b4968f.gif  天天文库所有资源均是用户自行上传分享,仅供网友学习交流,未经上传用户书面授权,请勿作他用。

关于本文

  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值