2026年c语言期中测试题编程题.docVIP

  • 2
  • 0
  • 约4.4千字
  • 约 13页
  • 2026-06-27 发布于中国
  • 举报

2026年c语言期中测试题编程题

姓名:_____?准考证号:_____?得分:______

一、单选题(总共10题,每题2分)

1.以下哪个选项不是C语言的关键字?

A.int

B.float

C.boolean

D.double

2.在C语言中,以下哪个语句是正确的?

A.if(x=y)

B.if(x==y)

C.ifx=y

D.ifx==ythen

3.以下哪个运算符的优先级最高?

A.+

B.

C.==

D.

4.以下哪个选项是正确的字符串定义方式?

A.charstr[]=hello;

B.charstr=hello;

C.charstr[5]={h,e,l,l,o};

D.charstr=hello;

5.以下哪个选项是正确的数组定义方式?

A.intarr[];

B.intarr[5];

C.intarr={1,2,3,4,5};

D.intarr={1,2,3,4,5};

6.以下哪个选项是正确的函数定义方式?

文档评论(0)

1亿VIP精品文档

相关文档