问题 填空题

Java语言提供了 【12】 工具来管理组件在容器中的布局,而不使用直接设置组件位置和大小的方式。

答案

参考答案:布局管理器

解析: Java语言中,提供了布局管理器这个工具来管理组件在容器中的布局,而不使用直接设置组件位置和大小的方式。在程序中安排组件的位置和大小时,应该注意以下两点。
① 容器中的布局管理器负责各个组件大小和位置的设置,因此用户无法在这种情况下设置组件的这些属性。如果试图使用Java语言提供的setLocation()、setSize()、setBounds()等方法,则都会被布局管理器覆盖。
② 如果用户确实需要亲自设置组件大小或位置,则应取消该容器的布局管理器,方法为: setLayout(null)。

阅读理解

“Sesame Street” has been called “the longest street in the world.” That is because the television program by that name can now be seen in so many parts of the world. That program became one of American’s exports soon after it went on the air in New York in 1969. 

In the United States more than six million children watch the program regularly. The viewers include more than half the nation’s pre-school children, from every kind of economic, racial(种族的), and geographical group. 

Although some educators object to certain elements in the program, parents praise it highly. Many teachers also consider it a great help, though some teachers find that problems arise when first graders who have learned from “Sesame Street” are in the same class with children who have not watched the program. 

Tests have shown that children from all racial, geographical, and economic backgrounds have benefited from watching it. Those who watch it five times a week learn more than occasional(偶尔的)viewer. In the US the program is shown at different hours during the week in order to increase the number of children who can watch it regularly. 

The programs all use songs stories, jokes and pictures to give children a basic understanding of numbers, letters and human relationships. But there are some differences. For example, the Spanish program, produced in Mexico City, devotes more time to teaching whole words than to teaching separate letters. 

Why has “Sesame Street” been so much more successful than other children’s shows? Many reasons have been suggested. People mention the educational theories of its creators, the support by the government and private businesses, and the skillful use of a variety of TV tricks. Perhaps an equally important reason is that mothers watch it along with their children. This is partly because famous adult stars often appear on it. But the best reason for the success of the program may be that it makes every child watching feel able to learn. The child finds himself learning, and he wants to learn more. 

小题1: “Sesame Street” is actually______. 

A.a street in the US

B.a program for children

C.a program of teachers

D.a program for students小题2:Children who often watch the program______. 

A.can have problems in school

B.will find it a great help

C.will take no interest in their studies

D.will be well educated小题3:What is special about the program?

A.It offers great fun. 

B.It makes children feel able to learn. 

C.It is shown at different hours during the week. 

D.Children learn and enjoy themselves while watching. 小题4:Why is “Sesame Street” so popular in the world?

A.Because it is supported by the government and businesses. 

B.Because it uses a variety of skillful tricks. 

C.Because mothers watch it along with their children. 

D.Because it makes every child watching it feel able to learn. 小题5:The best title for this passage can be______. 

A.TV Programs

B.Educating Children

C.Sesame Street

D.A Greet Success

单项选择题