【单选题】
下列字符序列中,可用作C标识符的一组字符序列是___
A. S.b,sum,average,_above
B. class,day,lotus_,2day
C. #md,&12x,mouth,student_n!
D. D56,r_1_2,name,_st_1
查看试卷,进入试卷练习
微信扫一扫,开始刷题

答案
D
解析
暂无解析
相关试题
【单选题】
以下不正确的叙述是___
A. 在C程序中所用的变量必须先定义后使用
B. 程序中,APH和aph是两个不同的变量
C. 若a和b类型相同,在执行了赋值语句a=b;后b中的值将放入a中,b中的值不变
D. 当输入数值数据时,对于整型变量只能输入整型值;对于实型变量只能输入实型值
【单选题】
以下叙述中不正确的是___
A. 一个好的程序应该有详尽的注释
B. 在C程序中,赋值运算符的优先级最低
C. 在C程序中,j++;是一条赋值语句
D. C程序中的#include和#define均不是C语句
【单选题】
下列程序main() { char c1=97,c2=98; printf(“%d %c”,c1,c2); }的输出结果是___
A. 97 98
B. 97 b
C. a 98
D. a b
【单选题】
下列语句main() {int j; j=3; printf(“%d,”,++j); printf(“%d,”,j++);}的结果是___
A. 3,3
B. 3,4
C. 4,3
D. 4,4
【单选题】
已知year为整型变量,不能使表达式(year%4==0&&year%100!=0)||year%400==0的值是“真”的数据是___
A. 1990
B. 1992
C. 1996
D. 2000
【单选题】
执行下列程序后,其输出成果是___ main() {int a=9; a+=a-=a+a; printf(“%d\n”,a);}
A. 18
B. 9
C. -18
D. -9
【单选题】
若int类型数据占两个字节,则下列语句的输出是___ int k=1; printf(“%d,%u\n”,k,k)
A. -1,-1
B. -1,32767
C. -1,32768
D. -1,65535
【单选题】
若k,g均为int变量,则下列语句的输出为___ k=017; g=111; printf(“%d\t”,++k); printf(“%x\n”,g++)
A. 15 6f
B. 16 70
C. 15 71
D. 16 6f
【单选题】
以下程序的输出结果是___ main() {int i=010;j=10; printf(“%d,%d\n”,++i,j--);}
A. 11,10
B. 9,10
C. 010,9
D. 10,9
【单选题】
C语言中以下几种运算符的优先次序的排列是正确的___
A. 由高到低为:!,&&,||,算术运算符,赋值运算符
B. 由高到低位:!,算术运算符,关系运算符,&&,||,赋值运算符
C. 由高到低为:算术运算符,关系运算符,赋值运算符,!,&&,||
D. 由高到低为:算术运算符,关系运算符,!,&&,||,赋值运算符
【单选题】
以下程序的输出结果为___ main() {float x=3.6; int i; i=(int)x; printf(“x=%f,i=%d\n”,x,i)}
A. x=3.600000,i=4
B. x=3,i=3
C. x=3.600000,i=3
D. x=3 i=3.600000
【单选题】
以下程序的运算结果是___ main() {int i=0,sum=0; while(i<20) sum=sum+1;i++; printf(“i=%d,sum=%d”,i,sum);}
A. i=10,sum=9
B. i=9,sum=9
C. i=2,sum=1
D. 运行出现错误
【单选题】
以下程序的运行结果为___ main() {int n; for(n=1;n<=10,n++){ if(n%3==0)continue; printf(“%d”,n);}}
A. 12457810
B. 369
C. 12
D. 123456789
【单选题】
在C语言中,if语句后的一对原括号中,用以决定分支的流程的表达式___
A. 只能用逻辑表达式
B. 只能用关系表达式
C. 只能用逻辑表达式或关系表达式
D. 可用任意表达式
【单选题】
假定所有变量均为已正确定义,下列程序段运行后x的值是___ k1==1; k2=2; k3=3; x=15; if(!k1)x--; else if(k2) x=4; else x=3
A. 14
B. 4
C. 15
D. 3
【单选题】
执行下列语句后的输出为___ int j=-1; if(j<=1) printf(“****\n”); else printf(“%%%%\n”)
A. ****
B. %%%%
C. %%%%c
D. 有错,执行不正确
【单选题】
下列程序的输出结果是___ main() {int x=1,y=0,a=0,b=0; switch(x){case 1;switch(y){case 0;a++;break; case1;b++;break;}}}
A. a=1,b=0
B. a=2,b=1
C. a=1,b=1
D. a=2,b=2
推荐试题
【单选题】
A completely new situation will ___________ when the examination system comes into existence.___
A. arise
B. rise
C. raise
D. arouse
【单选题】
Cancer is second only __________ heart disease as a cause of death.___
A. of
B. to
C. with
D. from
【单选题】
The manager needs an assistant that he can _________ to take care of problems in his absence.___
A. count on
B. count in
C. count up
D. count out
【单选题】
We gave out a cheer when the red roof of the cottage came __________ view.___
A. from
B. in
C. before
D. into
【单选题】
They took ________ measures to prevent poisonous gases from escaping.___
A. fruitful
B. beneficial
C. valid
D. effective
【单选题】
Doing your homework is a sure way to improve your test scores, and this is especially true _______ it comes to classroom tests.___
A. when
B. since
C. before
D. after
【单选题】
In developing countries people are _______ into overcrowded cities in great numbers.___
A. breaking
B. filling
C. pouring
D. hurrying
【单选题】
There are other problems which I don't propose to ____________ at the moment.___
A. go into
B. go around
C. go for
D. go up
【单选题】
It is quite necessary for a qualified teacher to have good manners and _________ knowledge.___
A. extensive
B. expansive
C. intensive
D. expensive
【单选题】
I'm not sure whether I can gain any profit from the investment, so I can't make a(n) ______ promise to help you.___
A. exact
B. defined
C. definite
D. sure
【单选题】
The sports meet, originally due to be held last Friday, was finally ________ because of the bad weather.___
A. set off
B. broken off
C. worn off
D. called off
【单选题】
It has been revealed that some government leaders _______ their authority and position to get illegal profits for themselves.___
A. employ
B. take
C. abuse
D. overlook
【单选题】
Shelly had prepared carefully for her biology examination so that she could be sure of passing it on her first ________.___
A. intention
B. attempt
C. purpose
D. desire
【单选题】
The store had to _______ a number of clerks because sales were down.___
A. lay out
B. lay off
C. lay aside
D. lay down
【单选题】
All the students in this class passed the English exam ________ the exception of Li Ming.___
A. on
B. in
C. for
D. with
【单选题】
Writing is a slow process, requiring _______ thought, time, and effort.___
A. significant
B. considerable
C. enormous
D. numerous
【单选题】
Lightning is a ______ of electrical current from a cloud to the ground or from one cloud to another.___
A. rush
B. rainbow
C. rack
D. ribbon
【单选题】
I caught a ________ of the taxi before it disappeared around the corner of the street.___
A. vision
B. glimpse
C. look
D. scene
【单选题】
Students or teachers can participate in excursions to lovely beaches around the island at regular _________.___
A. gaps
B. rate
C. length
D. intervals
【单选题】
Physics is ________ to the science which was called natural philosophy in history.___
A. alike
B. equivalent
C. likely
D. uniform
【单选题】
The new appointment of our president _______ from the very beginning of next semester.___
A. takes effect
B. takes part
C. takes place
D. takes turns