问题 单项选择题

在下列Java语言的包中,提供图形界面构件的包是

A.javio

B.javaswing

C.javnet

D.javrmi

答案

参考答案:B

解析: 选项A中的java.io包提供与设备无关的输入、输出流支持。 选项B中的iava.swing包提供构建和管理应用程序的图形界面的轻量级的构件。 选项C中的iava.net包提供支持联网的类,包含执行与网络相关的操作的类和处理接口及统一资源定位器(URLs)的类。 选项D中的java.rmi包提供程序远程方法调用所需的类。 因此,本题的正确答案是选项B。

解答题
阅读理解

A woman came out of her house and saw three old men sitting in her front yard. She said, "I don’t think I know you, but you must be hungry. Please come in and have something to eat." 

"Is the man of the house home?” they asked. "No", she replied, "He’s out." "Then we cannot come in", they replied.

In the evening when her husband came home, she told him what had happened. "Go to tell them I am home and invite them in!" The woman went out and invited the men in. "We do not go into a house together," they replied. "Why is that?" she asked. 

One of the old men explained that their names were Wealth(财富), Success and Love. Then he added, "Now go in and discuss with your husband which one of us you want in your home." 

The woman went in and told her husband what was said. Her husband was overjoyed and he suggested inviting Wealth to fill their home with wealth. And his wife wanted to invite Success; but their daughter-in-law suggested they should invite Love so that their home would be filled with love. At last the husband said to his wife. "Go out and invite Love to be our guest."

The woman went out and asked the three old men, "Which one of you is Love? Please come in and be our guest." 

Love got up and started walking toward the house. 

The other two also got up and followed him. Surprised, the lady asked Wealth and Success: "I only invited Love, Why are you coming in?" 

The old men replied together: "If you had invited Wealth or Success, the other two of us would have stayed out, but since you invited Love, wherever He goes, we go with him. Wherever there is Love, there is also Wealth and Success!" 

小题1:The best title for this passage would be __________.

A.A Woman and Three Men

B.Wealth, Success and Love

C.A Strange Thing Happened to a Woman

D.A Husband and his Wife小题2:The woman asked the three men to come in and have something to eat because _________.

A.she was a warm-hearted woman

B.they were her neighbors

C.they asked her to do

D.they were her friends小题3:Who does the underlined word “the man” in the second paragraph refer to?

A.The woman’s son.

B.The woman’s father.

C.The woman’s son-in-law(女婿)

D.The woman’s husband.小题4:It can be inferred(推断)from the passage that __________.

A.The three old men are brothers and they can’t be separated.

B.The husband will refuse them in.

C.The wife will be scolded by the husband.

D.If a person has love, he will own everything.