问题 单项选择题

在创建Thread对象之后,调用线程的( )方法开始执行线程。

A.start()

B.interrupt()

C.run()

D.stop()

答案

参考答案:A

解析: 本题考查线程机制。选项A正确,为了运行线程,将调用它的start()方法,调用线程的start()方法将导致调用另外一个方法——线程对象中所必须具有的run()方法。 fun()方法是线程类的核心。通过添加 implements Runnable,创建和小程序相关的 Thread对象,并使用小程序的start()、stop()和run()方法,小程序将成为使用线程的程序。另外,千万要注意小程序和线程都有 start()方法,当创建使用线程的小程序时,这点会让人迷惑,但这两个方法是不同的,而且彼此之间没有任何联系。选项B错误,interrupt()方法中断一个正在运行的程序;选项C错误,run()是一个抽象方法,它是通过调用start()方法触发它运行:选项D错误,stop()方法终止一个线程的运行。由此可知本题的答案是A。

完形填空
Long long ago, in a small, lonely village, there was a place known as the House of 1000 Mirrors. A small, happy little dog heard of this place and decided to pay a _________.  He ran all of his way with a happy heart. When he _________, he jumped happily up the stairs to the doorway of the house. There was a hole in the door. He looked __________ the hole with his ears lifted high and his tail(尾巴) shaking as fast as it ___________. To his great surprise, he found himself looking at 1000 other happy little dogs with their tails shaking just as fast as his. He smiled a great smile, and was answered with 1000 great smiles just as warm and friendly as__________. As he left the House, he said to himself, "This is a ____________place. I will come back and visit it often."
In this same village, ___________ little dog, who was sad and in blue all the day, decided to visit the house, __________. He slowly climbed the stairs and hung his head low as he looked into the hole in the door. To his great ___________, he saw the 1000 unfriendly looking dogs looking at him, so he growled at them right away. Then he was terrified to see 1000 little dogs growling back at him. As he left, he thought to himself, "That is a terrible place, and I will never come _______ and visit it."
All the faces in the world are mirrors. What kind of reflections do you see in the faces of the people you meet?
小题1:
A.travel B.tripC.visit D.ride
小题2:
A.arrivedB.gotC.reached D.got to
小题3:
A.across B.atC.throughD.past
小题4:
A.couldB.canC.possible D.would
小题5:
A.himB.hisC.itD.he
小题6:
A.terrible B.badC.wonderful D.strange
小题7:
A.the otherB.otherC.othersD.another
小题8:
A.eitherB.tooC.alsoD.neither
小题9:
A.surprisedB.surprisingC.surpriseD.surprises
小题10:
A.inB.intoC.backD.by
判断题