请帮忙给出正确答案和分析,谢谢!
第1题
给出以下语句:
class Parent{
String one,two;
public Parent(String a,String b){
one=a;
two=b;
}
public void print(){System.out.println(one);}
}
public class Child extends Parent{
public Child(String a,String b){
super(a,b);
}
public void print(){
System.out.println(one+"to"+two);
}
public static void main(String arg[]){
Parent P=new Parent("south","north");
Parent t=new Child("east","west");
P.print();
t.print();
}
}
下面的运行结果中正确的是______。
A.在编译时出错
B.south
east
C.south to north
east to west
D.south to north
east
E.south
east to west
第2题
program.
A. publics will get information from
B. television may not get information from
C. the parent will be punished by
D. the child will be saved by
第3题
A、instantiate a child
B、instantiate a parent
C、instantiate a child instantiate a parent
D、instantiate a parent instantiate a child
第4题
A.parent child child
B.parent child parent C. parent child D. 编译错误
第5题
A.publics will get information from
B.television may not get information from
C.the parent will be punished by
D.the child will be saved by
第6题
Which of the following is INCORRECT?
A.Self-sufficiency is valued in the US.
B.If one child is unwilling to be responsible for his/her parent, he/she may be hated by his/her brothers or sisters.
C.Some children think that sending their parent to a convalescent hospital can be justified.
D.Actually, all children can contribute an equal share to the cost of their parents care.
第8题
All of the following can be inferred form. the passage except that ______.
A.many developed nations suffer from the problem of a rapidly aging population
B.the family-planning policy meets more difficulty in the countryside than in cities
C.the increasing number of aged people is a result of the reduced birth-rate
D.in the year of 2010 each child will have to look after one parent
第9题
A、one parent has died.
B、one parent is divorced.
C、one parent is separated.
D、any or all of the above
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!