大学C语言考试题库(答案).pdf
《大学C语言考试题库(答案).pdf》由会员分享,可在线阅读,更多相关《大学C语言考试题库(答案).pdf(50页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、98989.单项选择=题 号:1482 执行以下程序段后,输出结果和 a 的值是()。int a=10;printf(%d,a+);A、11 和 10 B、11 和 11 C、10 和 11 D、10 和 10 答案:C 题号:2100 已知字符 A 的 ASC 代码值是 65,字符变量 c1 的值是 A,c2 的值是 D.执行语句printf(%d,%d,c1,c2-2);后,输出结果是A、65,66 B、A,B C、65,68 D、A,68 答案:A 题号:5055 相同结构体类型的变量之间,可以()。A、比较大小B、地址相同C、赋值D、相加答案:C 题号:3217 int a10;合法的
2、数组元素的最小下标值为()。A、1 B、0 C、10 D、9 答案:B 题号:45 能正确表示逻辑关系:a 10 或 a 0 的 C 语言表达式是A、a=0|a=10 or a=10&a=10|a=0 答案:D 题号:157 main()int x=1,a=0,b=0;switch(x)case 0:b+;case 1:a+;case 2:a+;b+;printf(a=%d,b=%d,a,b);该程序的输出结果是()A、2,2 B、2,1 C、1,1 D、1,0 答案:B 题号:4784 设变量 a 是整型,f 是实型,i 是双精度型,则表达式 10+a+i*f 值的数据类型为()。A、不确定
3、B、double C、int D、float 答案:B 题号:1647 以下程序中,while 循环的循环次数是 _ main()int i=0;while(i10)if(ib)=c 的值为 真。答案:正确题号:66 若有#define S(a,b)a*b 则语句 area=S(3,2);area 的值为 6。答案:正确题号:758 若有宏定义:#define S(a,b)t=a;a=b;b=t 由于变量 t 没定义,所以此宏定义是错误的。答案:错误题号:2158#define 和 printf 都不是 C 语句。答案:正确题号:5102 关系运算符 100)printf(“%dn”,a 10
4、0);else printf(“%dn”,a=100);答案:空 1:1 题号:3255 表达式(int)(double)(5/2)+2.5)的值是 _.答案:空 1:4 题号:2472 阅读下面程序,程序执行后的输出结果为_。#include stdio.h main()char a,b;for(a=0,b=9;ab;a+,b-printf(%c%c,a,b);printf(n);)答案:空 1:0918273645 文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档
5、编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文
6、档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10
7、文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M1
8、0文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M
9、10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7
10、M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H
11、7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M1098989.题号:937 以下程序段的输出结果是_。int i=0,sum=1;do sum+=i+;while(i y)if(xz)printf(%d,x);else printf(%d,y);文档编码:CW7T5O5P4A7 HR4W5Z1S6
12、O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S
13、6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1
14、S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z
15、1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5
16、Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W
17、5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4
18、W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M1098989 printf(%d n,z);文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M
19、10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7
20、M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H
21、7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10
22、H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T1
23、0H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T
24、10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7
25、T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M10文档编码:CW7T5O5P4A7 HR4W5Z1S6O10 ZZ5P7T10H7M1098989.答案:空 1:3 程序设计=题号:2660/*-【程序设计】-功能:计算出k 以内最大的10 个能被13 或 17 整除的自然数之和。(k 3
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 大学 语言 考试 题库 答案
限制150内