题目内容

下面是一个Applet程序,其功能是将完整的图像显示于Applet的区块中,然后可以通过拖动鼠标让图像随着鼠标拖动的轨迹而移动。请改正程序中的错误(有下划线的语句),使程序能输出正确的结果。 注意:不改动程序的结构,不得增行或删行。 源程序文件代码清单如下: import java.applet.*; import java.awt.*; /* <applet code="ex7_3.class" width=800 height=400> </applet> */ public class ex7_3 extends Applet private Image iImg; private int xPos,yPos; public void init( xPos=yPos=0; iImg=getImage("ex7_3.jpg"); public void paint(Graphics g) g.drawImage(iImg,xPos,yPos); public boolean mouseDrag(Event e,int x,int y) xPos=x; yPos=y; paint(); return true; ex7_3.html <HTML> <HEAD> <TITLE>ex7_3</TITLE> </HEAD> <BODY> <applet code="ex7_3.class" width=800 height=400> </applet> </BODY> </HTML>

查看答案
更多问题

多媒体数据一般都很庞大,为了减小多媒体数据所占存储空间,我们经常采用所谓的 ( )。

A. 存储缓冲技术
B. 压缩/解压技术
C. 微指令技术
D.超级流水指令流技术

SQL支持集合的并运算,运算符是______。

Part A You will hear 10 short dialogues. For each dialogue, there is one question and four possible answers. Choose the correct answer — A, B, C or D, and mark it in your test booklet. You will have 15 seconds to answer the question and you will hear each dialogue ONLY ONCE. Now look at Question 1. What is the probable relationship between these two people

A. Doctor and patient.
B. Passenger and bus driver.
C. Daughter and mother.
D. Customer and merchant.

How much will the man pay

A. $20.
B. $8.5.
C. $10.
D. $17.

答案查题题库