问题 单项选择题

将数据元素2,4,6,8,10,12,14,16,18,20依次存放于一个一维数组中,然后采用折半查找方法查找数组元素12,被比较过的数组元素的下标依次为()。

A.10,16,12

B.10,12,16

C.5,8,6

D.5,6,8

答案

参考答案:C

解析:

第一次与数组下标为5的元素比较,不匹配;第二次与下标为8的元素比较,不匹配;第三次与下标为6的元素比较,匹配,查找成功。

阅读理解

Great changes have been made in family life because of science and industry. In the past, when more Americans lived on farms, the typical family had many children. In a farm family, parents and their children often lived with grandparents. Often, too, uncles and aunts lived nearby. But when industry becomes more important than agriculture in American life, families become smaller because industry requires workers who are ready and able to move off the land and to move again whenever necessary. And large families cannot be moved from place to place as easily as smaller families can. So , at present people tend to have smaller families.

In the future, because of industrialization, a typical family will be required to move even more often than now, so families will be even smaller. The typical families may remain childless and are only made up of a man and a woman. A small number of families may take raising children as their chief work. At the same time they may also raise other people’s children, leaving those families free to move job to job.

61. The main topic discussed in the passage is _______.

A. the development of science and industry in America

B. the influence(影响) of science and industry on America families.

C. the harmful effect of industrialization

D. the social problems resulting from the highly developed science and industries in America

62. _____ are described in the passage.

A. Families of the past

B. Families of the present and of the future

C. Families of the past and of the future

D. Families of the past, the present and the future

63.According to the writer, one of the reasons that families are getting smaller in American is that _____.

A. children tend to leave their parents and grandparents when they grow up

B. people stop caring for having children

C. the need for workers who are able to move any time has been increasing

D. both old and young people like to live by themselves

64._____ will be in charge of raising children in the future.

A. most families   B. all families   C. social workers  D. a small number of families

65. From the passage, we can conclude that _____.

A. science and industry have caused thousands of families to separate

B. children do not like to live with their parents or grandparents

C. large families can hardly exist in modern society

D. Americans are very careful in choosing their jobs

单项选择题