对具有n个元素的有序序列进行二分查找时,()A.查找元素所需的比较次数与元素的位置无

题型:单项选择题

问题:

对具有n个元素的有序序列进行二分查找时,()

A.查找元素所需的比较次数与元素的位置无关

B.查找序列中任何一个元素所需要的比较次数不超过log2(n+1)

C.元素位置越靠近序列后端,查找该元素所需的比较次数越少

D.元素位置越靠近序列前端,查找该元素所需的比较次数越少

考点:计算机软件水平考试初级程序员程序员
题型:单项选择题

阅读理解。

      Manuel came home crying. The children had called him "Fatso" again, and he hated it. He sat down,

and looked very sad. "Don't worry, I'm fat too," said his mother. "But it's me they call Fatso," Manuel

cried. His mother felt very sorry for him. "All right then," she said. "We're both too fat. Let's go on a diet

together." 

      It would not be easy. They both loved bread, cakes, potatoes and chips. To diet, they had to eat salads.

The first day was fun, but by night-time, they felt very hungry. "We won't think about food. Let's think

about airplanes," said his mother. "But I keep seeing chocolate in my mind," Manuel answered. The second

day was hard, for they both thinking about cream cakes. The third was worse. By now they both wanted

to give up. "No, no, we must be strong," said Manuel's mother. 

      Somehow, they kept on dieting for three weeks, and lost a lot of fat. They liked their new hobbies so

much they kept going until they were really slim. After a few months, Manuel enjoyed eating fruit, or nuts

instead of sweets. Nobody called him Fatso any more. Some were calling him Spider Legs-and he loved it.

1. It's clear that the word "diet" in the reading is about           . [ ]

A. one's bad name

B. food for each day

C. flying in the sky

D. cooking at home

2. Manuel and his mother kept thinking about cream cakes because            . [ ]

A. the cakes could help them lose weight

B. they had no other food to eat

C. they liked eating them a lot before

D. the cakes could make them think about airplanes

3. We know from the reading            . [ ]

A. there was no fun at all in losing weight for Manuel

B. Manuel's mother didn't eat cream cakes at all

C. "potatoes and chips" can make people thin

D. Manuel and his mother eat salads to lose weight

4. Manuel's mother felt sorry because             . [ ]

A. her son was too fat

B. Manuel was very sad

C. the other children were not fat

D. Manuel couldn't eat cream cakes any more

5. Manuel loved others calling him Spider Legs because             . [ ]

A. Spider Legs sounds good for him

B. the other children are all Spider Legs

C. he didn't eat cream cakes any more

D. he could eat lots of sweets now

题型:单项选择题

小军对男女同学的交往过于敏感、拘谨,甚至害怕与异性同学进行正常的交往。小明为了帮助他,提出男女同学交往的建议,其中值得肯定的是 ①既要开放自己,又要掌握分寸 ②既要羞怯忸怩,又要处处设防  ③既要互相尊重,又要自重自爱 ④既要主动热情,又要注意方式、场合、时间和频率

A.①②③

B.①②④

C.①③④

D.②③④

题型:单项选择题

经济资本对应于损失资本。 ( )

题型:单项选择题

清政府的中央警察机关是( )。

A.“巡警部”

B.“警务学堂”

C.“巡警局”

D.“巡警学校”

题型:单项选择题

指间关节脱位的病理变化不包括()。

A.关节囊破裂

B.侧副韧带断裂

C.关节结构丧失

D.指骨基底撕脱骨折

E.血管神经损伤

更多题库