注意:下面出现的“考生文件夹”均为%USER% 在考生文件夹下存有文件名为Java

题型:问答题

问题:

注意:下面出现的“考生文件夹”均为%USER%
在考生文件夹下存有文件名为Java_2.java文件,本题功能是完成点定义,并输出点坐标。请完善Java_2.java文件.并进行调试,使程序结果如下:
x=5 y=5
点的坐标是(5, 5)
x=8 y=9
点的坐标是(8, 9)
由于Java_2. java文件不完整,请在注释行“//********Found*********”下一行语句的下画线地方填入正确内容,然后删除下画线,请勿删除注释行或其他已有语句内容。存盘时,文件必须存放在考生文件夹下,不得改变原有文件的文件名。
给定源程序:
public class Java_2
public int x, y;
public Java_2()

public Java_2(int x, int y)
this.x=x; this.y=y;

//*********Found**********
public Java_2(______p)
x=p.x; y=p.y;

public Java_2 getLocation()
Java_2 P=new Java 2(x, y);
return p;

public int getX()
return x:

public int getY()(
return y;

public void move(int x, int y)(
this.x=x;
this. y=y;

public void setLocation(Java_2 p)
x=p.z;
y=p.y;

public String toString()
return(’(’+Integer.toString(x)+’,’+Integer.toString(y)+’)’);

public void translate(int x, int y)
this.x+=x;
this.y+=y;

public static void main(String args[])
//*********Found**********
Java_2p=new______(5, 5);
System.out println("x="+p.x+"y"="+p.y);
//*********Found**********
System.out.println("点的坐标是"+______());
p. translate(3, 4);
System. out. println("x="+p.x+"y="+p.y);
//*********Found**********
System out println("点的坐标是"+______());

考点:计算机等级考试JAVA全国计算机等级考试二级JAVA机试真题2010年9月
题型:问答题
The passengers(乘客) on the bus watched with sympathy(同情) as Susan got on the bus carefully. She paid the driver and then, using her hands to        he seats, seated in one of them.It had been a year since Susan became blind. She was suddenly thrown into a world of     
because of an accident. Susan's husband decided to try his best to help his wife.
Finally, Susan felt ready to     to her job, but how would she get there? She used to take the bus, but she was now too      to get around the city by herself. Mark volunteered to ride the bus with Susan each morning and evening     she could manage(对付) it by herself.
For two weeks, Mark accompanied(陪伴)Susan to and from work each day. He taught her how to rely on(依靠) her other      , especially her hearing, to make sure where she was. At last, Susan decided that she was ready to try the trip     . Monday morning arrived. She said good-bye to his husband, and for the first time, they went their separate(单独的)ways. Each day went perfectly, and a wild excitement took hold of Susan. She was doing it!
On Friday morning, Susan took the bus to work       . As she was getting off the bus, the driver Said, “Miss, I sure envy you.” Curious, Susan asked the driver      .
‘You know, every morning for the       week, a fine-looking gentleman in uniform has been standing across the corner watching you until you enter your office building safely,’ the bus driver said.
Tears of happiness poured down Susan' s cheeks.
小题1:
A.touchB.catchC.takeD.feel
小题2:
A.weaknessB.sicknessC.darknessD.sadness
小题3:
A.returnB.usedC.replyD.go
小题4:
A.tiredB.surprisedC.excitedD.frightened
小题5:
A.whenB.asC.untilD.after
小题6:
A.feelingsB.placesC.skillsD.senses
小题7:
A.on her ownB.with himC.of herD.on foot
小题8:
A.as usualB.the same asC.as wellD.as we know
小题9:
A.whatB.howC.whyD.who
小题10:
A.firstB.pastC.sameD.next
题型:问答题

硬化混凝土抗渗性的主要影响因素是()。

A.混凝土的灰砂比

B.混凝土的水灰比

C.骨料级配

D.水泥品种

题型:问答题

临床上作出骨肉瘤诊断时,已发生肺的微小转移的比例是()

A.30%~40%

B.40%~50%

C.50%~60%

D.60%~70%

E.80%以上

题型:问答题

诊断中,脾脏厚度的正常标准为()

A.男≤4.0cm女≤3.9cm

B.男≤4.1cm女≤4.0cm

C.男≤3.8cm女≤3.7cm

D.男≤3.9cm女≤3.8cm

E.男≤4.0cm女≤3.8cm

题型:问答题

合同保全的目的是( )

A.保护债务人的利益
B.保护债权人的利益
C.保护第三人的利益
D.保护债务人与债权人的共同利益

更多题库