刷题
导入试题
【单选题】
C语言规定,在一个源程序中,main函数的位置是___
A. 必须在最开始
B. 必须在系统调用的库函数的后面
C. 可以任意
D. 必须在最后
查看试卷,进入试卷练习
微信扫一扫,开始刷题
答案
C
解析
暂无解析
相关试题
【单选题】
以下叙述不正确的是___
A. 一个C源程序可由一个或多个函数组成
B. 一个C源程序必须包含一个main函数
C. C程序的基本组成单位是函数
D. 在C程序中,注释说明只能位于一条语句的后面
【单选题】
以下叙述正确的是___
A. 在C程序中,main函数必须位于程序的最前面
B. C程序的每行中只能写一条语句
C. C语言本身没有输出语句
D. 在对一个C程序进行编译的过程中,可发现注释中的拼写错误
【单选题】
表达式18/4*sqrt(4.0)/8值的数据类型为___
A. int
B. float
C. double
D. 不确定
【单选题】
C语言运算对象必须是整型的运算符是___
A. %=
B. /
C. =
D. <=
【单选题】
若变量已正确定义并赋值,下面符合C语言语法的表达式是___
A. a:=b+1
B. a=b=c+2
C. int 18.5%3
D. a=a+7=c+b
【单选题】
设以下变量均为int类型,则值不等于7的表达式是___
A. (x=y=6,x+y,x+1)
B. (x=y=6,x+y,y+1)
C. (x=6,x+1,y=6,x+y)
D. (y=6,y+1,x=y,x+1)
【单选题】
在C语言中,int、char和shor三种类型数据在内存中所占用的字节数___
A. 由用用户自己定义
B. 均为2个字节
C. 是任意的
D. 由所用机器的机器字长决定
【单选题】
若有定义:int a=7; float x=2.5,y=4.7; 则表达式x+a%3*(int)(x+y)%2/4的值是___
A. 2.500000
B. 2.750000
C. 3.500000
D. 0.00000
【单选题】
已知大写字母A的ASCII码值是65,小写字母a的ASCII码值是97,则用八进制表示的字符常量’\101’是___
A. 字符A
B. 字符a
C. 字符e
D. 非法的常量
【单选题】
以下选项中合法的用户标识符是___
A. long
B. _2Test
C. 3Dmax
D. A.dat
【单选题】
语句printf(“a\bre\’hi\’y\\\bou\n”);的输出结果是(说明:’\b’是退格符)___
A. a\ber\’hi\’y\\\bou
B. a\ber\’hi\’y\bou
C. re’hi’you
D. abre’hi’y\bou
【单选题】
若已定义x和y为double类型,则表达式x=1,y=x+3/2的值是___
A. 1
B. 2
C. 2.0
D. 2.5
【单选题】
设有 int x=11;则表达式(x++ * 1/3)的值是___
A. 3
B. 4
C. 11
D. 12
【单选题】
若以下变量均为整型,且num=sum=7;则计算表达式sum=num++,sum++,++num后sum的值为___
A. 7
B. 8
C. 9
D. 10
【单选题】
C语言中的标识符只能由字母,数字和下划符组成,且第一个字符___
A. 必须为字母
B. 必须为下划线
C. 必须为字母或下划线
D. 可以是字母,数字和下划线中任一字符
【单选题】
假设所有变量均为整型,则表达式(a=2,b=5,b++,a+b)的值是___
A. 7
B. 8
C. 6
D. 2
【单选题】
若有说明语句;char c=’\72’;则变量c___
A. 包含1个字符
B. 包含2个字符
C. 包含3个字符
D. 说明不合法,c的值不确定
【单选题】
下面不正确的字符串常量是___
A. ‘abc’
B. “12’12”
C. “0”
D. “ ”
【单选题】
若a为int类型,且其值为3,则执行完表达式a+=a-=a*a后,a的值是___
A. -3
B. 9
C. -12
D. 6
【单选题】
下列选项中,合法的C语言关键词是___
A. VAR
B. cher
C. integer
D. default
【单选题】
以下选项中,与k=n++完全等价的表达式是___
A. k=n,n=n+1
B. n=n+1,k=n
C. k=++n
D. k+=n+1
【单选题】
以下for循环的执行次数是 for(x=0,y=0;(y=123)&&(x<4);x++);___
A. 是无限循环
B. 循环次数不定
C. 4次
D. 3次
【单选题】
语句while(!E);中的表达式!E等价于___
A. E==0
B. E!=1
C. E!=0
D. E==1
【单选题】
下面有关for循环的正确描述是___
A. for循环只能用于循环次数已经确定的情况
B. for循环是先执行循环循环体语句,后判断表达式
C. 在for循环中,不能用break语句跳出循环体
D. for循环的循环语句中,可以包含多条语句,但必须用括号括起来
【单选题】
C语言中while和do-while循环的主要区别是___
A. do-while的循环体至少无条件执行一次
B. while的循环控制条件比do-while的循环控制条件更严格
C. do-while允许从外部转到循环体内
D. do-while的循环体不能是复合语句
【单选题】
以下不是无限循环的语句为___
A. for(y=0,x=1;x>++y;x=i++) i=x
B. for(;;x++=i)
C. while(1){x++;}
D. for(i=10;;i--) sum+=i
【单选题】
C语言用于结构化程序设计的三种基本结构是___
A. 顺序结构、选择结构、循环结构
B. if、switch、break
C. for、while、do-while
D. if、for、continue
【单选题】
对for(表达式1;;表达式3)可理解为___
A. for(表达式1;0;表达式3)
B. for(表达式1;1;表达式3)
C. for(表达式1;表达式1;表达式3)
D. for(表达式1;表达式3;表达式3)
【单选题】
下列运算符中优先级最高的是___
A. <
B. +
C. &&
D. !=
【单选题】
printf函数中用到格式符%5s,其中数字5表示输出的字符串占用5列,如果字符串长度大于5,则输出按方式___
A. 从左起输出该字符串,右补空格
B. 按原字符从左向右全部输出
C. 右对齐输出该字串,左补空
D. 输出错误信息
【单选题】
putchar函数可以向终端输出一个___
A. 整型变量表达式值
B. 实型变量值
C. 字符串
D. 字符或字符型变量值
【单选题】
以下描述中正确的是___
A. 由于do-while循环中循环体语句只能是一条可执行语,所以循环体内不能使用复合句语
B. do-while循环由do开始,用while(表达式)后面不能写分句
C. 在do-while循环体中,一定要有能使while后面表达式的值变为零(“假”)操作
D. do-while循环中,根据情况可以省略while
【单选题】
以下关于运算符优先顺序的描述中正确的是___
A. 关系运算符<算术运算符<赋值运算符<逻辑运算符
B. 逻辑运算符<关系运算符<算术运算符<赋值运算符
C. 赋值运算符<逻辑运算符<关系运算符<算术运算符
D. 算术运算符<关系运算符<赋值运算符<逻辑运算符
【单选题】
已知x=43,ch=’A’,y=0;则表达式(x>=y&&ch<’B’&&!y)的值是___
A. 0
B. 语法错
C. 1
D. “假”
【单选题】
若希望当A的值为奇数时,表达式的值为“真”,A的值为偶数时,表达式的值为“假”,则以下不能满足要求的表达式是___
A. A%2==1
B. !(A%2==0)
C. !(A%2)
D. A%2
【单选题】
判断char型变量c1是否为小写字母的正确表达式是___
A. ‘a’<=c1<=’z’
B. (c1>=a)&&(c1<=z)
C. (‘a’>=c1)||(’z’<=c1)
D. (c1>=’a’)&&(c1<=’z’)
【单选题】
为了避免在嵌套的条件语句if-else中产生二义性,C语言规定:else子句总是与什么配对___
A. 缩排位置相同的if
B. 其之前最近的if
C. 其之后最近的if
D. 同一行上的if
【单选题】
若有说明:int a[][3]={1,2,3,4,5,6,7};则a数组第一维的大小是___
A. 2
B. 3
C. 4
D. 无确定值
【单选题】
若二维数组a有m列,则在a[i][j]前的元素个数为___
A. j*m+i
B. i*m+j
C. i*m+j-1
D. i*m+j+1
【单选题】
设有数组定义,char array[ ]=”China”;则数组array所占的___
A. 4个字节
B. 5个字节
C. 6个字节
D. 7个字节
推荐试题
【单选题】
发生在管制中心范围以外,需要进入管制中心范围的紧急备降,助理管制席位的处置措施说法错误的是哪一项?___
A. 了解该航空器所处状态和飞行员意图,以及相邻管制单位已经或即将采取的引导措施。
B. 立即向相关运行领班通报,并向相关军民航管制单位/扇区通报并协调避让措施。
C. 将相关情况及协调结果通报指挥席位。
D. 将相关情况及协调结果通报流量分析室,由其负责对外通报。
【单选题】
下列针对非紧急备降情况时,管制席位的处置措施说法错误的是哪一项?___
A. 向机组了解航空器状态、备降原因及落地后是否需要其他协助等信息,并告知助理席位。
B. 天气原因备降时,将所了解到的目的地机场运行状况,如机场关闭或低于运行标准、预计持续时间等信息及时通报相关机组。
C. 若机组所选择的备降机场因NOTAM明确不能接收航班备降时,要球机组更改备降场。
D. 如果确需延误,尽早向机组通报预计需要延误的时间,防止其他紧急情况的发生。
【单选题】
当值班人员认为紧急频率121.5MHz有干扰并影响正常工作时,可以向___申请临时暂停紧急频率121.5MHz的守听。
A. 管制席位
B. 科室领班主任
C. 区管总领班
D. 管制中心总领班
【单选题】
守夜期间,每一段班中,管制员连续在EC实施对空指挥时间不得超过___。
A. 1小时30分钟
B. 2小时
C. 3小时
D. 4小时
【单选题】
在聘期内发生本人原因造成的严重差错(含)以上的工作差错或发生___次(含)以上的一般差错者,将取消岗位教员资格。
A. 1
B. 2
C. 3
D. 4
【单选题】
_____carpet maybe required for emergency landing. ___
A. Water
B. Foam
C. Rubber
D. Sand
【单选题】
ADS is a means for_____.___
A. control
B. communication
C. navigation
D. Surveillance
【单选题】
Before providing radar service,air traffic controllers hould______to the aircraft. ___
A. confirm altitude
B. confirm identity
C. confirm speed
D. confirm heading
【单选题】
Because of their high fuel consumption at low levels,______prefer to remain at higher altitudes when they fly. ___
A. light and small aircraft
B. propeller aircraft
C. Jets
D. allaircraft
【单选题】
When an aircraft was in emergency after taking off,i tshould______before landing. ___
A. check the engine
B. read the checklist
C. dumpfuel
D. makeaplan
【单选题】
“Engine flamed out“means______.___
A. Engine failure
B. Engine fire
C. Engine started
D. Engine lost
【单选题】
“Encounter”means_________
A. spend
B. meet
C. counter
D. get
【单选题】
The opposite meaning of“converging”is______.___
A. diverging
B. opposite
C. diverting
D. closing
【单选题】
Which of the following is not included in the ATC clearance? ___
A. Aircraft callsign
B. Flight route
C. Wind direction and speed
D. Clearance limit
【单选题】
“Recycle squawk A0612”means______.___
A. reselect squawk number A0612
B. don’t use A0612
C. who is squawking A0612
D. squawk A0612
【单选题】
“A575”is a name of a route.“A”means_________
A. the order
B. the first kind
C. main south and north direction
D. no special meaning
【单选题】
“FMC”is a system in an aircraft to manage the______.___
A. met message
B. flight data
C. flight pitch
D. flight roll
【单选题】
“Deteriorating weather”means the weather is getting______.___
A. better
B. clear
C. good
D. worse
【单选题】
Azimuth means horizontal______or direction. ___
A. heading
B. direction
C. bearing
D. scale
【单选题】
According to characters and conditions of flights on the route,ATS route is divided into______and______route. ___
A. domestic,international
B. fixed,temporary
C. regional,national
D. civil,military
【单选题】
Fuel______means the quantity of fuel carried by now. ___
A. reminding
B. endurance
C. number
D. total
【单选题】
The opposite meaning of“speedup”is_________
A. slowdown
B. speeddown
C. speedlow
D. slowby
【单选题】
Pilot turns on squawk______to request a squawk number. ___
A. 3000
B. 3500
C. 4000
D. 2000
【单选题】
First______assistance means doctor and ambulance in an emergency condition. ___
A. emergency
B. priority
C. aid
D. help
【单选题】
When somebody is reported hurt on board,maybe it will need______assistance on arrival. ___
A. fire-cart
B. medical
C. police
D. wheelchair
【单选题】
In emergency descent procedure,the pilot should turn right______out of the route while descending. ___
A. 40°
B. 30°
C. 20器
D. 15°
【单选题】
管制员在对空指挥过程中,越是繁忙的时候,语速应___
A. 保持平稳,避免频繁重复指令
B. 尽量快些,才能指挥更多飞机
C. 降低语速,避免口误
D. 时快时慢,引起机组的注意
【单选题】
According to ICAO,a standard holding pattern should all turn to the______.___
A. right
B. west
C. left
D. east
【单选题】
The standard altimeter setting is______inhpa. ___
A. 1013.20062
B. 1010.10062
C. 29.92002
D. 30.10002
【单选题】
2500f/m rate of vertical speed is equal to______.___
A. 10m/s
B. 15m/s
C. 20m/s
D. 25m/s
【单选题】
陆空通话时,什么时候推荐使用“IMMEDIATELY(立即)”这个词:___
A. 相对飞行穿高度时
B. 天气差时,担心自己会忘记某个正在改变高度的动态
C. 飞机多时,为了节省精力
D. 在紧急情况下,用于冲突解脱时
【单选题】
Standard rate for a turning is______degrees per second. ___
A. 4
B. 6
C. 3
D. 2
【单选题】
What is the best course of action for a pilot to follow when thunderstorms are observed along the route of flight? ___
A. Fly below the thunderstorms
B. Climb over the thunderstorms
C. Disregard the thunderstorms
D. Take any action to avoid all thunderstorms
【单选题】
The subdivision of frequencies is______MHZ. ___
A. 0.025
B. 0.035
C. 0.02
D. 0.015
【单选题】
Aeronautical chart is divided into two categories,______. ___
A. Aeronautical map and special type of aeronautical chart
B. En-route chart and approach chart
C. Area chart and standard instrument arrival and departure chart
D. Aerodrome chart and area chart
【单选题】
Aircraft are required to comply with ATC instructions within______.___
A. advisory airspace
B. domestic airspace
C. controlled airspace
D. international airspace
【单选题】
Amendments to the initial clearance will be issued at anytime an air traffic controller deems such action necessary to______.___
A. avoid possible confliction between aircraft
B. correct the previously issued clearance
C. cancel the flight plan
D. expedite the traffic
【单选题】
研究表明,当耳机话筒的位置距离嘴( )英寸且稍微偏下时,传输的声音质量最佳。(注:1英寸=2.54CM)___
A. 0.25-0.5
B. 0.75-1
C. 1.25-1.5
D. 1.75-2
【单选题】
“I want to divert to shanghai” is equal to______.___
A. I want to our destination Shanghai
B. I want to overfly Shanghai
C. I want to alternate to land at Shanghai
D. I want to call Shanghai control
【单选题】
When an aircraft is being subjected to unlawful interference, the pilot should try to notify _______ of this fact.___
A. the appropriate ATC units
B. company
C. the passengers on board
D. air attendants
欢迎使用我爱刷题
×
微信搜索我爱刷题小程序
温馨提示
×
请在电脑上登陆“www.woaishuati.com”使用