相关试题
【单选题】
在C语言中,能代表逻辑值“真”的是___
A. True
B. 大于0的数
C. 非0整数
D. 非0的数
【单选题】
下列变量说明语中,正确的是___
A. char:a b c
B. char a;b;c
C. int x;z
D. int x,z
【单选题】
下列字符序列中,不可用C语言标识符的是___
A. b70
B. #ab
C. symbol
D. a_1
【单选题】
以下不正确的叙述是___
A. 在C程序中所用的变量必须先定义后使用
B. 程序中,APH和aph是两个不同的变量
C. 若a和b类型相同,在执行了赋值语句a=b;后b中的值将放入a中,b中的值不变
D. 当输入数值数据时,对于整型变量只能输入整型值;对于实型变量只能输入实型值
【单选题】
以下标识符中,不能作为合法的C用户定义标识符的是___
A. For
B. Printf
C. WORD
D. sizeof
【单选题】
以下标识符中,不能作为合法的C用户定义的标识符的是___
A. answer
B. to
C. signed
D. _if
【单选题】
以下运算符中,优先最高的运算符是___
【单选题】
以下运算符中,优先级最高的运算符是___
A. =
B. !=
C. *(乘号)
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
【单选题】
下列数据中,为字符串常量的是___
A. A
B. “house”
C. How do you do.
D. $abc
【单选题】
先用语句定义字符型常量c,然后将字符a赋予c,则下列语句中正确的是___
A. c=‘a’
B. c=“a”
C. c=“97”
D. c=‘97’
【单选题】
下列语句main() {int j; j=3; printf(“%d,”,++j); printf(“%d,”,j++);}的结果是___
A. 3,3
B. 3,4
C. 4,3
D. 4,4
【单选题】
设a=12,且a定义为整型变量。执行语句a+=a-=a*=a后的值是___
【单选题】
已知year为整型变量,不能使表达式(year%4==0&&year%100!=0)||year%400==0的值是“真”的数据是___
A. 1990
B. 1992
C. 1996
D. 2000
【单选题】
下列运算符中,不属于关系运算符的是___
【单选题】
假设所有变量均为整型,表达式:a=2,b=5,a>b?a++:b++的值是___
【单选题】
以下不符合C语言语法的赋值语句是___
A. a1,b=2
B. ++j
C. a=b=5
D. y=(a=3,6*5)
【单选题】
执行下列程序后,其输出成果是___ main() {int a=9; a+=a-=a+a; printf(“%d\n”,a);}
【单选题】
下列语句的输出结果是___ ptintf(“%d\n,(int)(2.5+3.0)/3”)
A. 有语法错误不能通过编译
B. 2
C. 1
D. 0
【单选题】
下列程序的输出结果是___ main() {int a=7,b=5; ptintf(“%d/n”,b=b/a);}
【单选题】
下列程序的输出结果是___ main() {int a=011; ptintf(“%d/n”,++a);}
【单选题】
若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. 由高到低为:算术运算符,关系运算符,!,&&,||,赋值运算符
【单选题】
设a为整型变量,初值为12,执行完语句a+=a-=a*a后,a的值是___
A. 552
B. 144
C. 264
D. -264
【单选题】
以下程序的输出结果为___ 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
【单选题】
经过以下语句定义:int x=1,y=2,z=3后,表达式z+=x>y?++x:++y的值为___
【单选题】
以下程序的运算结果是___ 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
【单选题】
执行下列语句后的输出为___ 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
【单选题】
在C语言中,为了结束由while语句构成的循环,while后一对圆括号中表达式的值应该为___
【单选题】
下列程序的输出为___ main() {int y=10; while(y--); printf(“y=%d\n”,y);}
A. y=0
B. while构成无限循环
C. y=1
D. y=-1
【单选题】
设j和k都是int类型,则for循环语句 for(j=0,k=1;k++) printf(“****\n”);___
A. 循环结束的条件不合法
B. 是无限循环
C. 循环体一次也不执行
D. 循环体只执行一次
【单选题】
下列数组说明中,正确的是___
A. static char str[]=“China”
B. static char str[];str=“China”
C. static char str1[5],str2[]={“China”}; str1=str2
D. static char str1[],str2[];str2={“China”};strcpy(str1,str2)
推荐试题
【单选题】
The professor’s lecture ___ the capacity of his young audience. They all looked puzzled at him.
A. pointed out
B. went beyond
C. contributed to
D. kept off
【单选题】
We must ___ on the amount of time we use on this project.
A. cut both ways
B. cut in line
C. cut off
D. cut down
【单选题】
We have to be very patient with this experiment. It will take time for some effects to ___ clearly.
A. build up
B. break up
C. clear up
D. show up
【单选题】
Perhaps there is a(n) ___ of truth in both theories, but few of us would ever have the opportunity to find out.
A. lump
B. substance
C. section
D. element
【单选题】
Be careful when you get along with her because she is known for her short ___.
A. temper
B. emotion
C. mood
D. feeling
【单选题】
It seems that wearing less formal clothing to school and work is becoming a(n) ___.
A. trend
B. campaign
C. goal
D. occurrence
【单选题】
You cannot correct children’s bad behavior simply with a (n) ___ or two on the hand or face.
A. slap
B. smash
C. slam
D. strike
【单选题】
Our investigations (调查) ___ something very surprising – many of the employees are underpaid and work overtime all the time.
A. reveal
B. bump
C. rip
D. frustrate
【单选题】
She was James’s faithful assistant, in whom he could have ___ confidence.
A. essential
B. automatic
C. ultimate
D. absolute
【单选题】
If you visit this website, you can ___ the categories to find information about all the universities in that area.
A. observe
B. browse
C. glance
D. look
【单选题】
Making New Year’s resolutions (计划) is a custom that still ___ in this country.
A. prevails
B. attaches
C. descends
D. launches
【单选题】
The military officers were more ___ about their own victory and therefore more willing to predict their enemy’s defeat.
A. appropriate
B. ignorant
C. negative
D. optimistic
【单选题】
___ is no doubt that overwork and much worry caused his illness.
A. It
B. There
C. Here
D. This
【单选题】
___ a day goes by that I don’t receive dozens of junk mails in my email box.
A. None
B. Usually
C. Nearly
D. Hardly
【单选题】
Please trust me. Try this new method ___.
A. you feel very relaxed
B. and you feel very relaxed
C. you will feel very relaxed
D. and you will feel very relaxed
【单选题】
John said Mom was coming back tomorrow, not next week. If this is the ___, we’ll all have to clean the house thoroughly.
A. point
B. norm
C. question
D. case
【单选题】
It is far too late for you to go out and play football, ___ the fact that it’s raining.
A. no doubt
B. despite
C. given
D. not to mention
【单选题】
However, under no circumstances should we ___ our achievements, nor should we regard our accomplishments as unimportant.
A. present
B. perceive
C. exemplify
D. exaggerate
【单选题】
Jane picked up a magazine from the bookshelf and started reading here and there ___.
A. accurately
B. randomly
C. emotionally
D. continually
【单选题】
In many Middle Eastern cultures a deadline is taken as a(n) ___, and such terms should not appear in a purchase contract with businessmen from these countries.
A. target
B. favor
C. honor
D. insult
【单选题】
He is by no means a(n) ___ man. On the contrary, he always departs from customs.
A. disgraceful
B. sophisticated
C. traditional
D. intelligent
【单选题】
Although the nuclear radiation problems remain unsolved, the government’s emphasis has been ___ from coal to nuclear.
A. intended
B. defined
C. attached
D. switched
【单选题】
The psychologist doesn’t say directly, but seems to ___ that emotional maturity and self-stimulation are the key elements for success.
A. inquire
B. imply
C. refer
D. confront
【单选题】
The top floors of a building collapsed, trapping a construction worker in the rubble (瓦砾), but he was ___ and could talk to rescuers.
A. reasonable
B. rational
C. innocent
D. conscious
【单选题】
After ___ research by the local government, officials confidently stated that this area of the sea was much safer than before.
A. extensive
B. durable
C. partial
D. extreme
【单选题】
As the world is becoming global, it is increasingly important that countries work together to ___ international trade.
A. soar
B. rise
C. facilitate
D. prompt
【单选题】
As the technology develops, it is probable that electronic books will start to ___ paper books in the near future.
A. ban
B. exchange
C. employ
D. replace
【单选题】
The man was sentenced to 10 years in prison after he was accused of ___ a senior bank official.
A. bribing
B. frustrating
C. chasing
D. eliminating
【单选题】
Youngsters who drink and smoke, and are often absent from school are far more likely to be ___ from school.
A. forbidden
B. induced
C. expelled
D. disobeyed
【单选题】
大学生适应新的学习、生活环境,很重要的一点就是___。
A. 勇于尝试,不怕失败
B. 培养优良学风
C. 培养和提高独立生活能力
D. 培养自信心。
【单选题】
创新学习是一种以___为基础,采取创造性方法,积极追求创造性成果的学习。
A. 奇思异想
B. 瞬间顿悟
C. 求真务实
D. 求新求变
【单选题】
“知之为知之,不知为不知,是知也。”这句话告诉我们,在学习上一定要培养___的优良学风。
A. 求实
B. 一丝不苟
C. 勤奋
D. 敢为人先
【单选题】
“业精于勤荒于嬉;行成于思毁于随”,这句话说明了学习必须做到___
【单选题】
2006年3月4日,___在一次谈话中指出,在社会主义社会里要树立社会主义荣辱观,教育广大干部群众特别是广大青少年坚持做到“八荣八耻”。
A. 胡锦涛
B. 江泽民
C. 温家宝
D. 李长春
【单选题】
“思想道德修养与法律基础”课以___为指导,帮助大学生全面提高思想道德素质和法律素质。
A. 社会主义荣辱观
B. 社会主义核心价值体系
C. 科学发展观
D. 马克思主义
【单选题】
“以服务人民为荣、以背离人民为耻”是社会主义荣辱观的重要内容之一。毛泽东的《为人民服务》这篇著名文章是为一个全心全意为人民服务的普通战士写的悼词,这个普通战士是___。
A. 雷锋
B. 张思德
C. 王杰
D. 白求恩
【单选题】
《礼记•中庸》认为,道德修养应“莫见乎隐,莫显乎微,故君子慎其独也”。这种“慎独”的道德修养方法要求我们在学习“思想道德修养与法律基础”课时要注重___。
A. 学习科学理论
B. 理论联系实际
C. 知行统一
D. 多思考深理解
【单选题】
衡量大学生全面发展的一个重要标准是___。
A. 知识渊博
B. 质量高尚
C. 德才兼备
D. 知行统一
【单选题】
尽快___,是大学新生面临的首要问题。
A. 开展大学生活
B. 了解大学精神
C. 适应大学新生活
D. 开始专业学习