网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
多选题
Given: 1. public interface Foo { 2. int k = 4: 3. } Which three are equivalent to line 2?()
A
final int k = 4:
B
public int k = 4:
C
static int k = 4:
D
private int k = 4:
E
abstract int k = 4:
F
volatile int k = 4:
G
transient int k = 4:
H
protected int k = 4:
参考答案
参考解析
解析:
暂无解析
更多 “多选题Given: 1. public interface Foo { 2. int k = 4: 3. } Which three are equivalent to line 2?()Afinal int k = 4:Bpublic int k = 4:Cstatic int k = 4:Dprivate int k = 4:Eabstract int k = 4:Fvolatile int k = 4:Gtransient int k = 4:Hprotected int k = 4:” 相关考题
考题
有以下程序#include stdio.hint fun(int (*s)[4],int n, int k){ int m,i;m=s[0][k];for(i=1;in;i++) if(s[i][k]m)m= s[i][k];return m;}main(){ int a[4][4]={{1,2,3,4},{11,12,13,14},{21,22,23,24},{31,32,33,34}};printf("%d\n",fun(a,4,0));}程序的运行结果是A)4B)34C)31D)32
考题
以下程序的执行结果是______ includevoid func(int); void main(){ int k=4 func(k)
以下程序的执行结果是______include<iostream.h>void func(int);void main(){int k=4func(k) ;func(k) :cout<<end1;}void func(int a){static int m=0;m+=a;cout<<m<<" ";}
考题
以下程序的运行结果是 int k=0; void fun(int m) {m+=k;k+=m;printf("m=%d k=%d",m,k++);} main() {int i=4; fun(i++); printf("i=%d k=%d\n",i,k); }A.m=4 k=5 i=5 k=5B.m=4 k=4 i=5 k=5C.m=4 k=4 i=4 k=5D.m=4 k=5 i=4 k=5
考题
下面程序段的输出结果是( )。 public class Test {public static void main(String args[]){ int[] a=new int[11]; int[] p=new int[4]; int k=5; for(int i= 1 ; i<= 10;i++) a[i]=i; for(int i=1 ; i<=3;i++) p[i]=a[i*i]; for(int i= 1 ;i<=3;i++) k=k+p[i]*2; System.out.println(k); }}A.37B.31C.33D.35
考题
以下程序的输出结果是【 】。include defineN 5 int fun(int *s,int a,int n) {int j; *s=
以下程序的输出结果是【 】。include <stdio.h>define N 5int fun(int *s,int a,int n){ int j;*s=a j=n;while(a!=s[j]) j-;return j;main(){ int s[N+1]; int k:for(k=1 ;k<=N;k++) s[k]=k+1:print f("%d\n",fun(s,4,N));}
考题
下列程序的运行结果是()。includevoid fun(int*s,int*p){ static int t=3;*p=s[t];t--;
下列程序的运行结果是( )。#include<stdio.h>void fun(int*s,int*p){ static int t=3; *p=s[t]; t--;}void main(){ int a[]={2,3,4,5),k; int x; for(k=0;k<4;k++) { fun(a,x); printf("%d,",x); }}A.5,4,3,2B.2,3,4,5,C.2,2,2,2,D.5,5,5,5,
考题
有以下程序#include stdio.hint fun(int (*s)[4],int n, int k){ int m, i; m=s[0][k]; for(i=l; in; i++) if(s[i][k]m) m=s[i][k]; return m;}main(){ int a[4][4]={{1,2,3,4},{11,12,13,14},{2l,22,23,24},{31,32,33,34}}; printf("%d\n", fun(a,4,0));}程序的运行结果是A.4 B.34C.31 D.32
考题
下列程序的运行结果是()。includevoid sub(int*s,int*y){static int m=4;*y=s[0];m++;}
下列程序的运行结果是( )。 #include<stdio.h> void sub(int*s,int*y) {static int m=4; *y=s[0]; m++; } void main() {int a[]={1,2,3,4,5},k; int x; printf("\n"); for(k=0;k<=4;k++) {sub(a,x); printf("%d,",x); } }A.1,1,1,1,1,B.1,2,3,4,5,C.0,0,0,0,0,D.4,4,4,4,4,
考题
有以下程序 include int fun(int (*s)[4],int n,int k) {int m,i;
有以下程序 #include <stdio.h> int fun(int (*s)[4],int n,int k) {int m,i; m=s[0][kl; for(i=1;i<n;i++) if(s[i][k]>m) m=s[i][k]; return m; } main() { int a[4][4]={{1,2,3,4},{11,12,13,14}, {21,22,23,24}, {31,32,33,34}}; printf("%d\n",fun(a,4,0)); } 程序的运行结果是______。A.4B.34C.31D.32
考题
已知下列函数定义: fun(int%,int c,int n,int datA){int k; for(k=0;k<m*n;k++) {*b=data; b++;} } 则调用此函数的正确写法是(假设变量a的说明为int a[50])( )。A.fun(*a,4,5,1);B.fun(a,4,5,1);C.fun((int*)a,4,5,1);D.fun(a,4,5,1);
考题
有如下程序:#includeiostreamusing namespace std;class AA{int k:protected:int n;void setK(int k){mis-k=k;}.public:void setN(int n){tllis-n=n;}};class BB:public AA{/*类体略*/};int main(){BB X;x.n=l: //1x.setN(2); //2x.k=3: ///3X.setK(4); //4return 0;}在标注号码的4条语句中正确的是A.1B.2C.3D.4
考题
下列程序的运行结果是()。includevoid sub(int*s,int*y){static int m=4:*y=s[m];m--;}
下列程序的运行结果是( )。 #include<stdio.h> void sub(int*s,int*y) {static int m=4: *y=s[m]; m--; } void main() {int a[]={1,2,3,4,5},k,x; printf("\n"); for(k=0;k<=4;k++) {sub(a,x); printf("%d,",x); } }A.5,4,3,2,1,B.1,2,3,4,5,C.0,0,0,0,0,D.4,4,4,4,4,
考题
下列程序的运行结果是( )。 #includestdio.h void fun(int*S,int*p) { static int t=3: *p=s[t]; t--; } void main { int a[]={2,3,4,5),k; int x; for(k=0,k4,k++) { fun(a,&x); printf("%d,",x); } }A.5,4,3,2B.2,3,4,5C.2,2,2,2D.5,5,5,5
考题
下列程序的运行结果是( )。#includestdio.hvoid fun(int*S,int*p){ static int t=3:*p=s[t];t--;}void main{ int a[]={2,3,4,5),k;int x;for(k=0,k4,k++){ fun(a,&x);printf(%d,,x);}}A.A.5,4,3,2B.2,3,4,5C.2,2,2,2D.5,5,5,5
考题
有如下程序: #includeiostream using namespace std; class AA{ int k; protected: int n; void setK(int k){this一k=k;} public: void setN(int n){this一n=n;} }; class BB:public AA{/*类体略*/}; int main } BB X; A n=1;//1 B setN(2);//2 C k=3;//3 D setK(4);//4 return 0; } 在标注号码的四条语句中正确的是( )。A.1B.2C.3D.4
考题
以下程序的输出结果是()。includeint fan(int);main(){int w=5; fun(w);printf("\n");}
以下程序的输出结果是( )。 #include <stdio.h> int fan(int); main() { int w=5; fun(w); printf("\n"); } fun(int k) { if(k>0) fun(k-1); printf("%d",k); }A.5 4 3 2 1B.0 1 2 3 4 5C.1 2 3 4 5D.5 4 3 2 1 0
考题
public interface Foo{ int k = 4; } Which three are equivalent to line 2?() A、 Final int k = 4;B、 Public int k = 4;C、 Static int k = 4;D、 Private int k = 4;E、 Abstract int k = 4;F、 Volatile int k = 4;
考题
public interface Foo { int k = 4; 3. } Which three are equivalent to line 2?()A、 final int k = 4;B、 public int k = 4;C、 static int k = 4;D、 abstract int k = 4;E、 volatile int k = 4;F、 protected int k = 4;
考题
下列选项中可以替换所给代码中第2行的有()。A、final int k = 4;B、public int k = 4;C、transient int k = 4;D、private int k = 4;E、abstract int k = 4;F、volatile int k=4;G、static int k= 4;H、protected int k = 4;
考题
Given: 1. public interface Foo { 2. int k = 4: 3. } Which three are equivalent to line 2?()A、 final int k = 4:B、 public int k = 4:C、 static int k = 4:D、 private int k = 4:E、 abstract int k = 4:F、 volatile int k = 4:G、 transient int k = 4:H、 protected int k = 4:
考题
public interface Foo{ int k = 4; } Which three are equivalent to line 2? ()A、 Final int k = 4;B、 Public int k = 4;C、 Static int k = 4;D、 Private int k = 4;E、 Abstract int k = 4;F、 Volatile int k = 4;G、 Transient int k = 4;H、 Protected int k = 4;
考题
单选题有以下程序:#include int fun(int (*s)[4],int n,int k){ int m,i; m=s[0][k]; for(i=1;im)m=s[i][k]; return m;}main(){ int a[4][4]={{1,2,3,4},{11,12,13,14},{21,22,23,24},{31,32,33,34}}; printf("%d",fun(a,4,0));}程序运行的结果是( )。A
4B
34C
31D
32
考题
多选题public interface Foo{ int k = 4; } Which three are equivalent to line 2?()AFinal int k = 4;BPublic int k = 4;CStatic int k = 4;DPrivate int k = 4;EAbstract int k = 4;FVolatile int k = 4;
考题
多选题public interface Foo { int k = 4; 3. } Which three are equivalent to line 2?()Afinal int k = 4;Bpublic int k = 4;Cstatic int k = 4;Dabstract int k = 4;Evolatile int k = 4;Fprotected int k = 4;
考题
多选题下列选项中可以替换所给代码中第2行的有()。Afinal int k = 4;Bpublic int k = 4;Ctransient int k = 4;Dprivate int k = 4;Eabstract int k = 4;Fvolatile int k=4;Gstatic int k= 4;Hprotected int k = 4;
考题
多选题Given: 1. public interface Foo { 2. int k = 4: 3. } Which three are equivalent to line 2?()Afinal int k = 4:Bpublic int k = 4:Cstatic int k = 4:Dprivate int k = 4:Eabstract int k = 4:Fvolatile int k = 4:Gtransient int k = 4:Hprotected int k = 4:
考题
多选题public interface Foo{ int k = 4; } Which three are equivalent to line 2? ()AFinal int k = 4;BPublic int k = 4;CStatic int k = 4;DPrivate int k = 4;EAbstract int k = 4;FVolatile int k = 4;GTransient int k = 4;HProtected int k = 4;
热门标签
最新试卷