41●对于长度为 m(m>1)的指定序列,通过初始为空的一个栈,一个队列后,错误的叙述是(61)
A.若入栈和入队的序列相同,则出栈序列和出队序列可能相同
B.若入栈和入队的序列相同,则出栈序列和出队序列可以互为逆序
C.入队序列与出队序列关系为 1:1,而入栈序列与出栈序列关系是 1:n(n≧1)
D.入栈序列与出队序列关系为 1:1,而入队序列与出栈序列关系是 1:n(n≧1)
开始考试练习点击查看答案42●字符串采用链表存储方式时,每个结点存储多个字符有助于提高存储密度。若采用结点大小相同的链表存储串,则串比较、求子串、串连接、串替换等串的基本运算中,(62)
A.进行串的比较运算最不方便
B.进行求子串运算最不方便
C.进行串连接最不方便
D.进行串替换最不方便
开始考试练习点击查看答案43●以下关于快速排序算法的描述中,错误的是(64)。在快速排序过程中,需要设立基准元素并划分序列来进行排序,若序列由元素{12,25,30,45,52,67,85}构成,则初始排列为(65),排序效率最高(令序列的第一个元素为基准元素)。
A.快速排序算法是不稳定的排序算法
B.快速排序算法是最坏情况下的时间复杂度为 O(nlgn)
C.快递排序算法是一种分治算法
D.当输入数据基本有序时,快递排序算法具有最坏情况下的时间复杂度
开始考试练习点击查看答案44●下列网络互连设备中,属于物理层的是(66),属于网络层的是(67)
A.中继器
B.交换机
C.路由器
D.网桥
开始考试练习点击查看答案45●Why is(71)fun、 What delights may its practitioner espect his reward、 First is thesheer joy of making things.As the child delights in his mud pie,so the adult enjoysbuilding things,especially things of his own design.Secong is the pleasure of makingthings that are useful to other people.Third is the fascinanon of fashioning complexpuzzle-like objects of interlocking moving parts and watching them work in subtleeyeles,playing out the consequences of principies built in from the beginning.Fourthis the joy of always learning,which springs from the(72)nature of the task.In one wayor another the problem is ever new,and its solver learnssomething:sometimes(73),sometimes theoretical,and sometimes both.Finally,there isthe delight of working in such a tractable medium.The(74),like the poet,works onlyslightly removed from nure thought-stuff.Few media of ereation are so flexible,so easyto polish and rework,so readily capable of realizing grand conceptual structures.Yet the program(75),unlike the poet’s words,is real in the sense that it moves andworks,producing visible outputs separate from the comstrct itself.It printsresults,draws pictures,produces sounds,moves arms.Progamming then is fun because itgratifies creative longings built deep within us and delights sensibities we hav e incommon with all men.
A.programming
B.composing
C.working
D.writing
开始考试练习点击查看答案