2013年c语言国考试题及答案.docxVIP

  • 2
  • 0
  • 约6.02千字
  • 约 17页
  • 2026-03-17 发布于浙江
  • 举报

2013年c语言国考试题及答案

考试时间:120分钟?总分:100分?年级/班级:高中一年级

2013年c语言国考试题及答案

一、选择题

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

A.int

B.float

C.string

D.double

2.以下哪个选项正确描述了变量的定义方式?

A.varage=18;

B.intage;

C.ageint;

D.integerage;

3.以下哪个选项是正确的循环语句?

A.while(age18){

//code

}

B.for(age=0;age18;age--){

//code

}

C.do{

//code

}while(age18);

D.alloftheabove

4.以下哪个选项是正确的条件语句?

A.ifage18then{

//code

}

B.if(age18){

//code

}

C.ifage18{

//code

}

D.if(age18)then{

//code

}

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

A.intarr[5];

B.intarr(5);

C.arrayarr[5];

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

文档评论(0)

1亿VIP精品文档

相关文档