C语言题库上海大学.docx
- 文档编号:27148608
- 上传时间:2023-06-27
- 格式:DOCX
- 页数:22
- 大小:38.94KB
C语言题库上海大学.docx
《C语言题库上海大学.docx》由会员分享,可在线阅读,更多相关《C语言题库上海大学.docx(22页珍藏版)》请在冰豆网上搜索。
C语言题库上海大学
目录1.*选择题,常量(命题/审题注:
本行信息仅供命题/审题老师检查使用,学生不能看到,下同).................................................22.*选择题,逻辑式.....................................................................................................................................................................................23.*选择题,字符表达式..............................................................................................................................................................................24.*选择题,语句辨析..................................................................................................................................................................................25.*选择题,字符数组定义..........................................................................................................................................................................26.*选择题,字符串+指针............................................................................................................................................................................27.*选择题,指针.........................................................................................................................................................................................38.*选择题,函数声明..................................................................................................................................................................................39.*选择题,结构体.....................................................................................................................................................................................310.@选择题,文件..................................................................................................................................................................................311.*选择题、变量....................................................................................................................................................................................312.*选择题、语句....................................................................................................................................................................................313.@同112-6选择题、链表...................................................................................................................................................................414.*选择题、循环....................................................................................................................................................................................415.@选择题,表达式计算.......................................................................................................................................................................416.@选择题;位运算..............................................................................................................................................................................4Point=3.7..............................................................................................................................................................................................................7
(2)程序............................................................................................................................................................................................................7#######..................................................................................................................................................................................................8(3)程序............................................................................................................................................................................................................842=2*3*7..............................................................................................................................................................................................................8(4)程序............................................................................................................................................................................................................9Max:
a[3]=50.........................................................................................................................................................................................................9(5)程序............................................................................................................................................................................................................9Line3:
298...........................................................................................................................................................................................................9(6)程序..........................................................................................................................................................................................................10Can_I_help_you?
................................................................................................................................................................................................10
(1)程序..........................................................................................................................................................................................................11
(2)程序..........................................................................................................................................................................................................12(3)程序..........................................................................................................................................................................................................12二、基础填空题(10分,每小题2分).......................................................................................................................................................................15三、阅读程序(27分,每小题3分)............................................................................................................................................................................15四、程序填空(18分,每填空2分)...........................................................................................................................................................................21一、基础题(21分,第1小题3分,其它每小题2分).............................................................................................................................................23二、阅读程序(36分,每小题4分)............................................................................................................................................................................24三、改错程序(8分,每错误点2分)..........................................................................................................................................................................28四、程序填空(12分,每填空2分)............................................................................................................................................................................29Sum=21.........................................................................................................................................................................................................................157A...................................................................................................................................................................................................................................157LineThird,....................................................................................................................................................................................................................158LineFirst......................................................................................................................................................................................................................158SecondLiFirstWang.....................................................................................................................................................................................................2132003WangMin950......................................................................................................................................................................................................2212011学年春季学期-程序设计基础(C语言)-1/284
因临时做的题目,可能有错误,若有错误和疑问,发邮件给我,yinhm@.......................................................................................271一、单项选择题(15分,每小题1分).....................................................................................................................................................................271一、单项选择题(16分,每小题1分)......................................................................................................................................................................2731.*选择题,常量(命题/审题注:
本行信息仅供命题/审题老师检查使用,学生不能看到,下同)以下选项中正确的C语言常量是________12.34e50xEfGh'XYZ''\5A'2.*选择题,逻辑式设intn;对应“n为二位数(10至99)”的判断表达式是________10<=n&&n<=9910<=n<=9910<=n||n<=9910<=n,n<=993.*选择题,字符表达式设有定义charc;且c表示一个小写字母,结果为对应大写字母的表达式是________c-'a'+'A'c-a+Ac-A+ac-'A'+'a'4.*选择题,语句辨析在C语言中,根据一个表达式的值转向多个分支的语句是________switch语句if-else语句case语句return语句5.*选择题,字符数组定义已知一个字符串的最大字符长度为8,要使用字符数组str存放该字符串,以下哪种定义是正确的________charstr[9];charstr[8];charstr;charstr(9);6.*选择题,字符串+指针设有定义chara[]="abcDEF",*p=a+3;则puts(p)的输出结果是________DEFabcDEFbcDEFcDEF2011学年春季学期-程序设计基础(C语言)-2/284
7.*选择题,指针设有定义intm,n,*p;与语句“m=n;”等价的语句是________p=&n;m=*p;p=&m;n=*p;p=*n;m=*p;p=*m;n=*p;8.*选择题,函数声明以下选项中,合法的函数说明语句是________vo
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 语言 题库 上海 大学
![提示](https://static.bdocx.com/images/bang_tan.gif)