问题 单项选择题

下面程序段的输出结果是
classTest
public static void main(Stringargs[])
MyThread t=new MyThread();
t.displayOutput(”t has been createD) ”);
t.start();


Class MyThread extends Thread
public void displayOutput(Strings)
System.out.println(S);

public void run()
displayOutput(”t is running.”);

A.thas been created.
t is running.

B.thas been created

C.t is running.

D.编译出错

答案

参考答案:A

解析:本题考查线程的创建和调用。创建一个新的线程对象后,通过使用start()方法就可以启动该线程,线程也就处于可运行状态Runnable。Start()方法产生了线程运行需要的系统资源,并调用线程体,也就是run()方法,使得线程可以进入运行状态。程序运行时首先创建一个新的线程对象t,并调用displayOutput(Strings)方法输出thas been created。t.start()方法调用run()方法,输出t is running,所以正确答案为选项A。

阅读理解

阅读理解。

     Strange, but the green sea turtle (小海龟) is not that green. It's certainly not as green as a tree. In fact,

its shell (壳) is nearly black or brown. The largest hard-shelled sea turtle is between 200 and 300 pounds

heavy and a shell is between 36 and 43 inches (英寸) long. But its head is smaller than other turtles.

      Little baby green sea turtles are only two inches long. As the turtle grows up, its shell keeps mostly

black while the body turns orange or brown. Young turtles like living in the sea, especially in areas with lots

of sea grasses.

      Green sea turtle, like all sea turtles, are very different from land or river turtles. All sea turtles can swim

through the water faster. Instead of feet for walking, sea turtles have flippers (鳍状肢) which are better for

swimming. The flippers aren't much good on land, however, and walking is hard for a sea turtle because

they are usually big and heavy.

      Another interesting thing about a sea turtle's flippers is that they cannot be pulled into their shells. Land

turtles can pull their feet into their shells for protection, but a sea turtle can't.

1. Are green sea turtles green?

____________________________________________________________

2. 请把画线部分翻译成中文。

____________________________________________________________

3. Why is walking hard for green turtles?

____________________________________________________________

4. 写出"Green sea turtles are very different from land or river turtles." 的同义句。

____________________________________________________________

5. What is the interesting difference between sea turtles and land turtles?

____________________________________________________________

单项选择题