【单选题】
以下错误的描述是___。
A. break语句不能用于循环语句和switch语句外的任何其他语句。
B. 在switch 语句中使用break语句或continue语句的作用相同。
C. 在循环语句中使用continue语句是为了结束本次循环,而不是终止整个循环。
D. 在循环语句中使用break语句是为了使流程跳出循环体,提前结束循环。
查看试卷,进入试卷练习
微信扫一扫,开始刷题
答案
B
解析
暂无解析
相关试题
【单选题】
for (j=0;j<10;j++);循环结束后,j的值是___。
A. 12
B. 11
C. 10
D. 9
【单选题】
下面对数组的定义正确的是 ___
A. int n=10; int array[n]
B. int array[10]
C. int n; scanf(“%d”,&n); int array[n]
D. int n; int array[n]; scanf(“%s”,array)
【单选题】
正确的数组定义语句为 ___
A. int A[-3]
B. int A[3,5]
C. int A[ ][ ]
D. int *A[3]
【单选题】
设已定义数组int array[3][4]; 则对此数组正确的引用是 ___
A. array[1,2]
B. array [1][4]
C. array[1][1+2]
D. array(1)(3)
【单选题】
设二维数组array有m列,则在array[i][j]之前的元素个数为___
A. j*m+i
B. i*m+j
C. i*m+j-1
D. i*m+j+1
【单选题】
长度为5的int类型数组和长度为3的double类型数组,哪一个数组占用内存空间多___
A. int 型的多
B. double型的多
C. 一样多
D. 不一定
【单选题】
字符数组char a[]=“one\n”;占多少内存字节___
A. 3
B. 4
C. 不一定
D. 5
【单选题】
下面哪个说法是错误的___
A. 数组元素有相同的名字
B. 数组元素有相同的数据类型
C. 数组元素在内存中是连续存储的
D. 数组元素有据有相同的下标
【单选题】
二维数组第一个元素的下标是___
A. 0,0
B. 0,1
C. 1,1
D. 1,0
【单选题】
若有定义 float x[3][100],下标最大的数组元素是___
A. x[2][99]
B. x[0][100]
C. x[3][99]
D. x[2][100]
【单选题】
判断字符串s1是否大于字符串s2, 则应当使用: ___
A. if(s1>s2)
B. if(strcmp(s1,s2))
C. if(strcmp(s1,s2)>0)
D. if(strcmp(s2,s1)>0)
【单选题】
下述对C语言字符数组的描述正确的是___ 
A. 任何一维数组的名称都是该数组存储单元的开始地址,且其每个元素按照顺序连续占用存储空间
B. 一维数组的元素在引用时其下标大小没有限制
C. 任何一个一维数组的元素,可以根据内存的情况按照其先后顺序以连续或非连续的方式占用存储
【单选题】
 下述对C语言字符数组的描述中正确的是___
A. 任何一个一维数组的元素在引用时,其下标可以是整型、实型或字符型常量
B. 一维数组的元素实质上就是一个变量,代表内存中的一个存储单元
C. 如果要引用数组中的每一个元素,则直接使用该数组名称即可
D. 以上都不对
【单选题】
在一个C语言程序构成中,较完整的描述是___
A. 由主程序与子程序构成
B. 由多个主函数与多个函数构成
C. 由主函数与函数构成
D. 由一个主函数与多个函数构成
【单选题】
C语言在程序开始执行时,其正确的描述是___
A. 由编写程序语句的顺序格式执行
B. 在主函数main()开始处执行
C. 在第一个函数处执行
D. 由人随机选择执行
【单选题】
下列有关函数错误的描述是___
A. C语言中允许函数嵌套定义
B. C语言中允许函数递归调用
C. 调用函数时,实参与形参的个数、类型需完全一致
D. C语言函数的缺省数据类型是int类型
【单选题】
在C语言中,各个函数之间具有的关系是___
A. 不允许直接递归调用,也不允许间接递归调用
B. 允许直接递归调用,不允许间接递归调用
C. 不允许直接递归调用,允许间接递归调用
D. 允许直接递归调用,也允许间接递归调用
【单选题】
在C语言中,函数的返回值的类型是由___
A. C语言的编译程序,在程序编译时决定
B. 由调用该函数的主调函数所决定
C. 由return语句的表达式的类型所决定
D. 由定义该函数时指定的函数类型所决定
【单选题】
当调用函数时,如果实参是一个数组名,则向函数传送的是___
A. 数组的首元素
B. 数组的首地址
C. 数组每个元素的地址
D. 数组每个元素中的值
【单选题】
下列说法正确的是___
A.  一个函数的函数体必须要有变量定义和执行部分,二者缺一不可
B. 一个函数的函数体必须要有执行部分,可以没有变量定义
C. 一个函数的函数体可以没有变量定义和执行部分,函数可以是空函数
D. 以上都不对
【单选题】
下列说法正确的是___
A. main函数必须放在C程序的开头
B. main函数必须放在C程序的最后
C. main函数可以放在C程序的中间部分,即在一些函数之前在另一个函数之后,但在执行C程序时是从程序开头执行的
D. main函数可以放在C程序的中间部分,即在一些函数之前在另一些函数之后,但在执行C程序时是从main函数开始的
【单选题】
下列说法正确的是___
A. 在执行C程序时不是从 main函数开始的
B. C程序书写格式严格限制,一行内必须写一个语句
C. C程序书写格式自由,一个语句可以分写在多行上
D. C程序书写格式严格限制,一行内必须写一个语句,并要有行号
【单选题】
定义int*swap()指的是___
A. 一个返回整型值的函数swap()
B. 一个返回指向整型值指针的函数swap()
C. 一个指向函数swap()的指针,函数返回一个整型值
D. 以上说法均错
【单选题】
使用错误的是___
A. *(&a[0][0]+10*i+j)
B. *(a+i)+j
C. *(*(a+i)+j)
D. *(a[i]+j)
【单选题】
当定义了一个结构体变量后,系统分配给该变量分配的内存是___。
A. 结构体中各成员所需内存量的总和
B. 结构体中第一个成员所需的容量
C. 成员中占内存量最大者所需的容量
D. 结构体中最后一个成员所需内存量
【单选题】
则以下对结构体变量std中成员age的引用方式不正确的是___。
A. std.age
B. p->age
C. (*p).age
D. *p.age
【单选题】
以下对共用体类型数据的叙述正确的是___。
A. 可以对共有体变量名直接赋值
B. 一个共用体变量中可以同时存放其所有成员
C. 一个共有体变量中不能同时存放其所有成员
D. 共用体类型定义中不能出现结构体类型的成员
【单选题】
下面对typedef的叙述中不正确的是___。
A. 用typedef可以定义各种类型名,但不能用来定义变量
B. 用typedef可以增加新类型
C. 用typedef只是将已存在的类型用一个新的标识符来表示
D. 使用typedef有利于程序的通用和移植
【单选题】
C语言共用体类型变量在程序运行期间___。
A. 所有成员一直驻留在内存中
B. 只有一个成员驻留在内存中
C. 部分成员驻留在内存中
D. 没有成员驻留在内存中
【单选题】
当说明一个共用体变量时系统分配给它的内存是___。
A. 各成员所需内存量的总和。
B. 第一个成员所需内存量。
C. 成员中占内存量最大者所需的容量。
D. 最后一个成员所需内存量。
【单选题】
已有定义“struct xy{int a; double b;}m;”,变量m的成员a的正确表示是___。
A. m.a
B. m->a
C. *m.a
D. xy.a
【单选题】
以下各选项企图说明一种新的类型名,其中正确的是___。
A. typedef int v1
B. typedef v2=int
C. typedef v3 int
D. typedef v4: int
【单选题】
则下面叙述中正确的是___。
A. PER 是结构体变量名
B. PER 是结构体类型名
C. typedef struct 是结构体类型
D. struct 是结构体类型名
【单选题】
枚举类型首元素默认值和两个相邻元素之间默认的差值分别是___。
A. 1,0
B. 1,1
C. 0,1
D. 0,0
【单选题】
对结构体类型的变量的成员的访问,可使用的运算符是___。
A.
B. &
C. *
D. !
【单选题】
定义结构体的关键字是___。
A. struct
B. union
C. enum
D. typedef
【单选题】
使用共用体变量,不可以___。
A. 节省存储空间
B. 进行动态管理
C. 简化程序设计
D. 同时访问所有成员
【单选题】
下面说法中错误的是___。
A. 函数可以返回一个共用体变量
B. 在任一时刻,共用体变量的各成员只有一个有效
C. 共用体内的成员可以是结构变量,反之亦然
D. 共用体变量的地址和它各成员的地址都是同一地址
【单选题】
定义共用体的关键字是___。
A. union
B. typedef
C. enum
D. struct
【单选题】
以下对枚举类型名的定义中正确的是___。
A. enum a {"sum","mon","tue"}
B. enum a={sum,mon,tue}
C. enum a={"sum","mon","tue"}
D. enum a {sum=9,mon=-1,tue}
推荐试题
【单选题】
Mothers tend to be too ___ toward their children. They should let them see more of the worl D.
A. hopeful
B. protective
C. modest
D. encouraging
【单选题】
The investigation ___ evidence of a large-scale illegal trade in wild birds.
A. uncovered
B. outweighed
C. overwhelmed
D. evolved
【单选题】
Poor Laura! I feel so sorry for her. When she fell, she hurt her arm and, ___, broke her glasses.
A. in advance
B. in addition
C. over time
D. on the other hand
【单选题】
Showing some sense of humor can be a(n) ___ way to deal with some stressful situations.
A. genuine
B. available
C. effective
D. favorite
【单选题】
It will be worth the efforts even if you fail; the rewards you ___ will be great.
A. reap
B. boast
C. assure
D. cultivate
【单选题】
He suggested transporting the supplies by air. But it is absolutely ___, for it will cost too much.
A. unusual
B. uncertain
C. impractical
D. impressive
【单选题】
The newspaper didn’t mention the ___ of the damage caused by the fire.
A. range
B. level
C. extent
D. quantity
【单选题】
Do you ___ her novels as serious literature or as mere entertainment?
A. classify
B. notify
C. simplify
D. justify
【单选题】
He doesn’t ___ of buying a house this year because the bank has refused to lend him any money.
A. afford
B. make the most
C. run out
D. stand a chance
【单选题】
If you don’t ___ cooking today, we can go out to eat at the new restaurant.
A. would like
B. go on with
C. feel like
D. figure out、
【单选题】
Bullying (恃强欺弱) can ___ a climate of fear and anxiety in school, and prevent students from focusing on their schoolwork.
A. keep back
B. give rise to
C. feel like
D. make use of
【单选题】
Science can now ___ many things which were thought to be mysterious by ancient people.
A. care for
B. lay out
C. account for
D. set up
【单选题】
The school has ___ many after-class activity groups for the pupils to make their spare time more colorful.
A. set up
B. set off
C. set out
D. set down
【单选题】
When he was a small kid, he ___ from his peers because he could read fast and remember whatever he rea D.
A. showed off
B. worked out
C. stood out
D. straightened up
【单选题】
The fall in the number of deaths from heart disease is generally ___ improvements in diet.
A. put up with
B. attributed to
C. added to
D. replaced with
【单选题】
We can be partners for now, but ultimately you have to ___ to develop a new software for our project.
A. keep up
B. fire off
C. make sense
D. take the lead
【单选题】
Emotional Intelligence (情商) could be of practical use in many ___ such as how companies decide which job applicant to hire, how parents should raise their children, how schools should teach the students, and so on.
A. aspects
B. disciplines
C. structures
D. opportunities
【单选题】
The teacher should praise students for their correct answers and also suggest ___ possibilities.
A. unlimited
B. unique
C. alternative
D. essential
【单选题】
In some classrooms, desks are arranged in a U-shape, so the teacher can ___ easily with the students.
A. interrupt
B. interact
C. interpret
D. interview
【单选题】
Computer technology ___ individuals to educate themselves and adapt to a constantly changing job market.
A. lets
B. makes
C. enables
D. provides
【单选题】
Our hope for an enjoyable dinner was instantly ___ when the waiter dropped a salad plate on my hea D.
A. spoiled
B. restricted
C. exploded
D. vanished
【单选题】
___ the world has ever seen has occurred in the information and communications technologies.
A. Great a change
B. The great change
C. A greatest change
D. The greatest change
【单选题】
___ so many people around, it wasn’t convenient to have a long talk with him.
A. As
B. When
C. With
D. Since
【单选题】
Alice used to be terribly shy, but working abroad for a year has completely ___ her.
A. solved
B. transformed
C. characterized
D. regulated
【单选题】
Chinese Mandarin (普通话) is ___ for foreigners to learn because the changes in the tone will totally change the meaning of words.
A. difficult
B. accessible
C. competitive
D. easy
【单选题】
Take action on those things that will have the biggest ___ impact on your life with the least amount of effort.
A. portable
B. positive
C. sophisticated
D. moderate
【单选题】
The adoption of this measure will greatly reduce the ___ of greenhouse gas emissions (排放物), which may help slow global warming.
A. loan
B. decline
C. release
D. response
【单选题】
I think I have a healthy lifestyle. I eat a lot of fruit and vegetables, and I’m a ___ drinker.
A. moderate
B. heavy
C. gradual
D. delicate
【单选题】
In a way the human race needs to improve its mental and physical qualities if it is to deal with the more and more ___ world and meet new challenges.
A. typical
B. complex
C. rational
D. orderly
【单选题】
If a person simply does not care about this activity, it’s ___ impossible to get him to participate.
A. barely
B. seldom
C. hardly
D. practically
【单选题】
Sometimes, even when the mind ___ functioning, the body keeps on working normally.
A. ceases
B. arouses
C. regulates
D. specializes
【单选题】
Jeffery expressed his ___ about the health and fitness of his co-workers, but they said they didn’t want to “waste time” on an exercise bike or jogging.
A. agony
B. concern
C. addiction
D. feedback
【单选题】
Such chemicals are indeed negatively ___ those humans to whom they are expose D.
A. risking
B. detecting
C. impacting
D. overwhelming
【单选题】
We regret for selling you the faulty product, and our company has agreed to ___ you by $500.
A. match
B. reverse
C. reward
D. compensate
【单选题】
This lecture taught me how to manage my time better to include my online studies in my busy ___.
A. schedule
B. outline
C. structure
D. responsibility
【单选题】
Generally speaking, an Irish person will not accept an offer straight away; he will ___ once or twice first before accepting it.
A. receive
B. decline
C. summarize
D. polish
【单选题】
There is every possibility that many species (物种) of animals will die out because of their disappearing food ___.
A. mode
B. source
C. pattern
D. foundation
【单选题】
As a college student, you should enjoy learning and get yourself ___ in those things that interest you.
A. concerned
B. devoted
C. involved
D. pursued
【单选题】
The name of Hitler (希特勒) has always been associated with war and ___ killing in the minds of those people who lived through World War Two.
A. imaginary
B. multiple
C. indispensable
D. massive
【单选题】
He works hard every day to make more money, but he ___ his health, time with his family, and the hobbies he once love D.
A. neglects
B. reminds
C. ceases
D. Declines