问题 单项选择题

在Applet的init()方法被调用后,接下来最先被调用的方法是

A.run()

B.start()

C.stop()

D.destroy()

答案

参考答案:B

解析: Applet生命周期包括Applet的创建、运行与消亡几个状态。Applet类提供了在生命周期不同阶段响应主要事件的4种方法,这4种方法的调用次序如下图所示。

由上图可知,在调用完init()方法后,接下来最先被调用的是start()方法。因此,本题的正确答案是B。

单项选择题 B型题
阅读理解

An old man died and left his son a lot of money. But the son was a foolish young man, and he quickly spent all the money, so that soon he had nothing left. Of course, when that happened, all his friends left him. When he was quite poor and alone, he went to see Nasreddin, who was a kind, clever old man and often helped people when they had troubles.

My money has finished and my friends have gone, said the young man. What will happen to me now?

Don't worry , young man, answered Nasreddin. Everything will soon be all right again. Wait ,and you will soon feel much happier.

The young man was very glad .Am I going to get rich again then? he asked Nasreddin.

No, I didn't mean that, said the old man. I meant that you would soon get used to being poor and to having no friends.

小题1:An old man died and left his son_______.

A.nothing

B.some gold

C.much money

D.only a house小题2:When the son was________, he went to see Nasreddin.

A.short of money

B.quite poor and sick

C.in trouble

D.quite poor and alone小题3:The young man was very glad because Nasreddin said that________.

A.he would become rich again

B.he would soon feel much happier

C.he would become clever

D.he would have more friends小题4:Nasreddin meant the young man______.

A.would get rich again

B.would get used to having nothing

C.would get used to being in trouble

D.would get out of poorness小题5:What this story tells us is________.

A.that money is everything

B.that money makes the mare go

C.to save each penny

D.that misfortune tests the sincerity of friends