APP下载
首页
>
财会金融
>
程序设计章节汇总
搜索
程序设计章节汇总
题目内容
(
单选题
)
10.在C语言中,字符型数据在内存中以()形式存放( )

A、 原码

B、 BCD码

C、 反码

D、 ASCII码

答案:D

程序设计章节汇总
36.若二维数组a有m列,则计算任一元素a[i][j]在数组中相对位置的公式为(假设a[0][0]位于数组的第一个位置上)
https://www.shititong.cn/cha-kan/shiti/00008150-0e26-08ed-c0f8-9874dcef4300.html
点击查看题目
40.编写求两个双精度数之和的函数,选项中正确的是( )
https://www.shititong.cn/cha-kan/shiti/00008158-0ae5-0301-c0f8-9874dcef4300.html
点击查看题目
20.设x,y和z都是int型变量,且x=3,y=4,z=5,则下面表达式中,值为0的表达式是( )
https://www.shititong.cn/cha-kan/shiti/00008132-6116-2b93-c0f8-9874dcef4300.html
点击查看题目
15.以下代码选项错误的是( )
https://www.shititong.cn/cha-kan/shiti/00008112-f312-fce1-c0f8-9874dcef4300.html
点击查看题目
5.下列正确的标识符是( )。
https://www.shititong.cn/cha-kan/shiti/00008160-060e-df21-c0f8-9874dcef4300.html
点击查看题目
33.已知intk,m=1;执行语句k=-m++;后,k的值是( )
https://www.shititong.cn/cha-kan/shiti/00008112-f313-2472-c0f8-9874dcef4300.html
点击查看题目
17.以下4个选项中,不能看做一条语句的是( )
https://www.shititong.cn/cha-kan/shiti/00008132-6116-254e-c0f8-9874dcef4300.html
点击查看题目
10.设有以下程序段( )
https://www.shititong.cn/cha-kan/shiti/0000813e-e8f3-263b-c0f8-9874dcef4300.html
点击查看题目
8.假定int类型变量占用两个字节,其有定义:intx[10]={0,2,4};,则数组x在内存中所占字节数是D
https://www.shititong.cn/cha-kan/shiti/00008150-0e25-cfc3-c0f8-9874dcef4300.html
点击查看题目
30.在C语言中,以( )作为字符串结束标志
https://www.shititong.cn/cha-kan/shiti/00008160-060f-167f-c0f8-9874dcef4300.html
点击查看题目
首页
>
财会金融
>
程序设计章节汇总
题目内容
(
单选题
)
手机预览
程序设计章节汇总

10.在C语言中,字符型数据在内存中以()形式存放( )

A、 原码

B、 BCD码

C、 反码

D、 ASCII码

答案:D

分享
程序设计章节汇总
相关题目
36.若二维数组a有m列,则计算任一元素a[i][j]在数组中相对位置的公式为(假设a[0][0]位于数组的第一个位置上)

A. i*m+j

B. j*m+i

C. i*m+j-1

D. i*m+j+1

https://www.shititong.cn/cha-kan/shiti/00008150-0e26-08ed-c0f8-9874dcef4300.html
点击查看答案
40.编写求两个双精度数之和的函数,选项中正确的是( )

A. A

B. B

C. C

D. D

https://www.shititong.cn/cha-kan/shiti/00008158-0ae5-0301-c0f8-9874dcef4300.html
点击查看答案
20.设x,y和z都是int型变量,且x=3,y=4,z=5,则下面表达式中,值为0的表达式是( )

A. x&&y

B. x<=y

C. x||++y&&y-z

D. !(x<y&&!z||1)

https://www.shititong.cn/cha-kan/shiti/00008132-6116-2b93-c0f8-9874dcef4300.html
点击查看答案
15.以下代码选项错误的是( )

A. A

B. B

C. C

D. D

https://www.shititong.cn/cha-kan/shiti/00008112-f312-fce1-c0f8-9874dcef4300.html
点击查看答案
5.下列正确的标识符是( )。

A. -a1

B. a[i]

C. a2ⱣⱤi

D. intt

解析:解析:考点:标识符的命名规则(1)只能由字母、数字、下划线构成(2)数字不能作为标识符的开头(3)关键字不能作为标识符选项A中的”-”,选项B中”[“与”]”不满足(1);选项D中的int为关键字,不满足(3)

https://www.shititong.cn/cha-kan/shiti/00008160-060e-df21-c0f8-9874dcef4300.html
点击查看答案
33.已知intk,m=1;执行语句k=-m++;后,k的值是( )

A. -1

B. 0

C. 1

D. 2

https://www.shititong.cn/cha-kan/shiti/00008112-f313-2472-c0f8-9874dcef4300.html
点击查看答案
17.以下4个选项中,不能看做一条语句的是( )

A. ;

B. a=5,b=2.5,c=3.6;

C. if(a<5);

D. if(b!=5)x=2;y=6;

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

A. 运行程序段后输出0

B. 运行程序段后输出1

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

D. 程序段执行无限次

https://www.shititong.cn/cha-kan/shiti/0000813e-e8f3-263b-c0f8-9874dcef4300.html
点击查看答案
8.假定int类型变量占用两个字节,其有定义:intx[10]={0,2,4};,则数组x在内存中所占字节数是D

A. 3

B. 6

C. 10

D. 20

https://www.shititong.cn/cha-kan/shiti/00008150-0e25-cfc3-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
点击查看答案
试题通小程序
试题通app下载