所屬科目:研究所、轉學考(插大)、學士後-計算機概論
1. Which two programming languages were specifically designed for artificial intelligence? (A) FORTRAN and COBOL (B) Java and Pascal (C) LISP and PROLOG (D) C and C++
2. In language understanding, parsing a sentence is part of which process? (A) pragmatic analysis (B) semantic analysis (C) syntactic analysis (D) speech recognition
3. How is the complexity of a program typically expressed? (A) the Simple Language (B) factorials (C) big-O notation (D) the Turing number
4. What type of search is used for an unordered list? (A) binary (B) bubble (C) sequential (D) insertion
5. In which type of cryptography is the same key used by both the sender and the receiver? (A) public-key (B) open-key (C) asymmetric-key (D) symmetric-key
1. Convert the decimal number 25.625 to the binary number _________.
2. Assuming that D is an array and dptr is a pointer to that array in C/C++, what expression refers to the address of the second element. ________________
3. Change the 8-bit two’s complement number (11111010)2 to decimal number ___________.
(a) if the input N=4, then what is the output? ________
(b) what is the function of the flow chart? ________
三﹑問答題 Problems (50%) 1. For a given non-negative integer number N, find the minimal natural Q such that the product of all digits of Q is equal N. For example, we have Q=25 if N=10=2×5. Given an integer ? such that all of its prime factors are less than 9, write a C program to find Q and analyze the program in the worst case.
2.Solve the difference equation an = 3an−1 + 4an−2 with a0 = 0, a1 = 1. Given an integer n, write a C program to find an and analyze the program in the worst case. (If you have many programs, choose the program with less running time.)