问题 单项选择题

下列关于Applet的叙述中,错误的是【 】

A.Applet是Java类,所以可以由JDK中的解释器java.exe直接解释运行

B.Applet应该定义为java.applet.Applet类或javax.swing.JApplet类的子类

C.Applet与Application的主要区别在执行方式上

D.通过在HTML文件中采用<PARAM>标记可以向Applet传递参数

答案

参考答案:A

解析:本题考查Java Applet的概念。Applet是Java与Web相结合而引入的重要的 Java应用形式。Applet是Java类,但自身不能运行,必须嵌入在其他应用程序中运行,因此不能直接由java.exe解释运行,选项A说法错误。Applet与Application的主要区别在执行方式上,Application以main()方法为入口点运行,Applet要在浏览器或appletviewer中运行,运行过程比Application更复杂。

阅读理解

阅读短文,选出最佳选项回答问题。

  Expo 2010 is held in Shanghai from May 1 to October 31. People all over

the world are looking forward to it. Here are several golden rules on how to best

plan your trip.

  Rule l : Do your homework

  Read everything you can before going. Really study the maps. Know the

pavilions. Arrive at the entrance nearest to the things you want to see. Have a

plan. It will make a big difference.

  Rule 2:Allow plenty of time

  Expo 2010 is the largest attraction event in the history of the world. It will

take many days to see it. Plan to spend from five to eight days or more seeing it.

  Rule 3 : Pace yourself

  Expo is enormous. The distances are punishing. It is better to spend a day

seeing a single area than to run back and forth all over the site. Remember to

wear the most comfortable shoes. Never mind what they look like.

  Rule 4:Get going in May

  At many Expos the crowds are smaller in May and in early June than at any

other time. And beware the last two weeks. During every Expo, people delay

their visits and then in early October they suddenly realize, "Expo will close

soon! I haven't seen it!" As a result, the last several weeks usually have the most

crowded of the entire Expo.

  Rule 5: Find out what everyone else is doing  and do the opposite.

  If you don't like large crowds and long lines do the opposite. Here is an

example: Most people go on Saturdays or on holidays. So avoid Saturdays and

holidays. Go on weekdays when most people are at work.

  Rule 6 : Turn up

  Expo 2010 is the largest celebration in China's history an amazing

once-in-a-lifetime event. When it is gone and it will never be seen again. So

whatever you do, don't miss it !

1. Expo 2010 will last _____.            

A. five to eight days      

B. several weeks            

C. six months            

D. a year

2. According to Rule 4, you'd better not go to Expo on _____.

A. May 3                  

B. July 5              

C. September 16            

D. October 20

3. When there are lots of people waiting in line to see the most popular attractions, what's your

best choice?  

A. I'll wait in line as other people do.              

B. I'll go back and return tomorrow.              

C. I'11 visit the less crowded places instead.              

D. I'11 sit on a bench to have a rest for about two or three hours.

4. In Rule 6 "turn up" here means _____.    

A. doesn't miss it          

B. come and see              

C. make the sound louder  

D. never be seen again

问答题 简答题