山东师范大学2011-2012学年第1学期期末考试试题

(时间:120分钟 共100分)

课程编号:080920201、080940201 课程名称:C语言程序设计 试题类别: A考试类型:闭卷

Part Ⅰ

For each of the following questions, fill-in one of either: A, B, C, or D on the blanks.

(There are 15 questions, each of which is worth 2 mark.total 40.)

1. ( ) 2. ( ) 3. ( ) 4. ( ) 5. ( )

6. ( ) 7. ( ) 8. ( ) 9. ( ) 10. ( )

11. ( ) 12. ( ) 13. ( ) 14. ( ) 15. ( ) 16. ( ) 17. ( ) 18. ( ) 19. ( ) 20. ( )

1. The declaration _____ declares the variable which can hold the smallest positive

number.

A) int a; B) float b; C) char c; D) double d;

2. Which one of following operators cannot be used as a unary-operator(单目操作符).

A) + B) - C) * D) / 3. Which one is not used as a character constant. A) " B) \' C) \t D) \n 4. If c is a character variable, its value is 1 or 0 after evaluating the expression ______。 A) c=getchar()!=EOF B) (c=getchar())!=EOF C) c = 1 D) c = 0 5. The precedence of operator _____ is the highest one. A) += B) [ ] C) ? : D) ++ 6. Which one of following marks can be defined as identifier? A) int B)float C) char D)string 7. Which one of the following expressions is equivalent to: a>x>b A. xb B. x>a || xa && xb 8.Having declaration statement: int a=5, b=3, c; after execution ststement c=a>b?a:b;,the value of c is A) 0 B)1 C) 5 D) 3 9. Given the following declarations of arrays, which one is invalid. A) char str[10]= {1,2,3}; B) int a[10] ; C) int x[5] [6 ]; D) int x[ ][6];

10. data type of variable f and i: float f=3.0; int i=5; choose right output format for statement: printf(“ ”, f+i); A) %d B) %f C) %s D) %c 11. Which one of following expression is equivalent to n=*(p++).

A) p+=1,n=*p B) n=*p, p+=1 C) n=*p, n+=1 D) uncertain

12. Having initialization: int a=6,b=5,c=8,d=7,m=2,n=2; the value of m and n after

executed the expression (m=a

A) 0 0 B) 0 2 C) 2 2 D) 2 0

13. Having declaration statement: int a=0; , after excution of statement a = (2*3, 3*4, 4*5, 5*6); the value of a is A) 6 B)12 C) 20 D) 30 14. According to the declaration: int *p[10], p is a

A) pointer B) array C) function D) element of a array 15. The following is a segment of a program: char a[10]=”123456789”; a[5]=0; printf(“%s”,a); What will be output after execution output statement:

A)123406789 B)123450 C)12345 D) 1234

16. What will be output after execution of following programming? main()

{ int n=9;

while(n>=6) {n--;printf(“%d”, n);}

} A) 9876 B) 8765 C)987 D) 876

17. What will be output after execution of following programming? main(){ int a=5,b=8,c=13; printf("%d\n",a>b?a>c?a:c:b>c?b:c); } A) 5 B) 13 C) 1 D) 0 18. What will be output after execution of following programming?

main() { char str[][10]={"China","Beijing"};  printf("%s\n",*(str+1)); }

A) ChinaBejing B) China C) Bejing D)C 19. What will be output after execution of following programming? main() { char a[10]= “012345678”; printf(“%d, %d”,strlen(a), sizeof(a)); } A) 10,0 B) 0,10 C)10,9 D)9,10 20. According to the declaration: int a[10], *p=&a[2]; the last element of the array a is A)p[5] B) p[6] C) p[7] D) p[8] Part Ⅱ

c语言电子期末考试题,山东师范大学11-12电子C语言期末试题相关推荐

  1. 浙江师范大学c语言函数实验答案,浙江师范大学2012年秋C语言考试卷与答案

    浙江师范大学2012年秋C语言考试卷与答案 浙江师范大学<C 语言程序设计>考试卷(2012--2013 学年第 1 学期)考试形式 笔试(闭卷) 使用学生 全校 12 级理科(非行知)专 ...

  2. 山东理工大学计算机期末考试题,山东理工大学计算机基础试题11

    山东理工大学计算机基础试题11 一.单选题(共20分,每小题1分) 1. 计算机存储器可以分为 . A)软盘.硬盘 B)磁盘.磁带.光盘 C)内存.外存 D)RAM.ROM 2. 以下4个数中最大的是 ...

  3. 合肥师范学院计算机操作系统期末考试题,河北师范大学 操作系统 考试题 及答案...

    河北师范大学 操作系统 考试题 及答案 (3页) 本资源提供全文预览,点击全文预览即可全文预览,如果喜欢文档就下载吧,查找使用更方便哦! 19.90 积分 |||||||||密|||||||||封|| ...

  4. 淮北师范大学c语言试卷,2016年淮北师范大学物理与电子信息学院高级语言程序设计(加试)之C语言程序设计复试笔试最后押题五套卷...

    一.选择题 1. 有以下程序 程序运行后的输出结果是( ). 答:D [解析]f 函数将数组中前9个元素的值加上对应的下标值. 2. 以下叙述中正确的是( ). A. 在scanf 函数的格式串中,必 ...

  5. 淮北师范大学c语言试卷,2016年淮北师范大学物理与电子信息学院高级语言程序设计(加试)之C语言程序设计复试笔试仿真模拟题...

    一.选择题 1. 有以下程序: 程序运行后的输出结果是( ). A.10, 9 B.11, 10 C.010, 9 D.9, 10 答:D [解析]整型常量有3种表示方法,分别是十进制数表示法.八进制 ...

  6. 山东理工大学计算机硬件基础期末考试题,山东理工大学数据结构期末试题及答案...

    10-11学年第一学期计算机科学与技术专业张先伟.肖爱梅 一.填空(每空1分,共20分) 1.深度为k的完全二叉树至少有10个叶结点的二叉树中有2的结点. 2.设数组a[1..5,1..8]的基地址为 ...

  7. c语言程序二级考试题,2016年计算机二级考试C语言程序设计真题

    2016上半年全国计算机等级考试时间是3月26-29日,以下小编为大家整理出来的是计算机二级考试试题,希望对大家的复习有帮助! 一.选择题,(1-40)每题1分,(41-50)每题2分,共60分) 下 ...

  8. 高等代数期末考试题库及答案_《高等代数》期末闭卷考试题及答案.pdf

    (注:请下载后留言索取 DOC 版文件) 学 号 评定成绩 (分) 学生姓名 担任教师 <高等代数>期末闭卷考试题 (下述 一 - 四 题全作计100分, 两小时完卷) 考试日期: 试 题 ...

  9. linux+6.2+期末考试题,2020中科大软件学院linux操作系统分析期末考试题

    前言:csdn上有关中科大孟老师linux操作系统期末考试复习资料居然是一片空白,考试前两天才知道考试题型,哎,我就填补一下这个空白吧,此试题为回忆版,并无答案. 第一题填空题20分: 如图所示,给了 ...

最新文章

  1. pixel 解锁_如何在Google Pixel 4和Pixel 4 XL上禁用面部解锁
  2. linux之so文件、a文件、o文件的区别
  3. a5d2 mac 驱动分析
  4. 优秀Unix管理员的七个习惯
  5. Python入门 第二节 作业一
  6. MySQL-创建表时建立索引和在已存在表中添加索引
  7. 整人程序源码(VB)
  8. 三菱Q PLC解密 用户名功能块FB破解
  9. java开发常用排名前16的Java工具类
  10. (原创)数字电路设计基础 大一期末 项目 交通灯控制器设计
  11. rax Picture组件
  12. 激光雷达在汽车上的应用史
  13. MATLAB(3)MATLA 求极限 求积分 求微分 求级数的和
  14. CNN | 02实现几何图形分类
  15. 文通科技OCR识别|电子护照阅读器
  16. python中如何画出决策树_python画决策树
  17. 第三章 眼睛的目视光学系统
  18. Linux系统-gzip命令 – 压缩和解压文件
  19. php 生成条形码(支持任意php框架)
  20. 视觉3D感知(二):单目3D物体检测

热门文章

  1. api与implementation的区别
  2. 使用go来实现类似erlang otp里面的gen_server功能
  3. 《LoadRunner 12七天速成宝典》—第2章2.1节开始
  4. iOS之UI--涂鸦画板实例 (有待更新)
  5. silverlight,WPF动画终极攻略之阳光灿烂篇(Blend 4开发)
  6. 清北学堂(2019 4 28 ) part 1
  7. 利用Crawlspider爬取腾讯招聘数据(全站,深度)
  8. Java的值传递和引用值传递的区别
  9. C#操作数据库(一)【连接SQL Server数据库】
  10. 论坛一大早白屏,无法访问