阿摩線上測驗
登入
首頁
>
研究所、轉學考(插大)、學士後-計算機概論
> 96年 - 96 國立高雄大學_轉學招生考試試題_資訊工程學系:計算機概論#149000
96年 - 96 國立高雄大學_轉學招生考試試題_資訊工程學系:計算機概論#149000
科目:
研究所、轉學考(插大)、學士後-計算機概論 |
年份:
96年 |
選擇題數:
0 |
申論題數:
11
試卷資訊
所屬科目:
研究所、轉學考(插大)、學士後-計算機概論
選擇題 (0)
申論題 (11)
1. (a) Show a truth table for the following circuit diagram. (5%) (b) Draw a circuit diagram that is
logically equivalent to the following circuit and uses only one NAND gate and one NOT gate.
(10%)
A
B
X
2. (a) Convert decimal number 102.75 into binary. (5%)
(b) Show how to compute 3 15 using 2's
complementation representations and an addition (each number is represented by 8 bits). (5%)
3. (a) (10110110)2 XOR (01101010)2 = ? (5%)
(c) What is the result of executing printf(“%d”,
56 << 2); in C language? (5%)
4. In C language, “&”, “|”, and “~” are bitwise AND, bitwise OR, and one’s complement
operators, respectively. Let x be an unsigned int in C. (a) Write an if-statement that checks
whether bits 0, 5, 6 of x are all 1’s using one of these operators. (5%)
(b) Write an if-statement
that checks whether any of the bits 0, 5, 6 of x is 1 using two of these operators. (10%)
5. Suppose we are to digitize an audio signal. If the sampling rate (the number of times per second
we sample the amplitude of the sound wave) is 8 kHz and the bit depth (the number of bits used
to encode each sample) is 16, how many storage space is required for a 10-minute
uncompressed audio signal? What is the number of distinct amplitude levels that can be
represented by this setting? (10%)
6. Write a function in C or Java that right rotates the contents of a given integer array. For example,
if A = {45, 23, 11, 87, 4, 6, 26, 10}, then we have A = {10, 45, 23, 11, 87, 4, 6, 26} after it has
been right rotated. (10%)
7. Write a function in C or Java that accepts integer n as an input and returns the following result.
(15%)
1 1 1 1
1 1 2 1 2 3 1 2 3 n
8. Let C(n, k) denote the number of ways to select k out of n items without order. It is known that
C(n ,1) = n, C(n, n) = 1, and C(n, k) = C(n 1, k 1)+C(n 1, k). Please write a recursive function
comb(int n, int k) that computes C(n ,k) based on the above-mentioned knowledge.
(15%)
相關試卷
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 國立高雄大學_轉學招生考試試題(轉二年級)_資訊工程學系:計算機概論#148916
114年 · #148916
114年 - [無官方正解]114 國立臺北大學_碩士班一般入學考試試題_資訊管理研究所:計算機概論#147201
114年 · #147201
114年 - 114 中央警察大學_碩士班入學考試試題_資訊管理研究所:計算機概論#146889
114年 · #146889