【单选题】classPerson{privateinta;publicintchange(intm){returnm;}}publicclassTeacherextendsPerson{publicintb;publicstaticvoidmain(Stringarg[]){Personp=newPerson();Teachert=newTeacher();inti;//pointx}}Whicharesyntacticallyvalidstatementat//pointx?
A. i = m;
B. i = b;
C. i = p.a;
D. i = p.change(30);
A. i = m;
B. i = b;
C. i = p.a;
D. i = p.change(30);
举一反三
- 下列不正确的定义是()。 A: int*p=&i,i; B: int*p,i; C: inti,*p=&i; D: inti,*p;
- 【单选题】以下哪个循环并非重复 5 次? A. inti; for (i=1; i<6; i++) {} B. inti; for (i=0; i<5; i++) {} C. inti; for (i=0; i<=5; i++) {} D. inti; for (i=1; i<=5; i++) {}
- 下列关于时间价值系数的关系式,表达正确的有()()A.(F/A,i,n)=()(P/A,i,n)×(F/P,i,n)()B.(F/P,i,n)=(F/P,i,n1)×(F/P,i,n2),其中n1+n2=n()C.(P/F,i,n)=(P/F,i,n1)+(P/F,i,n2),其中n1+n2=n()D.(P/A,i,n)=(P/F,i,n)×(A/F,i,n)()E.()1/(F/A,i,n)=(F/A,i,1/n)A.()A.(F/A,i,n)=()(P/A,i,n)×(F/P,i,n)()B.()B.(F/P,i,n)=(F/P,i,n1)×(F/P,i,n2),其中n1+n2=n()C.()C.(P/F,i,n)=(P/F,i,n1)+(P/F,i,n2),其中n1+n2=n()D.()D.(P/A,i,n)=(P/F,i,n)×(A/F,i,n)()E.()E.()1/(F/A,i,n)=(F/A,i,1/n)
- 递延年金现值( ) A: A*(P/A,i,n)*(p/F,i,m) B: A*(P/F,i,n)*(p/F,i,m) C: A*(P/A,i,n)*(p/A,i,m) D: P*(P/A,i,n)*(p/F,i,m)
- 【单选题】若有int i=3,*p;p=&i;下列语句中输出结果为3的是(). A. printf("%d",&p); B. printf("%d",*i); C. printf("%d",*p); D. printf("%d",p);