华师大数据结构期中考试试卷(含答案)..docVIP

华师大数据结构期中考试试卷(含答案)..doc

  1. 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
  4. 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
  5. 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们
  6. 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
  7. 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
华师大数据结构期中考试试卷(含答案).

华东师范大学期中试卷 2007—2008学年第二学期 课程名称:______数据结构_____ 姓 名:___________________ 学 号:__________________ 专 业:___________________ 年级/班级:__________________ 课程性质:专业必修 一 二 三 四 五 六 七 八 总分 阅卷人签名 单项选择题(共18分,每题3分) 1. Stack has the property called last in and first out, then which of the following describes the property of Queue? a) Last in and first out b) First in and last out c) First in and first out 2. A list of items from which only the item most recently added can be removed is known as a ( ) a) stack b) queue c) circular linked list d) list 3. If the following function is called with a value of 2 for n, what is the resulting output? void Quiz( int n ) { if (n 0) { cout 0; Quiz(n - 1); cout 1; Quiz(n - 1); } } a) b) c) d) e) 001101 4. A heap is a list in which each entry contains a key, and, for all positions i in the list, the key at position i is at lease as large as the keys in positions 2i+2 and ( ), provided these positions exist in the list. a) 2i b) 2i-1 c) 2i-2 d) 2i+1 5. Given the recursive function int Func( /* in */ int i, /* in */ int j ) { if (i 11) if (j 11) return i + j; else return j + Func(i, j - 2); else return i + Func(i - 1, j); } what is the value of the expression Func(12, 15) ? a) 81 b) 62 c) 19 d) 72 e) none of the above 6. Shell sort finally perform an ordinary ( )? a) Heap sort b) Insertion sort c) Selection sort d) Quick sort 填空题(共22分,每空2分) 1. If the following function is called with a value of 75 for n, the resulting output is _______【1】_________. void Func( /* in */ int n ) { if (n 0) { Func(n / 8); co

文档评论(0)

klfgk7s7fas + 关注
实名认证
文档贡献者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档