精華區beta FCUProblems 關於我們 聯絡資訊
[開課學院]: 資電學院 [開課系所]: 資訊系 [課程名稱]: 計算機概論 [老師名稱]: 林國貴 老師 [開課學期]: 982 [類型]: 98-2期中考 1.簡述 the Software Lifecycle ? 列出four Phases in the Development Process ? 敘述 the Waterfall Model and the Incremental Development Model 差別 ?(10%) 2.列出 four Common Computer Language Paradigms ? 使用C語言,說明如何達成 Pass by Reference and Pass by Value ? (10%) 3.敘述 the Formal Definition of an Algorithm ? 比較說明 Sequential Search and Binary Search 的優缺點 ? (10%) 4.描述在MS-DOS下執行 gcc -c hello.c , gcc -S hello.c , average <students.txt >avg.txt , 及 sum 35 78 90 其功能與含意 ? (10%) 5.說明下列C語言 Standard Library Functions 功能︰ isprint(ch), strcat(str1,str2),sprintf(daystr,"%2d",day),srand((unsigned)time(NULL)) ,getchar()? (10%) 6.說明C語言的 Local variable , External variable , Static Local variable 的不同特性 ? C程式的 function 及 array 名稱,代表的含意為何 ? (10%) 7.說明Quicksort 程式中的 int splite(int a[],int low,int high){...},其參數 與返回值的內容及函數功能,並描述程式的工作方法 ? (10%) 8.說明Classifying a Poker Hand 程式中的 void analyze_hand(void){...}函數功 能及 int num_in_rank[13], num_in_suit[4]; 其內容與功能 ? (10%) 9.自行設計C語言函數︰ int myatoi(const char *nptr){...},Convert String to Integer ? (10%) 10.設計C語言函數︰ void max_min_avg(int s[], int n, int *max, int *min, float *avg){...},計算陣列 s 包含 n 個資料的最大值,最小值及平均數 ? (10%) -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 114.38.67.172