题目
A.put on
B.added to
C.put for
D.added
第1题
阅读以下函数说明和Java代码,将应填入(n)处的字句写在对应栏内。
【说明】
下面的程序先构造Point类,再顺序构造Ball类。由于在类Ball中不能直接存取类Point中的xCoordinate及yCoordinate属性值,Ball中的toString方法调用Point类中的toStrinS方法输出中心点的值。在MovingBsll类的toString方法中,super.toString调用父类Ball的toString方法输出类Ball中声明的属性值。
【Java代码】
//Point.java文件
public class Point{
private double xCoordinate;
private double yCoordinate;
public Point(){}
public Point(double x,double y){
xCoordinate=x;
yCoordinate=y;
}
public String toStrthg(){
return"("+Double.toString(xCoordinate)+","
+Double.toString(yCoordinate)+")";
}
//other methods
}
//Ball.java文件
public class Ball{
private (1);//中心点
private double radius;//半径
private String color;//颜色
public Ball(){}
public Ball(double xValue, double yValue, double r){
//具有中心点及其半径的构造方法
center=(2);//调用类Point中的构造方法
radius=r;
}
public Ball(double xValue, double yValue, double r, String c){
//具有中心点、半径和颜色的构造方法
(3);//调用3个参数的构造方法
color=c;
}
public String toString(){
return "A ball with center"+center.toString()
+",radius "+Double.toString(radius)+",color"+color;
}
//other methods
}
class MovingBall (4) {
private double speed;
public MovingBall(){}
public MoyingBall(double xValue, double yValue, double r, String c, double s){
(5);//调用父类Ball中具有4个参数的构造方法
speed=s;
}
public String toString(){
return super.toString()+",speed"+Double.toString(speed);
}
//other methods
}
public class test{
public static void main(String args[]){
MovingBall mb=new MovingBall(10,20,40,"green",25);
System.out.println(mb);
}
}
第2题
1、A postage stamp’s value to collectors is raised if ().
A、there are few others like it
B、 there are no errors on the stamps
C、 a mistake is made in the printing
D、 both A and C
2、The mistake in the locally printed postage stamps was in the ().
A、price
B、wording
C、color
D、spelling of postage
3、$16 800 is the collector’s value of ().
A、the One Penny Orange – Red
B、 a correctly printed 1847 stamp
C、 the Twopenny Blue
D、 both A and C
4、Which one is implied but not stated?
A、All correctly printed stamps are worthless.
B、Mauritians needed the stamps to send out invitations to a ball.
C、The printer was punished for his mistake.
D、Collectors are constantly looking for stamps with mistakes.
5、The best title for this section is ()
A、The “Post Paid” Error
B、The Twopenny Blue
C、A London Printer’s Error
D、How Mauritius Became Famous
第3题
stamp raises its value to stamp collectors. A mistake on one inexpensive postage stamp has made the stamp worth a million and a half times its original value. The mistake was made more than a hundred years ago in the British colony Mauritius , a small island in the Indian Ocean. In 1847 an order for stamps was sent to a London printer – Mauritius was to become the fourth country in the world to issue stamps. Before the order was filled and delivered, a ball was planned at Mauritius ’ Government House, and stamps were needed to send out the invitations. A local printer was instructed to copy the design for the stamps. He accidentally marked the words " Post Office" instead of " Post Paid" on the several hundred stamps that he printed.
Today there are only twenty-six of these misprinted stamps left—fourteen One-Penny Orange-Reds and twelve Two-Penny Blues. Because of the Two-Penny Blue's rareness and age, collectors have paid as much as $ 16800 for it.
1).Which one is implied but not stated?
A、All correctly printed stamps are worthless.
B、Mauritians needed the stamps to send out invitations to a ball.
C、The printer was punished for his mistake.
D、Collectors are constantly looking for stamps with mistakes.
2).$16 800 is the collector’s value of ().
A、the One Penny Orange – Red
B、a correctly printed 1847 stamp
C、the Twopenny Blue
D、both A and C
3).The best title for this section is ().
A、The “Post Paid” Error
B、The Twopenny Blue
C、A London Printer’s Error
D、How Mauritius Became Famous
4).A postage stamp’s value to collectors is raised if ().
A、there are few others like it
B、there are no errors on the stamps
C、a mistake is made in the printing
D、both A and C
5).The mistake in the locally printed postage stamps was in the ().
A、price
B、wording
C、color
D、spelling of postage
第8题
A.flags[i] = true;
B. flags[i] = false;
C. flags[index] = true;
D. flags[index] = false;
为了保护您的账号安全,请在“赏学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!