阿摩線上測驗
登入
首頁
>
研究所、轉學考(插大)、學士後-計算機概論
>
101年 - 101 國立高雄大學_轉學招生考試試題(轉二年級)_資訊工程學系:計算機概論#148907
> 申論題
(h) a list in which entries are inserted and int c[4] = {1, 2, 4, 5};
removed only at the head.
int unf(int k, int n)
相關申論題
2. Consider C function unf defined on the { right-hand-side. (a) What value will int m = 0; unf(3,4) return? (10%) (b) if unf(3,5) if (k == 1) { returns 3, unf(3,6) returns 4, unf(3,7) for (int i = 0; i < 4; i++) if (n == c[i]) returns 9, unf(3,8) returns 9, and return 1; unf(3,9) returns 6, what value will return 0; unf(4,10) return? (10%) }; for (int i = 0; i < 4; i++)
#617723
3. Suppose that C function rand() returns a if (n - c[i] > 0) random integer number in the range 0 to m += unf(k - 1, n - c[i]); return m; 32767. Determine the values of X and Y in }; the following C statement so that the value of integer variable n will be in the range 12 to 21. (% stands for the modulo operator) (10%) n = X – (rand() % Y);
#617724
4. Use 8 bits to represent (-27)10 in two’s complement format. (10%)
#617725
5. Let X be an integer stored in a byte. We want to set (i.e., force to 1) the two leftmost and the three rightmost bits of X (other bits remain unchanged) by using the statement X = X op Y. (a) Which operator should op be? AND, OR, or XOR? (10%)
#617726
(b) What is value of Y in hexadecimal format? (10%)
#617727
相關試卷
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