C语言程序设计习题与实验指导
上QQ阅读APP看书,第一时间看更新

2.4 测试题答案

一、单项选择题

1~5 [B] [B] [A] [B] [B]

6~10 [A] [B] [B] [D] [D]

11~15 [B] [A] [B] [A] [B]

16~20 [C] [D] [D] [A] [B]

21~25 [C] [C] [D] [C] [D]

26~30 [B] [C] [C] [C] [B]

31~35 [D] [B] [C] [D] [D]

36~40 [A] [C] [C] [D] [C]

41~45 [B] [D] [A] [B] [C]

二、填空题

1. 11,12

2. 4.2,4.2

3. in t,float,double

4. float a1=1.0,a2=1.0;

5. 存储单元

6. 3.5

7. a/(b*c),a/b/c,a/c/b

8. 将10赋给变量s

9. 位,0和1

10. 16

11. 8,255,1111 1111,−128,1000 0000

12. 65535,−32768,1111 1111 1111 1111,1000 0000 0000 0000

13. (1)−200 2500(2)i=−200,j=2500(3)i=−200,j=2500

14. 12,0,0 15. 一条语句,;

16. 100 25.81 1.8923↙,100 25.81↙1.8923↙,100↙25.81↙1.8923↙(↙表示回车)

17. x=127,x=127,x=177,x=7f,x=127

18. a=513.789215,a=513.79,a=513.78921500,a=513.78921500

19. 10A20B30C40D<CR>

20. 7.29 101.298AB<CR>

21. AAAABBBBCCCC↙

22. 6.6