网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
INTA
参考答案
更多 “INTA” 相关考题
考题
以下为一维整型数组a的正确说明是()。
A.inta(10);B."intn=10,a[n];"C."intn;scanf(""%d"",n);"D."#defineSIZE10;inta[SIZE];inta[n];"
考题
Given:1.publicclassMethodOver{2.publicvoidsetVar(inta,intb,floatc){3.}4.}WhichtwooverloadthesetVarmethod()?
A.privatevoidsetVar(inta,floatc,intb){}B.protectedvoidsetVar(inta,intb,floatc){}C.publicintsetVar(inta,floatc,intb){returna:}D.publicintsetVar(inta,intb,floatc){returna:}E.protectedfloatsetVar(inta,intb,floatc){returnc:}
考题
publicclassParent{publicintaddValue(inta,intb){ints;s=a+b;returns;}}classChildextendsParent{}WhichmethodscanbeaddedintoclassChild?()
A.intaddValue(inta,intb){//dosomething...}B.publicvoidaddValue(){//dosomething...}C.publicintaddValue(inta){//dosomething...}D.publicintaddValue(inta,intb)throwsMyException{//dosomething...}
考题
publicclassMethodOver{privateintx,y;privatefloatz;publicvoidsetVar(inta,intb,floatc){x=a;y=b;z=c;}}WhichtwooverloadthesetVarmethod?()
A.voidsetVar(inta,intb,floatc){x=a;y=b;z=c;}B.publicvoidsetVar(inta,floatc,intb){setVar(a,b,c);}C.publicvoidsetVar(inta,floatc,intb){this(a,b,c);}D.publicvoidsetVar(inta,floatb){x=a;z=b;}E.publicvoidsetVar(intax,intby,floatcz){x=ax;y=by;z=cz;}
考题
publicclassMethodOver{publicvoidsetVar(inta,intb,floatc){}}WhichtwooverloadthesetVarmethod?()
A.PrivatevoidsetVar(inta,floatc,intb){}B.ProtectedvoidsetVar(inta,intb,floatc){}C.PublicintsetVar(inta,floatc,intb)(returna;)D.PublicintsetVar(inta,intb,floatc)(returna;)E.ProtectedfloatsetVar(inta,intb,floatc)(returnc;)
考题
classA{protectedintmethod1(inta,intb){return0;}}WhichtwoarevalidinaclassthatextendsclassA?()
A.publicintmethod1(inta,intb){return0;}B.privateintmethod1(inta,intb){return0;}C.privateintmethod1(inta,longb){return0;}D.publicshortmethod1(inta,intb){return0:}E.staticprotectedintmethod1(inta,intb){return0;}
考题
有如下类声明: classXA{ intx: public: XA(intn){x=n;} }; classXB:publicXA{ inty; oublic: XB(inta,intb); }; 在构造函数XB的下列定义中,正确的是( )。A.XB::XB(inta,intb):x(a),y(b){}B.XB::XB(inta,intb):XA(a),y(b){}C.XB::XB(inta,intb):x(a),XB(b){}D.XB::XB(inta,intb):XA(a),XB(b){}
考题
以下数组定义中,正确的是()
A.inta[2][]={1,2,3,4,5}B.inta[][2]={{0},{}}C.inta[2][2]={{1,2},{3}}D.inta[][]={1,2,3,4}
考题
下面的方法重载,正确的是( )。A、intfun(inta,floatb){}B、floatfun(inta,floatb){}floatfun(inta,floatb){}floatfun(intx,floaty){}C、floatfun(floata){}D、floatfun1(inta,floatb){}floatfun(floata,floatb){}floatfun2(inta,floatb){}
考题
以下对一维整型数组a定义正确的是()A、inta(10)B、intn=10,a[n]C、intn;scanf("%d",n);inta[n]D、#defineSIZE10inta[SIZE]
考题
以下数组定义中,正确的是()A、inta[2][]={1,2,3,4,5}B、inta[][2]={{0},{}}C、inta[2][2]={{1,2},{3}}D、inta[][]={1,2,3,4}
考题
下面能给一个指针变量赋值采用的方法有()A、inta;int*p=a;B、inta;int*p=a;p=a;C、inta=100;int*p=@aD、inta;int*p=@a;p=@a;
考题
以下能正确定义共用体变量的是()A、unionuniontype{inta;floatb;};unionuniontypef;B、unionuniontype{inta;floatb;}f;C、union{inta;floatb;}f;D、union{inta,floatb,}f;
考题
以下能对二维数组arr正确初始化的语句是()A、inta[2][3]={0};B、inta[][3]={{1,2},{0}};C、inta[2][3]={{1,2},{3,4},{5,6}};D、inta[][3]={1,2,3,4,5,6};
热门标签
最新试卷