问题 单项选择题

折半(二分)查找方法对查找表的要求是()。

A.链表存储结构,元素有序排列 

B.链表存储结构,元素无序排列 

C.顺序存储结构,元素有序排列 

D.顺序存储结构,元素无序排列

答案

参考答案:C

解析:

本题考查数据结构基础知识。二分查找的基本思想是:首先将给定值与表中间位置上元素的关键字进行比较,若相等,则查找成功;若给定值大于表中间位置上元素的关键字,则下一次到查找表的后半子表进行二分查找,否则下一步到表的前半子表进行二分查找。这样就可逐步缩小范围,直到查找成功或子表为空时失败为止。显然,查找表的元素若是无序排列的方式,则上述查找过程是没有意义的。另外,由于需要能直接定位表中间位置的元素,即实现随机访问,因此只有顺序存储结构能满足此要求,在链表上只能进行顺序查找。

阅读理解
阅读理解。
     Su Hua is studying at Cambridge, UK. She has bought a bicycle and is worried about security ( 安全). Her friend, Kate, found this article and sent it to her.
     Introduction
    
A lot of crime is against bicycles. About 150,000 bicycles are stolen every year and most are never
found. You can prevent this happening by following a few careful steps.
     Basic Security
    
Do not leave your bicycle in out-of-the-way places. Always lock your bicycle when you leave. Secure
it to lampposts or trees. Take off smaller parts and take them with you, for example lights and saddles (车座).
     Locks
     Get a good lock. There are many different types in the shops. Buy one that has been tested against
attack. Ask for a recommendation from a bike shop.
     Marking
    
Security marking your bike can act as a deterrent to a thief. It can also help the police find your bicycle. It should be clearly written and include your postcode and your house or flat number. This will provide a
simple way to identify your bicycle.
     Registration
    
There are a number of companies who will security mark your bicycle for you. They will then put your
registration number and personal details on their computer database. Then if your bicycle is found it will be easy to contact you.
     Finally
    
Keep a record of the bicycle yourself: its make, model and registration number. You can even take
a photograph of it. This will prove the bicycle belongs to you.
1. Which part of the text gives you information on how to lock up your bicycle when you leave it?             
A. Locks.
B. Marking.
C. Registration.
D. Basic Security.
2. The underlined phrase “act as a deterrent to a thief” means ______.
A. help you recognize your bike
B. help the police find your bicycle
C. stop someone stealing your bicycle
D. stop you worrying about your bike
3. The article advises you to keep a record of your bicycle _______.
A. in the bike shop and your computer
B. in the police station and a security company
C. in a security company and your university
D. by yourself and in a security company
4. The main purpose of this article is _________.
A. to tell you what to do if your bicycle is stolen
B. to suggest ways of keeping your bicycle safe
C. to give you advice on where to buy a good lock
D. to say why you shouldn’t keep your bicycle in a quiet place
阅读理解与欣赏

阅读下面的文言文,完成下面问题。

  平当字子思,祖父以訾百万,自下邑徙平陵。当少为大行治礼丞,察廉为顺阳长,枸邑令,以明经为博士,公卿荐当论议通明,给事中。每有灾异,当辄傅经术,言得失。文雅虽不能及萧望之、匡衡,然指意略同。

  自元帝时,韦玄成为丞相,奏罢太上皇寝庙园,当上书言:“《孝经》曰‘天地之性人为贵,人之行莫大于孝,孝莫大于严父,严父莫大于配天,则周公其人也。’高皇帝圣德受命,有天下,尊太上皇,后嗣所宜尊奉以广盛德,孝之至也。《书》云:‘正稽古建功立事,可以永年,传于亡穷。’”上纳其言,下诏复太上皇寝庙园。

  顷之,使行流民幽州。举奏刺史二千石劳徕有意者,言勃海盐池可且勿禁,以救民急。所过见称,奉使者十一人为最,迁丞相司直。坐法,左迁朔方刺史,复征入为太中大夫给事中,累迁长信少府、大鸿胪、光禄勋。

  先是太后姊子卫尉淳于长白言昌陵不可成,下有司议。当以为作治连年,可遂就。上既罢昌陵,以长首建忠策,复下公卿议封长。当又以为长虽有善言,不应封爵之科。坐前议不正,左迁钜鹿太守。后上遂封长。

  哀帝即位,征当为光禄大夫诸吏散骑,复为光禄勋,御史大夫,至丞相。以冬月,赐爵关内侯。明年春,上使使者召,欲封当,当病笃,不应召。室家或谓当:“不可强起受侯印为子孙邪?”当曰:“吾居大位,已负素餐之责矣,起受侯印,还卧而死,死有余罪。今不起者,所以为子孙也。”遂上书乞骸骨。上报曰:“朕选于众,以君为相,视事日寡,辅政未久,阴阳不调,冬无大雪,旱气为灾,朕之不德,何必君罪?君何疑而上书乞骸骨,归关内侯爵邑?使尚书令谭赐君养牛一,上尊酒十石。君其勉致医药以自持。”后月余,卒。(节选自《汉书·卷七十一》,有删改)

1.对下列句子中加粗词的解释,不正确的一项是(     )

A.正古建功立事,可以永年——稽:计较

B.顷之,使流民幽州——行:巡视

C.上既罢昌陵,以长首忠策——建:献

D.遂上书乞骸骨。上曰——报:答复

2.下列句子中,全部表明平当深受皇上重用的一组是(     )

①后嗣所宜尊奉以广盛德②上纳其言,下诏复太上皇寝庙园③以冬月,赐爵关内侯

④复下公卿议封长⑤还卧而死,死有余罪⑥君其勉致医药以自持

A.①③⑤

B.①②④

C.④⑤⑥

D.②③⑥

3.下列对原文有关内容的分析和概括,不正确的一项是(     )

A.平当年轻时就开始做官并经常得到提拔,因通晓经书而被任命为博士,他论议事务通透明畅,每当发生灾情异象,总是引经据典并分析得失。

B.丞相韦玄成上奏朝廷停止修建太上皇寝庙园,平当上书反对,并引经据典阐述理由,皇上最终听取了他的奏议,下诏继续修建太上皇寝庙园。

C.太后的姐姐的儿子卫尉淳于长说昌陵不可建成,皇上就下诏官员奏议,平当虽然赞同淳于长的观点,但反对策封淳于长,因此被贬官。

D.平当家中有人认为平当应该接受侯印,平当向家人说明拒绝受封的理由并上书辞官,皇上安慰他并赐给他牛和美酒,要他好好养病。

4.把文中画横线的句子翻译成现代汉语。

(1)言勃海盐池可且勿禁,以救民急。所过见称。

译文:__________________________________________________

(2)明年春,上使使者召,欲封当,当病笃,不应召。

译文:__________________________________________________