问题 填空题

有如下代码片段,请填写完整相应的代码。 public class JavaProg extends java.applet.Applet { public void init() { // 将 Applet 初始化 } public void start() { 【15】 ; } public void stop() {// 停止 Applet } public void destory() {// 销毁 Applet } }

答案

参考答案:start()

解析: 以下对这4个方法做一简单说明。 ①方法init():当用浏览器去看Java Applet的文件时,第1次读取Applet时,浏览器就会调用init()方法,因此通常都利用这个方法来为 Java Applet做初始化设定。 ②方法start():这个方法就是用来启动Java Applet的,浏览器在调用完init()后,就会再调用start(),并且启动执行这个方法。 ③方法stop():如果我们离开了Java Applet的文件,则浏览器就会调用方法stop(),停止 Java Applet(注意并不是把Java Applet销毁)。 ④方法destory():这一个方法是当使用者关闭了浏览器的时候,浏览器会调用方法destory()以来销毁Java Applet。

问答题 简答题
单项选择题

The idea that some groups of people may be more intelligent than others is one of those hypotheses that dare not speak its name. But Gregory Cochran is (1) to say it anyway. He is that (2) bird, a scientist who works independently (3) any institution. He helped popularize the idea that some diseases not (4) thought to have a bacterial cause were actually infections, which aroused much controversy when it was first suggested.

(5) he, however, might tremble at the (6) of what he is about to do. Together with another two scientists, he is publishing a paper which not only (7) that one group of humanity is more intelligent than the others, but explains the process that has brought this about. The group in (8) are a particular people originated from central Europe. The process is natural selection.

This group generally do well in IQ test, (9) 12-15 points above the (10) value of 100, and have contributed (11) to the intellectual and cultural life of the West, as the (12) of their elites, including several world-renowned scientists, (13) . They also suffer more often than most people from a number of nasty genetic diseases, such as breast cancer. These facts, (14) , have previously been thought unrelated. The former has been (15) to social effects, such as a p tradition of (16) education. The latter was seen as a (an) (17) of genetic isolation. Dr. Cochran suggests that the intelligence and diseases are intimately (18) . His argument is that the unusual history of these people has (19) them to unique evolutionary pressures that have resulted in this (20) state of affairs.

20()

A.paradoxical

B.incompatible

C.inevitable

D.continuous