1.C语言的基本构成单位是:( )
A. 函数
B. 函数和过程
C. 超文本过程
D. 子程序
https://www.shititong.cn/cha-kan/shiti/00008106-48c2-2a71-c0f8-9874dcef4300.html
点击查看答案
6.下列C语言用户标识符中合法的是( )。
A. 3ax
B. x
C. case
D. -e2
E. union
解析:解析:选项A中的标识符以数字开头不满足(2);选项C,E均为为关键字,不满足(3);选项D中的”-”不满足(1);
https://www.shititong.cn/cha-kan/shiti/00008160-060e-e144-c0f8-9874dcef4300.html
点击查看答案
9.有如下程序
该程序的输出结果是( )
A. a=2,b=1
B. a=1,b=1
C. a=1,b=0
D. a=2,b=2
https://www.shititong.cn/cha-kan/shiti/00008132-6116-1366-c0f8-9874dcef4300.html
点击查看答案
34.下列程序
的输出结果是( )
A. a=4,b=4
B. a=4,b=5
C. a=5,b=4
D. a=5,b=5
https://www.shititong.cn/cha-kan/shiti/0000813e-e8f3-6419-c0f8-9874dcef4300.html
点击查看答案
13.若运行时给变量x输入12,则以下程序
的运行结果是( )
https://www.shititong.cn/cha-kan/shiti/00008132-6116-1c96-c0f8-9874dcef4300.html
点击查看答案
4.以下叙述不正确的是:( )
A. 在C程序中,语句之间必须要用分号”;”分隔
B. 若a是实型变量,C程序中a=10是正确的,因为实型变量中允许存放整型数
C. 在C程序中,无论是整数还是实数都能正确无误地表示
D. 在C程序中,%是只能用于整数运算的运算符
https://www.shititong.cn/cha-kan/shiti/00008106-48c2-42fd-c0f8-9874dcef4300.html
点击查看答案
19.设变量a是int型,f是float型,i是double型,则表达式10+a+i*f值的数据类型为( )
A. int
B. float
C. double
D. 不确定
https://www.shititong.cn/cha-kan/shiti/00008112-f313-05bd-c0f8-9874dcef4300.html
点击查看答案
15.有以下程序
( )
A. 编译出错
B. 9
C. 21
D. 9.0
https://www.shititong.cn/cha-kan/shiti/00008158-0ae4-cfa5-c0f8-9874dcef4300.html
点击查看答案
30.在C语言中,以( )作为字符串结束标志
A. ’\n’
B. ’’
C. ’0’
D. ’\0’
https://www.shititong.cn/cha-kan/shiti/00008160-060f-167f-c0f8-9874dcef4300.html
点击查看答案
43.以下程序段的输出结果是
( )
A. 12
B. 34
C. 1234
D. 提示出错、无结果
https://www.shititong.cn/cha-kan/shiti/00008112-f313-3798-c0f8-9874dcef4300.html
点击查看答案