阿摩線上測驗
登入
首頁
>
研究所、轉學考(插大)、學士後-計算機概論
>
102年 - 102 國立高雄大學_轉學招生考試試題(轉二年級)_資訊工程學系:計算機概論#148910
> 申論題
4. What will be the output of the following C program? (15%)
s = 0;
for (i = 0; i <= 10; i++) {
if (i % 2 == 1)
continue;
for (j = 1; j < i; j++) {
if (i * j > 50)
break;
s = s + j;
}
}
frintf (“%d”, s);
相關申論題
5. Write a C function named fun1 that accepts an integer parameter n and prints all integers from 1 to n that are not the multiplier of either 3 or 5. (20%)
#617746
6. Suppose that the ASCII codes for ‘A’ to ‘Z’ are from (41) 16 to (5A) 16 and the ASCII codes for ‘a’ to ‘z’ are from (61) 16 ~ (7A) 16 . Assume that character variable ch stores a lower-case letter. Write a logic expression that applies AND, OR, or NOT to ch to capitalize it (converting ‘a’ to ‘A’, ‘b’ to ‘B’, and so on). (15%)
#617747
相關試卷
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