存储下面的二进制数需要多少字节?
1001011001 (a)10 (b)1 (c)1.2 (d)2 (e)二进制数无法用字节存储下列哪个选项可以用来表示一个十六进制数?
(a)两个十进制数 (b)字节 (c)半字节 (d)一个八进制数 (e)三个二进制数二进制数0011换算成十六进制是3。00110011换算成十六进制是什么?
(a)303 (b)33 (c)6 (d)1111 (e)3F十六进制数1F加1等于多少?
(a)1G (b)1F1 (c)1E (d)21 (e)20下面一行语句在终端上输出的结果是什么?
(a)Value is 81 (b)Value is 081 (c)Value is 65 (d)Value is 129 (e)编译失败,没有输出从下列语句中选出一个输出结果和其他都不一样的。
(a)printf(“Value is %u \r\n”, 10); (b)printf(“Value is %u \r\n”, 0b1010); (c)printf(“Value is %u \r\n”, 012); (d)printf(“Value is %u \r\n”, 0x0A); (e)所有输出都一样存储下列字符串需要多少字节的内存?
“three” (a)0 (b)3 (c)5 (d)6 (e)7存储下列字符串常量需要多少字节的内存?
“\101\0x432\f” (a)0 (b)3 (c)4 (d)5 (e)6在256个ASCII字符中,有多少个字符不能通过C字符串显示出来?
(a)0 (b)1 (c)31 (d)128 (e)159下列C代码中存在哪些错误?
(a)a没有大写 (b)在const那一行中有分号 (c)关系运算符(>)不能用于赋值运算符(=) (d)以上全是 (e)没有错误 相关资源:嵌入式C编程 PIC单片机和C编程技术与应用