问题 单项选择题

下列程序的功能是在监控台上每隔一秒钟显示一个字符串"Hello!",能够填写在程序中下划线位置,使程序完整并能正确运行的语句是
publicclassTestimplementsRunnable
publicstaticvoidmain(Stringargs[])
Testt=newTest();
Threadtt=newThread(t);
tt.start();

publicvoidrun()
for(;;)
try
catchL______e)
System.out.println("Hello");



答案

参考答案:D

解析: 本题考查Java中的线程和异常处理。题目首先通过实现Runnable接口创建线程,TesttmTIewTest()语句定义了Test的1个实例,Threadtt=llewThread(t)定义了1个名为u的线程,tt.start()语句启动线程。通过try-catch语句来处理异常。 try代码包括一些简单语句或方法调用,遇到异常情况时,停止执行而跳转到相应处理异常的程序,然后由catch来控制。题目要求每间隔1s输出,间隔使用Thread.sleep(1000)语句来实现,调用IntemaptedException来完成。RuntimeException类包含有较多子类,比如算术异常ArithmeficExcepfon,当除法分母为0等时使用;索引越界异常IndexOutOfBoundsException等。

问答题 简答题
完形填空

                  D

You are one of the most familiar faces in class, not because you are funny or have great note-taking abilities but because you ask the most number of questions.   76    It is important to ask the right questions, though. Here are a few tips for improving your questioning skills:

Be clear and precise about what you want to know.

Be clear about what you want to know and frame your question accordingly.   77     If you beat around the bush, your teachers won’t be entirely sure what it is that you haven’t understood, or need an explanation for.

78    

If you are uncertain about a particular subject, clarify it when it is being discussed. Because questions often open up new avenues within a subject. Doing this would benefit the whole class.

Do not hesitate to talk to your teacher after class.

79     Therefore, if you feel uncomfortable about asking a question in front of your classmates, wait till the class is over. This will probably put you more at ease.

Write down your questions.

80     They may appear when you’re studying, reading or taking notes. Note them down on a piece of paper so that you won’t forget to ask them later. This can also make sure that you don’t have any unanswered questions when the exam approaches.

A.Do not ask more questions.

B.Questions may crop up(出现)at any time.

C.Being curious is not a bad quality.

D.You may think this is good.E. Ask questions relevant to context.

F. A question needs to be easy to be understood and to-the-point.

G. One-to-one interations(互动) are always much better than one-to-many.