作者happyhotdog (XXX)
看板FCUProblems
标题[考古] 计算机概论(二)/林国贵/982期中考
时间Thu Apr 15 18:11:42 2010
[开课学院]: 资电学院
[开课系所]: 资讯系
[课程名称]: 计算机概论
[老师名称]: 林国贵 老师
[开课学期]: 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