阿摩線上測驗
登入
首頁
>
研究所、轉學考(插大)、學士後-計算機概論
>
115年 - [無官方正解]115 國立高雄大學_轉學招生考試試題(轉二年級)_資訊工程學系:計算機概論#148890
> 申論題
Part II. Please fill in the following blanks 填充題(10%)
1. 整數 -26 所對應的 8 位元二補數(the 8-bit two's complement number)為__
相關申論題
2. 計算 $(00111111)2$ XOR $(00111100)2$ AND $(00110111)2=$ _
#617555
Part III. Problems (60%) 1. (10%) Explain the five main components of the von Neumann model.
#617556
2. (20%) Given an array $A$ with $n$ integers $A[0], A[1], \dots, A[n-1]$ and an integer $k$, write a C program to find the maximum $k$ subsequence sum $\sum{i=j}^{j+k-1} Ai$, where $0 \le j \le n-k$, and analyze the program in the worst case. For example: Given $A[0] = -1, A[1] = 9, A[2] = -3, A[3] = 8, A[4] = -1$ and $k=3$, output the maximum $k$ subsequence sum $(9)+(-3)+(8)=14$. (If you have many programs, choose the program with less running time. If you cannot write the program in C, design a flowchart or provide an algorithm instead.)
#617557
3. (20%) Given a $k$-sorted array that is almost sorted such that each of the $n$ elements may be misplaced by no more than $k$ positions from the correct sorted order, write a C program to sort this array, and analyze the program in the worst case. (If you have many programs, choose the program with less running time. If you cannot write the program in C, design a flowchart or provide an algorithm instead.)
#617558
4.(10%) According to the program code shown on the right, when the input value N= 20, the output value Q=__. Explain the relationship between Q and N. #include int main() { int N; scanf("%d", &N); int Q = 0, place = 1; if (N == 0) { Q = 0; } else { while (N > 9) { Q += 9 * place; place *= 10; N -= 9; } Q += N * place; } printf("%d\n", Q); return 0; }
#617559
相關試卷
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