在程式設計上,下列何者最適於利用物件導向的類別繼承(inheritance)機制來解決?
(A)無窮的迴圈(infinite loops)
(B)擺盪的指標(dangling pointers)
(C)未初始化的使用(use before initialization)
(D)抽象資料型態的重覆使用(reuse of abstract data types)
在分時(time-sharing)作業系統中,如果程序A 的時間區段(time slot)耗盡,因而將執行切換至另一程序B 時,程序A 將會進入何種狀態(state)?
(A)waiting state
(B)ready state
(C)terminated state
(D)running state
快速排序(Quick Sort)是採用下列何種演算法則?
(A)貪婪演算法(Greedy Algorithm)
(B)動態程式規劃(Dynamic Programming)
(C)回溯法(Backtracking)
(D)分而治之法(Divide and Conquer)
執行下列C 語言程式所產生的輸出為何?#include <stdio.h>int x = 0;main() {int y = 25;if( y > 15) {int x = 5;x +=y;}printf("%d\n", x);}
(A)0
(B)25
(C)30
(D)編譯時會產生錯誤訊息,無法執行
下列以C 程式語言撰寫之程式執行後產生之輸出為何?#include <stdio.h>int main(){int a = 64, b = 1;printf("%d", a >> (1+(b<<2)));return 0;}
(A)0
(B)1
(C)2
(D)4
執行下列C 語言程式後,產生的輸出為何?#include <stdio.h>int f (int a, int b) {return a+b;}int g (int a, int b) {return a-b;}int h (int a, int b) {return a*b;}main() {int x =5, y =2;printf(“%d\n”, h(f(x,y), g(x,y)));}
(A)7
(B)3
(C)10
(D)21
下列SQL 語法何者錯誤?
(A)select count(*) from students
(B)select MAX(age) from students
(C)select name, MAX(age) from students
(D)select name, MAX(age) from studentsgroup by name
下列以C 程式語言撰寫之程式中,(A)(B)(C)分別可填入下列何種敘述,使其成為一個合乎語法之程式?#include <stdio.h>int main(){int num;int* p = (A), p2 = (B);*p = (C);return 0;}
(A)
(A) num
(B) num
(C) num
(B)
(A) &num
(B) &num
(C) num
(C)
(A) &num
(B) &num
(C) &num
(D)
(A) &num
(B) num
(C) num
下列何種加密法可以利用訊息理論證明為無法破解?
(A)Onetime Pad
(B)RSA (Rivist, Shamir, Adleman) system
(C)ECC (Elliptic Curve Cryptography)
(D)Triple DES (Triple Data Encryption Standard)