- C語言程序設計習題與實驗指導
- 孟東霞主編
- 256字
- 2025-04-02 16:22:11
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
推薦閱讀
- ASP.NET Core:Cloud-ready,Enterprise Web Application Development
- Java高并發核心編程(卷2):多線程、鎖、JMM、JUC、高并發設計模式
- C++ Builder 6.0下OpenGL編程技術
- MongoDB for Java Developers
- Internet of Things with Intel Galileo
- 程序員修煉之道:通向務實的最高境界(第2版)
- SAP BusinessObjects Dashboards 4.1 Cookbook
- Cocos2d-x學習筆記:完全掌握Lua API與游戲項目開發 (未來書庫)
- 深入理解Android:Wi-Fi、NFC和GPS卷
- JavaCAPS基礎、應用與案例
- Julia 1.0 Programming Complete Reference Guide
- PrimeFaces Blueprints
- Arduino Wearable Projects
- CodeIgniter Web Application Blueprints
- 超簡單:用Python讓Excel飛起來(實戰150例)