问题 单项选择题

已知一个有序线性表为(13,18,24,35,47,50,62,83,90,115,134),当用二分法查找值为90的元素时,查找成功的比较次数为( )。

A) 1
B) 2
C) 3
D) 9

答案

参考答案:B

解析: 根据二分法查找需要两次:①首先将90与表中间的元素50进行比较,由于90大于50,所以在线性表的后半部分查找;②第二次比较的元素是后半部分的中间元素,即90,这时两者相等,即查找成功。

完形填空

短文填空  先通读下面的短文,然后根据短文内容和所给首字母,在空格内填入一个适当的单词,使短文意思完整。所填单词必须在答题卡标有题号的横线上完整写出。(本大题共10空,每空0.5分,共5分)

Last month in New Zealand, three dogs learned how to drives cars. T 小题1:   it sounds like April Foolery, it’s real. These dogs are driving cars. They are just sitting in the cars looking   l 小题2:  they are driving ; they are, in f 小题3: , operating the moving vehicles--- first training cars and then Minis. Their f 小题4:  are working the gas and brake(刹车), their paws are handling the steering wheel(方向盘) and their eyes are scanning the road for bunnies(可爱的女郎).

First, researchers put the dogs through driving school in s 小题5:  built wooden training cars for eight weeks; then they tested the dogs in modified(改装) Minis.

“We train the dogs to do v 小题6:  actions,” said Mark Vette, the animal trainer who was teaching the dogs. Touch is the first thing and then we teach them to touch the different objects w 小题7: right paw and left paw. “They’ve all come through at this point and they’re all going really w 小题8: ,” he said.

“The dogs have a 小题9:  amazing things in eight short weeks of training,” Mark said. “Which really s 小题10: that, with the right environment, how much potential(潜力) all dogs have as family pets”

单项选择题