1 / 3
文档名称:

C语言英文试题.doc

格式:doc   大小:82KB   页数:3页
下载后只包含 1 个 DOC 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

C语言英文试题.doc

上传人:书生教育 2021/11/13 文件大小:82 KB

下载得到文件列表

C语言英文试题.doc

文档介绍

文档介绍:(完好版)C语言英文试题
(完好版)C语言英文试题
1 / 3
(完好版)C语言英文试题
2009-2010 学年 1 学期 C 语言程序设计 (C) 课程考试一试题
拟题学院(系) : 信息科学与技术学院 拟题人 :
适 用 专 业: 信息 08级,通讯 08级 校正人:
(答案写在答题纸上,写在试题纸上无效)
.Choose the right answer (30 marks) .
Determine the output of the following statement: printf("%d", 'M' - 'N');
A) 'M'-'N' B)M-N
B)3 D)1
Which of following is an illegal user-define symbol?
A) scanf B) _123 C)C$ D)var
Which statement is not a C statement?
C) {int a; a++;} B) z = 20, a += c;
C) ; D) {;}
4. Which operator can only be applied to integers?
A) %= B)/
C)= D)<=
Determine the output of the following program. void main()
{
int y=8,x=7;
printf("%d %d\n", ++x, y++);
}
A) 7,8
B) 9,7
C) 8,8
D) 8,9
6.
Choose the wrong definition for the character strings.
A) char str[4]= “QUST ”;
B) char str[]=
“QUST ”;
C) char *str=
“QUST ”;
D) char str[]={ Q’‘,U ’‘,S’‘,T’,‘‘\0’ };
7.
Determine the output of the following program.
void main()
{
int i, j, m = 0;
for(i=1 ; i<=15 ; i+=5)
for(j=3 ; j<=19 ;j+=3)
1
(完好版)C语言英文试题
(完好版)C语言英文试题
3 / 3
(完好版)C语言英文试题
m++;
}
printf("%d\n",m);
A) 12 B) 15 C) 18 D) 25
For the 2-dimensional array int b[][3]={{1,0,-1},{10,12},{8,3,9},{0}}; the value for the b[2][1] is______.
A)8 B)5 C)3 D)12
9. In the statement while(x), choo