计算机四级 2021_07_26 每日一练
Which of the following statements is true regarding simple sort techniques?
A.exchange sort if frequently referred to as a bubble sort.
B.exchange sort is the least expensive.
C.if random data are in an array that is to be sorted ,an insertion sort will give then best performance for large elements with small sort items.
D.both insertion sort an selection sort require O(n) moves.
根据下面描述为该学校教务管理设计概念模型。
1)该系统包括教师、学生、班级、系、课程、课程使用教材等信息。
2)教师有教师编号、姓名、职称、电话等;学生有学号、姓名、性别、出生年月等;班级有班级号、班主任信息等;系有系编号、系名和系办公室电话等;课程有课程号、课程名、学分、上课时间和课时等。
3)每个学生属于一个班,每个班属于一个系,每个教师也属于一个系。
4)每个班的班主任由一名教师担任,而一名教师只能担任一个班的班主任。
5)一名教师可以教多门课,一门课程也可以由多名教师主讲。
6)一名学生可以选修多门课程,一门课程可被若干同学选修,一名学生选中的课程若已经学完,应该记录相应的成绩。
7)一门课程使用多本参考书,一本参考书只用于一门课程。
8)学生名、教师名允许有重名,教师编号、学号可作为唯一标识。
假设系统处于下列安全状态,目前系统剩余资源数量为2。下列哪一个进程序列是安全序列?
进程已占资源数 最大需求数
P112
P235
P348 P457
A.P1,P2,P3,P4
B.P1,P3,P4,P2
C.P3,P2,P4,P1
D.P3,P1,P4,P2