4. 设有两个散列函数H1(k)=kmod 13和H2(k)=k mod 11+1,散列表为T[0…12],用二次散列法解决冲突。函数H1用来计算散列地址,当发生冲突时,H2作为计算下一个探测地址的地址增量。假定某一时刻散列表的状态为: 下一个被插入的关键码为42,其插入位置应是。
A.0
B.1
C.3
D.4
A B C D
A
5. 下面是一段Pascal程序: for h:=1 tO n-1 dO begin x:=A[h+1]; k:=h; while (k>=1) and (A[k]>x) do begin A[k+1):=A[k]; k:=k-1 end; A[k+1]:=x end; 假设在程序开始执行时,数组A[1..n)是一组随机整数。下列答案中,哪一个最好的描述了最差情况下的程序执行时间(运行时间阶数)?
56. What is the decimal value of the following 8-bit two's complement number? 1111 1001
A.-7
B.-3
C.3
D.7
A B C D
A
57. There are several periods in a computer, the longest period is .
A.instruction period
B.machine period
C.beat period
D.CPU period
A B C D
A
58. Which traversal method for a binary tree does the following Pascal code illustrate? Procedure traverse(p:pointer) Begin If p<>nil then begin traverse(p↑.left); process(p); traverse(p↑.right); end end;
A.preorder
B.postorder
C.reorder
D.inorder
A B C D
D
59. 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 perform-ance for large elements with small sort items
D.both insertion sort an selection sort require O(n) moves
A B C D
A
60. What is the definition of a path?
A.A sequence of vertices and the edges formed by each successive pair of vertices
B.A walk with distinct vertices
C.A walk with distinct edges
D.None of the above
A B C D
B
61. How many equal valuable relation does set E process? E={0,1,2}
A.3
B.4
C.5
D.6
A B C D
C
62. Software Engineering Economy is an effective part of software engineering, which of the fol-lowing content is the research content of software engineering economy? Ⅰ.Estimation of software development cost Ⅱ.Earn & Cost analysis of software development Ⅲ.Adjustment of software development progress
A.Ⅲ only
B.Ⅱ and Ⅲ
C.Ⅰ and Ⅱ
D.all
A B C D
C
63. Which of the following statements is correct?
A.The definition phase results in the Software Requirements Specification
B.Testing is optional in software life cycle
C.CASE tools can only aid in the design phase of a software life cycle
D.A change during a later phase does not require the documentation of all earlier phases to be up-dated
A B C D
A
64. What operation on relations R and S produces the relation shown below? {tuple | tuple∈R∧tuple∈S}
A.union
B.difference
C.intersection
D.division
A B C D
C
65. Which values are not permitted to be part of the primary key?
A.alpha-numeric characters
B.punctuation
C.special characters
D.NULL
A B C D
D
66. There are two styles in the evolution of instruction set, that is CISC and RISC. Which chip belongs to the CISC?
A.SOAR
B.VAX-11/780
C.CDC6600
D.IBM RTPC
A B C D
B
67. Which OSI layer are both SLIP and PPP belonged to?
A.the Physical Layer
B.the Network Layer
C.the Data Link Layer
D.the Transport Layer
A B C D
C
68. The main goals of Network are sharing computer resources. The resources include hardware、 data and .
A.gateway
B.router
C.software
D.server
A B C D
C
69. According to covering scope, which three classes can computer network be divided?
A.PSN, LAN, WAN
B.MAN,LAN,WAN
C.PSN, FAST Ethernet, LAN
D.PSN, FAST Ethernet, MAN
A B C D
B
70. In HDLC protocol, when supervisory frame's type code is '00'. About the following state-ments, which is correct?