Why are A-levels now being skewed back towards boys?
A.Boys have critical skills rather than hard facts.
B.A-levels stress exams instead of coursework.
C.Female students are not interested in A-levels.
D.Boys put more emphasis on project work.
第1题
给出下面代码: 1)classParent{ 2)privateStringname; 3)publicParent(){} 4)} 1、5)publicclassChildextendsParent{ 6)privateStringdepartment; 1、7)publicChild(){} 8)publicStringgetValue(){returnname;} 9)publicstaticvoidmain(Stringarg[]){ 10)Parentp=newParent(); 11)} 12)} 那些行将引起错误?()
A.第3行
B.第6行
C.第7行
D.第8行
第2题
A.Whencompilationsomeerrorwilloccur.
B.Itiscorrectwhencompilationbutwillcauseerrorwhenrunning.
C.Theoutputiszero.
D.Theoutputisnull.
第3题
A.line4
B.line6
C.line7
D.line8
第4题
A.Whencompilationsomeerrorwilloccur.
B.Itiscorrectwhencompilationbutwillcauseerrorwhenrunning.
C.Theoutputiszero.
D.Theoutputisnull.
第5题
Giventhefollowingcode,writealineofcodethat,wheninsertedattheindicatedlocation,willmaketheoverridingmethodinExtensioninvoketheoverriddenmethodinclassBaseonthecurrentobject.
classBase{
publicvoidprint(){
System.out.println("base");
}
}
classExtentionextendsBase{
publicvoidprint(){
System.out.println("extension");
//insertlineofimplementationhere
}
}
publicclassQ294d{
publicstaticvoidmain(Stringargs[]){
Extentionext=newExtention();
ext.print();
}
}
Fillinasinglelineofimplementation.()
第6题
classParent{
Stringone,two;
publicParent(Stringa,Stringb){
one=a;
two=b;}
publicvoidprint(){System.out.println(one);}}
publicclassChildextendsParent{
publicChild(Stringa,Stringb){
super(a,b);
}
publicvoidprint(){
System.out.println(one+"to"+two);
}
publicstaticvoidmain(Stringarg[]){
Parentp=newParent("south","north");
Parentt=newChild("east","west");
p.print();
t.print();
}
}
Whichofthefollowingiscorrect?()
第7题
A.x>0
B.x>-3
C.x<=-3
D.x<=0&x>-3
第8题
A.Thevalueis8
B.Thevalueis9
C.Thevalueis10
D.Thevalueis11
第9题
A.publicintsum(inta,intb){returna+b;}
B.publicintsum(longa,longb){return0;}
C.abstractintsum();
D.privatelongsum(longa,longb){returna+b;}
E.publiclongsum(longa,intb){returna+b;}
第10题
A.win.setLayout(newBorderLayout());win.add(but);
B.win.setLayout(newGridLayout(1,1));win.add(but);
C.win.setLayout(newBorderLayout());win.add(but,BorderLayout.CENTER);
D.win.add(but);
E.win.setLayout(newFlowLayout());win.add(but);
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!