- 1、本文档共8页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
2009数据结英文试卷A及答案----NEW
Final examination
2009 Fall
Data Structure and Algorithm Design
Class: Student Number: Name: Teacher
No. 1 2 3 4 5 6 7 8
9 Total Mark 1.Single-Choice(20 points)
(1) Consider the following definition of a recursive function ff.
int ff( int n )
{ if( n == 0 ) return 1;
return 2 * ff( n - 1 );
}
If n 0, what is returned by ff( n )?
(a) log2 n (b) n2 (c) 2n (d) 2 * n
(2) An input into a stack is like 1,2,3,4,5,6. Which output is impossible? .
a. 2,4,3,5,1,6 b.3,2,5,6,4,1 c.1,5,4,6,2,3 d.4,5,3,6,2,1
(3) Which of the following data structures uses a Last-in, First-out policy for element insertion and removal?
(a) Stack (b) Tree (c) Hash table (d) Queue
(4) If deleting the ith key from a contiguous list with n keys, keys need to be shifted left one position.
a. n-i b. n-i+1 c. i d. n-i-1
(5) Sorting a key sequence(28,84,24,47,18,30,71,35,23), its status is changed as follows.
23,18,24,28,47,30,71,35,84
18,23,24,28,35,30,47,71,84
18,23,24,28,30,35,47,71,84
The sorting method is called
(a).select sorting (b).Shell sorting
(c).merge sorting (d).quick sorting
(6) The number of keyword in every node except root in a B- tree of order 5 is _ _ at least
a. 1 b. 2 c. 3 d. 4
(7) When sorting a record sequence with multiple keys using Least Significant Digit method, the sorting algorithm used for every digit except the least significant digit .
a. must be stable b. must be unstable c. can be either stable or unstable
(8) In the following four Binary Trees, is not a complete Binary Tree.
a b c d
(9) The maximum number of nodes on level i of a binary tree is .
a.2i-1 b. 2i c.2i d.2i-1
(10) If the Binary Tree T2 is transformed from th
您可能关注的文档
- 2009年社会作者社会工作法规与政策真题及答案.doc
- 2009年社工法规与政策真题.doc
- 2009年社工级法规真题及答案.doc
- 2009年福建泉州市泉港区中考语文试卷及答案.doc
- 2009年福建泉州市泉港区语文中考试题.doc
- 2009年高考史热点:世界贸易组织与经济全球化.doc
- 2009年高考学复习专题------化学计算的基本方法技巧.doc
- 2009年高考学复习专题------化学计算的基本方法技巧11111.doc
- 2009年高考文评分标准解析.doc
- 2009年高考理一轮复习五大专题例题精讲.doc
- 2024年公务员多省联考《申论》题(陕西B卷)(含答案).docx
- 2024年辽宁省法检书记员招聘考试(公基)(含答案).docx
- 2025年四川省考选调公务员录用考试《行测》试题(含答案).docx
- 2024年6月23日广东省广州市林业和园林局直属事业单位公开招聘考试笔试试题.docx
- 税务局党委副书记2024年度民主生活会带头严守政治纪律和政治规矩,维护党的团结统一等方面四个带头个人对照检视发言材料2篇.doc
- 后勤保障处党支部2024年度组织生活会带头严守政治纪律和政治规矩,维护党的团结统一等方面四个带头对照检视剖析材料.doc
- 医疗卫生系统2024年党支部支部班子组织生活会带头严守政治纪律和政治规矩,维护党的团结统一等方面四个带头对照检查材料.doc
- 2024-2025学年中职语文基础模块 下册语文版教学设计合集.docx
- 新人教版7年级上册英语全册教学课件(2024年新版教材).pptx
- 新人教版7年级上册英语全册课件(2024年新版教材).pptx
文档评论(0)