阿摩線上測驗
登入
首頁
>
研究所、轉學考(插大)◆計算機概論與程式設計
>
110年 - 110 國立政治大學_碩士班招生考試_數位內容碩士學位學程/資訊應用組:計算機概論與程式設計#102930
> 試題詳解
5. For recursion, a function fib( ) is defined to compute the Fibonacci number. How many times the function is called for fib(6)?
(A) 12
(B) 13
(C) 14
(D) 15
(E) 以上皆非
答案:
登入後查看
統計:
A(0), B(2), C(0), D(0), E(2) #2793462
詳解 (共 1 筆)
黎慶噎
B1 · 2021/11/02
#5188979
(A) 若Fib(n) = Fib(n...
(共 103 字,隱藏中)
前往觀看
0
0
相關試題
1. Which of the following layer is not in the 7-layer Open Systems Interconnection (OSI) model? (A) Session (B) Connection (C) Presentation (D) Data link (E) None
#2793458
2. Which of the following image compression is lossy compression? (A) GIF (B) PNG (C) TIFF (D) JPEG (E) None
#2793459
3. Which of the following memory device is faster for accessing data? (A) ROM (C) RAM (D) HDD (E) Cache (B) SSD
#2793460
4. For iteration and recursion, which is faster when computing a large Fibonacci number? (A) Iteration (B) Recursion (C) Equal (D) None
#2793461
6. Which of the following number is the largest one? (A) 11011011 in 2's complement (B) 10010110 in binary (C) A9 in Hexadecimal (D) 235 in Octal (E) 01111001 in 1's complement
#2793463
7. For the sorting methods with the same time complexity in best, average and worst cases in the following, which one has both the smallest time and space complexity in worst case? (A) Selection sort (B) Quick sort (C) Merge sort (D) Insertion sort (E) Heap sort
#2793464
8. Which of the following expression is different from the others if A: True, B: False, C: False, D: True? (A) (A OR B) AND (C AND D) (B) (A NAND B) XOR (C NOR D) (C) (A XOR (NOT B)) XOR (C AND D) (D) (A AND D) XOR (B OR C (E) None
#2793465
9. Which of the following operator has the highest precedence? (A) ++ (B) && (C)== (D)* (E)>
#2793466
10. In the following statementswhich of the following choice is the correct answer of a? (A) 5 (B) 6 (C) 7 (D) 8 (E) infinite
#2793467
相關試卷
110年 - 110 國立政治大學_碩士班招生考試_數位內容碩士學位學程/資訊應用組:計算機概論與程式設計#102930
2021 年 · #102930