阅读下面的程序,选择正确的答案?()
classStringDemo{
publicstaticvoidmain(String[]args){
Strings1=“a”;
Strings2=“b”;
show(s1,s2);
System.out.println(s1+s2);
}
publicstaticvoidshow(Strings1,Strings2){
s1=s1+”q”;
s2=s2+s1;
}
}
classStringDemo{
publicstaticvoidmain(String[]args){
Strings1=“a”;
Strings2=“b”;
show(s1,s2);
System.out.println(s1+s2);
}
publicstaticvoidshow(Strings1,Strings2){
s1=s1+”q”;
s2=s2+s1;
}
}
举一反三
- 阅读下面的程序,选择正确的答案?()classStringDemo{publicstaticvoidmain(String[]args){Strings1=“a”;Strings2=“b”;show(s1,s2);System.out.println(s1+s2);}publicstaticvoidshow(Strings1,Strings2){s1=s1+”q”;s2=s2+s1;}}
- 以下程序的输出结果是 String s1="1",s2="2"; String s=s1+s2; System.out.println(s);
- 试判断原子态:1s1s3S1,1s2p3P2,1s2p1D1,2s2p3P2中,下面哪组是存在的? A: 1s1s3S1,1s2p3P2; B: 1s2p3P2,1s2p1D1; C: 1s2p3P2,2s2p3P2; D: 1s1s3S1,1s2p1D1;
- 电子组态1s2p所构成的原子态为( )。 A: 1s2p1S0,1s2p1P1, 1s2p3S1 1s2p3P2,1,0 B: 1s2p1S0,1s2p1P1 C: 1s2p1S0,1s2p3S1 D: 1s2p1P1,1s2p3P2,1,0
- 设n维向量组α1,α2,…,αs(s<n)线性无关,则β1,β2,…,βs线性无关的充分必要条件是 A: α1,α2,…,αs可由β1,β2,…,βs线性表出. B: β1,β2,…,βs可由α1,α2,…,αs线性表出. C: α1,α2,…,αs与β1,β2,…,βs等价. D: 矩阵A=(α1,α2,…,αs)与矩阵B=(β1,β2,…,βs)等价.