2026年c语言期中考试必背题.docVIP

  • 5
  • 0
  • 约4.24千字
  • 约 11页
  • 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.x++x

B.++x

C.x++

D.x+x

5.在C语言中,以下哪个选项是正确的字符串定义方式?

A.charstr[]=hello;

B.charstr=hello;

C.charstr[5]=hello;

D.charstr[]=hello;

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

A.intarr[]={1,2,

文档评论(0)

1亿VIP精品文档

相关文档