APP下载
首页
>
财会金融
>
程序设计章节汇总
搜索
程序设计章节汇总
题目内容
(
单选题
)
26.设有以下程序段( )

A、 运行程序段后输出0

B、 运行程序段后输出1

C、 程序段中的控制表达式是非法的

D、 程序段执行无限次

答案:B

程序设计章节汇总
15.下面程序的运行结果是( )
https://www.shititong.cn/cha-kan/shiti/0000813e-e8f3-3893-c0f8-9874dcef4300.html
点击查看题目
31.有以下语句,则对a数组元素的引用不正确的是(0≤i≤9)
https://www.shititong.cn/cha-kan/shiti/00008150-0e25-ff2f-c0f8-9874dcef4300.html
点击查看题目
27.若有以下程序上面程序输出结果是
https://www.shititong.cn/cha-kan/shiti/00008150-0e25-f701-c0f8-9874dcef4300.html
点击查看题目
7.下列四组选项中,正确的C语言标识符是( )。
https://www.shititong.cn/cha-kan/shiti/00008160-060e-e362-c0f8-9874dcef4300.html
点击查看题目
15.若已定义:inta=25,b=14,c=19;以下三目运算符(?:)所构成语句的执行后a<=25&&b--<=2&&c?printf(”***a=%d,b=%d,c=%d\n”,a,b,c):printf(”###a=%d,b=%d,c=%d\n”,a,b,c);程序输出的结果是( )
https://www.shititong.cn/cha-kan/shiti/00008132-6116-20f3-c0f8-9874dcef4300.html
点击查看题目
12.若变量a,i已正确定义,且i已正确赋值,合法的语句是( )
https://www.shititong.cn/cha-kan/shiti/00008112-f312-f4d7-c0f8-9874dcef4300.html
点击查看题目
10.设有以下程序段( )
https://www.shititong.cn/cha-kan/shiti/0000813e-e8f3-263b-c0f8-9874dcef4300.html
点击查看题目
28.以下对C语言函数的有关描述中,正确的是( )
https://www.shititong.cn/cha-kan/shiti/00008158-0ae4-ebe3-c0f8-9874dcef4300.html
点击查看题目
22.定义如下变量和数组:
https://www.shititong.cn/cha-kan/shiti/00008150-0e25-ecc4-c0f8-9874dcef4300.html
点击查看题目
7.若a为整型变量,则以下语句( )。a=-2L;printf(“%d\n”,a);
https://www.shititong.cn/cha-kan/shiti/00008112-f312-eb3a-c0f8-9874dcef4300.html
点击查看题目
首页
>
财会金融
>
程序设计章节汇总
题目内容
(
单选题
)
手机预览
程序设计章节汇总

26.设有以下程序段( )

A、 运行程序段后输出0

B、 运行程序段后输出1

C、 程序段中的控制表达式是非法的

D、 程序段执行无限次

答案:B

分享
程序设计章节汇总
相关题目
15.下面程序的运行结果是( )

A. a=3,b=11

B. a=2,b=8

C. a=1,b=-1

D. a=4,b=9

https://www.shititong.cn/cha-kan/shiti/0000813e-e8f3-3893-c0f8-9874dcef4300.html
点击查看答案
31.有以下语句,则对a数组元素的引用不正确的是(0≤i≤9)

A. a[p-a]

B. *(&a[i])

C. p[i]

D. *(*(a+i))

https://www.shititong.cn/cha-kan/shiti/00008150-0e25-ff2f-c0f8-9874dcef4300.html
点击查看答案
27.若有以下程序上面程序输出结果是

A. 6

B. 8

C. 4

D. 2

https://www.shititong.cn/cha-kan/shiti/00008150-0e25-f701-c0f8-9874dcef4300.html
点击查看答案
7.下列四组选项中,正确的C语言标识符是( )。

A. %x

B. a+b

C. a123

D. 123

解析:解析:选项A中的”%”,选项B中”+”不满足(1);选项D中的标识符以数字开头不满足(2)

https://www.shititong.cn/cha-kan/shiti/00008160-060e-e362-c0f8-9874dcef4300.html
点击查看答案
15.若已定义:inta=25,b=14,c=19;以下三目运算符(?:)所构成语句的执行后a<=25&&b--<=2&&c?printf(”***a=%d,b=%d,c=%d\n”,a,b,c):printf(”###a=%d,b=%d,c=%d\n”,a,b,c);程序输出的结果是( )

A. ***a=25,b=13,c=19

B. ***a=26,b=14,c=19

C. ###a=25,b=13,c=19

D. ###a=25,b=14,c=19

https://www.shititong.cn/cha-kan/shiti/00008132-6116-20f3-c0f8-9874dcef4300.html
点击查看答案
12.若变量a,i已正确定义,且i已正确赋值,合法的语句是( )

A. a==1

B. ++i;

C. a=a++=5;

D. a=int(i);

https://www.shititong.cn/cha-kan/shiti/00008112-f312-f4d7-c0f8-9874dcef4300.html
点击查看答案
10.设有以下程序段( )

A. 运行程序段后输出0

B. 运行程序段后输出1

C. 程序段中的控制表达式是非法的

D. 程序段执行无限次

https://www.shititong.cn/cha-kan/shiti/0000813e-e8f3-263b-c0f8-9874dcef4300.html
点击查看答案
28.以下对C语言函数的有关描述中,正确的是( )

A. 在C语言中调用函数时,只能把实参的值传给形参,形参的值不能传送给实参

B. C函数既可以嵌套定义又可以递归调用

C. 函数必须有返回值,否则不能使用函数

D. 函数必须有返回值,返回值类型不定`

https://www.shititong.cn/cha-kan/shiti/00008158-0ae4-ebe3-c0f8-9874dcef4300.html
点击查看答案
22.定义如下变量和数组:

A. A

B. B

C. C

D. D

https://www.shititong.cn/cha-kan/shiti/00008150-0e25-ecc4-c0f8-9874dcef4300.html
点击查看答案
7.若a为整型变量,则以下语句( )。a=-2L;printf(“%d\n”,a);

A. 赋值不合法

B. 输出为不确定的值

C. 输出值为-2

D. 输出值为2

https://www.shititong.cn/cha-kan/shiti/00008112-f312-eb3a-c0f8-9874dcef4300.html
点击查看答案
试题通小程序
试题通app下载