阿摩線上測驗
登入
首頁
>
研究所、轉學考(插大)、學士後-計算機概論
>
94年 - [無官方正解]94 國立高雄大學_轉學招生考試試題_資訊工程學系:計算機概論#148894
> 申論題
18. Convert 8-bit 2's complement integer C3h to decimal.
相關申論題
19. What is cache memory?
#617585
20. If an IP address is 140.127.1.1, which class (A, B, C, D, or E) is this IP address and why?
#617586
21. What is DNS?
#617587
22. What is a proxy server?
#617588
23. What is VoIP?
#617589
24. What is BIOS?
#617590
25. What is CSMA/CD protocol?
#617591
C 程式語言: 26. The following program asks the user to enter two integers, and compares these two integers. Find and correct the errors in the program. (10 分) #include int main() { printf("Enter the first number: "); /* prompt user */ scanf("%d", value1); /* read values from keyboard */ printf("Enter the second number: "); /* prompt user */ scanf("%d", value2); /* read values from keyboard */ if (value1 > value2) printf("%d is larger.\n", value1); if (value1 < value2) printf("%d is larger.\n", value2); if (value1 = value2) printf("These two numbers are equal.\n"); return 0; /* indicate successful termination */ } /* end main */
#617592
27. Write a program that reads a number of seconds, and prints the equivalent numbers of hours, minutes, and seconds as shown in the following figure. (10 分) Enter a number of seconds: 10000 10000 seconds are equal to 2 hours, 45 minutes, and 40 seconds Press any key to continue.
#617593
28. What does the function oddEven perform? What is the execution result on the screen? (10 分) #include void oddEven(int a[], int size); int main() { int a[10] = {1, 4, 6, 2, 3, 5, 6, 4, 3, 2}; oddEven(a, 10); printf("\n"); return 0; } void oddEven(int a[], int size) { if (size == 1) printf("%d, ", a[0]); else { if (a[size-1]%2 == 1) { printf("%d, ", a[size-1]); oddEven(a, size-1); } else { oddEven(a, size-1); printf("%d, ", a[size-1]); } } }
#617594
相關試卷
115年 - [無官方正解]115 國立高雄大學_轉學招生考試試題(轉二年級)_資訊工程學系:計算機概論#148890
115年 · #148890
115年 - [非官方正解]115 國立臺北大學_日間學士班轉學生招生考試試題_資訊工程學系日間學士班2年級:計算機概論#147389
115年 · #147389
115年 - [非官方正解]115 國立臺北大學_碩士班一般入學考試試題_資訊管理研究所:計算機概論#147163
115年 · #147163
115年 - 115 國立嘉義大學_碩士班招生考試試題_資訊管理學系:計算機概論#143936
115年 · #143936
115年 - 115 國立嘉義大學_轉學生招生考試試題_資訊管理學系:計算機概論#143910
115年 · #143910
115年 - [無官方正解]115 國立嘉義大學_轉學生招生考試試題_資訊工程學系:計算機概論#143857
115年 · #143857
115年 - 115 中央警察大學_碩士班入學考試試題_資訊管理研究所:計算機概論#139860
115年 · #139860
114年 - [無官方正解]114 國立臺北大學_碩士班一般入學考試試題_資訊管理研究所:計算機概論#147201
114年 · #147201
114年 - 114 中央警察大學_碩士班入學考試試題_資訊管理研究所:計算機概論#146889
114年 · #146889
114年 - 114 國立嘉義大學_碩士班招生考試試題_資訊管理學系:計算機概論#144127
114年 · #144127