ISO 的OSI(Open System Interconnection)參考模型及TCP/IP 協定組(protocol suite)各分成幾層?
(A)OSI:七層,TCP/IP:四層
(B)OSI:四層,TCP/IP:七層
(C)OSI:七層,TCP/IP:五層
(D)OSI:五層,TCP/IP:七層
已知一 connected graph G 共有 20 個節點(vertex),而 T 為 G 的一個 spanning tree。試問 T 共有幾個邊界(edge)?
(A)10
(B)19
(C)20
(D)與 G 的結構有關,已有資訊無法斷定 T 有幾個邊界
執行下列C 語言程式的結果為何?#include<stdio.h>int unknown(int temp[], int size, int key){int i = 0;while( (temp[i] != key) && (i < size))i++;return(i);}void main(){int list[]={1,3,5,7,9,11,13,15};int output =unknown(list, 8, 3);printf("%d", output);}
(A)輸出整數1
(B)輸出整數3
(C)輸出整數8
(D)進入無窮迴圈程式無法停止
下列各節點排序中,何者是下圖 graph 的 topological order?
(A)c, a, b, d, f, e, g, i, h, k, j
(B)a, b, c, d, g, e, f, k, j, i,h
(C)c, a, b, d, e, g, f, i, h, k, j
(D)a, e, i, k, b, d, f, h, j, c, g
下列C 程式執行後的結果為何?char s1[10]="abc",s2[10]="abc",s3[10]="def";if (s1==s2)printf("string1 and string2 are the same\n");elseprintf("string1 and string2 are different\n");if (s1==s3)printf("string1 and string3 are the same");elseprintf("string1 and string3 are different");
(A)string1 and string2 are the same string1 and string3 are the same
(B)string1 and string2 are the same string1 and string3 are different
(C)string1 and string2 are different string1 and string3 are the same
(D)string1 and string2 are different string1 and string3 are different
若y =1900,則下列 C 語言敘述句將產生何種結果?k=(y%400==0)? 1:(y%4==0)&&(y%100!=0)? 2:3;
(A)k=0
(B)k=1
(C)k=2
(D)k=3