所屬科目:中山◆電機◆計算機概論
1.The following graph shows the circuit, called D-latch, where a small circle means "not." Then what are the values of x and y when a = O and b = 1? (A)x=0,y=0;(B)x=0,y=1;(C)x=1,y=0;(D)x=1,y=1
2.Given an integer n 2 0 , the Fibonacci number F(n) is defined as follows.
Whether the problem of finding a Fibonacci number F(n) is NP-complete? (A) Yes, because there exists a recursive program whose running time (in units of instruction) is at least 1.618", (B) No, because we can use an iterative approach to derive F(n) such that the running time (in units of instruction) is about n +1; (C) Yes, because we can use an iterative approach to derive F(n) such that the running time (in units of instruction) is about n+1; (D) No, because there exists a recursive program whose running time (in units of instruction) is at least 1.618"
3.The following shows a function written by C programming language. Please tell us the returned value of f (4) ? (A)35:(B)46:(C)48(D)31. F(n)=
8.The following shows a program written by C language. Please tell us the value of sum when the for loop terminates. (A) 110; (B) 120; (C) 130; (D) 140.
12.What is the hexadccimal cquivalent of the octal number (4116)8?(A) (B) (201032)4; (C) (100001001110)2;(D)
13. Please tell us the exection result of the following program written by C programming language? (A)1 2;(B)35;(C)1234;(D)1246789