下列程序的功能是创建了一个显示5个“Hello!”的线程并启动运行,请将程序补充完整

题型:填空题

问题:

下列程序的功能是创建了一个显示5个“Hello!”的线程并启动运行,请将程序补充完整。public class ThreadTest extends Thread{ public static void main(String args[]){ ThreadTest t=new【12】 ; t.start(); }public void run(){ int i=0; while(true){ System.out.println("Hello!"); if(i++==4) break;}}}

考点:计算机等级考试JAVA全国计算机等级考试二级JAVA真题2005年9月
题型:填空题

阅读下列短文,从每题所给的A、B、C、D四个选项中,选出最佳选项。

D

Failure is probably the most exhausting experience a person ever has. There is nothing more tiring than not succeeding.

We experience this tiredness in two ways: as start-up fatigue(疲惫) and performance fatigue. In the former case, we keep putting off a task because it has either too boring or too difficult. And the longer we delay it, the more tired we feel.

Such start-up fatigue is very real, even if not actually physical, not something in our muscles and bones. The solution is obvious though perhaps not easy to apply: always handle the most difficult job first.

Years ago, I was asked to write 102 essays on the great ideas of some famous authors. Applying my own rule, I determined to write them in alphabetical(按字母顺序), never letting myself leave out a tough idea. And I always started the day’s work with the difficult task of essay-writing. Experience proved that the rule works.

Performance fatigue is more difficult to handle. Though willing to get started, we cannot seem to do the job right. Its difficulties appear so great that, however hard we work, we fail again and again. In such a situation, I work as hard as I can-then let the unconscious take over.

When planning Encyclopaedia Britannica (《大英百科全书》), I had to create a table of contents based on the topics of its articles. Nothing like this had ever been done before, and day after dat I kept coming up with solutions, but none of them worked. My fatigue became almost unbearable.

One day, mentally exhausted, I wrote down all the reasons why this problem could not be solved. I tried to convince myself that the trouble was with the problem itself, not with me. Relived, I sat back in an easy chair and fell asleep.

An hour later, I woke up suddenly with the solution clearly in mind. In the weeks that followed, the solution which had come up in my unconscious mind provided correct at every step. Though I worked as hard as before, I felt no fatigue. Success was now as exciting as failure had been depressing.

Human beings, I believe must try to succeed. Success, then, means never feeling tired.

According to the author, the unconscious mind may help us().

A. ignore mental problems

B. get some nice sleep

C. gain complete relief

D. find the right solution

题型:填空题

项目可行性研究价格预测中应特别强调( )原则,避免因人为高估产出品价格或低估投入品价格而导致评价结果失真。

A.利益均衡
B.一致性
C.稳妥
D.重要性

题型:填空题

人民法院可以对民事诉讼证据进行收集 的情形有( )。

A.涉及个人隐私的材料

B.涉及损害第三人利益的事实

C.涉及依职责追加当事人

D.涉及可能有损国家利益的事实

E.涉及商业秘密的材料

题型:填空题

筛窦后群开口于()

A.蝶筛隐窝

B.上鼻道

C.中鼻道中部

D.中鼻道后部

E.下鼻道

题型:填空题

下列有关局部通风机的使用规定正确的有()。

A、严禁1台局部通风机同时为两个掘进工作面供风

B、采取2台局部通风机同时为一个工作面供风时,必须制定专项通风管理措施

C、每天应进行一次正常工作的局部通风机与备用通风机自动切换试验

D、使用2台局部通风机同时供风的,2台局部通风机都必须同时实现风电闭锁

更多题库