问题 单项选择题

Panel和Applet的默认布局管理器是( )。

A.CardLayout

B.FlowLayout

C.BorderLayout

D.GridLayout

答案

参考答案:B

解析: 本题考查布局管理器的概念。这是重点题目,历次考试都有题目涉及该知识点,务必重视。CardLayout把容器分成许多层,每层只能放置一个构件。FlowLayout是Pane和 Applet默认的布局管理器,构件在容器中从上到下、从左到右进行放置,所以选项B正确。 BorderLayout是Window、Frame和Dialog的默认布局管理器,在BorderLayout布局管理器中构件分成5个区域,每个区域只能放置一个构件。GridLayout使容器中各个构件呈网状布局,平均占据容器的空间。

阅读理解

阅读理解。

    I'm sure you know the song "Happy Birthday". But do you know who wrote the song and

for whom it was written?

    The retired professor, Archibald A. Hill in Lousciville, USA could tell us the story. Ninety-

seven years ago, two of Mr. Archibald Hill's aunts, Miss Patty Hill and Miss Mildred Hill were

asked to write some songs for a book called "Song Storied for the SundayMorning". Miss Patty

Hill and Miss Mildred Hill were both kindergarten teachers then. They loved children very much

and wrote many beautiful songs for the book. One of them was the famous "Good Morning to

You." The song said, "Good morning to you, good morning to you, dear children, good morning

to all." This song was very popular at that time among kindergarten children. But not many grown-

ups knew it. A few years later little Archibald was born. As his aunt, Miss Patty Hill sang the song

"Happy Birthday" to the melody (曲调)of "Good Morning to you" to her little nephew (侄子). She

sang the song like this: Happy birthday to you! Happy birthday to you! Happy birthday, dear Archie!

Happy birthday to you!

    Miss Patty Hill and her sister had never expected that this song would become so popular, but it

really did. People all over the world like the song because of its simplicity in tune (曲调简单) and

friendliness in words.

1. Archibald A. Hill was _____. [ ]

A. English

B. American

C. Russian

D. Australian

2. Professor Archibald A. Hill was Miss Mildred Hill's _____. [ ]

A. son

B. student

C. brother

D. nephew

3. The song "Happy Birthday" has a history of _____ years. [ ]

A. 97

B. more than 90

C. less than 90

D. about 90

4. The sentence "it really did" means _____. [ ]

A. The song really became popular

B. Their wish would really come true

C. People all over the world like to listen to the song

D. Yes, but the song didn't become popular

单项选择题