网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)
-1, 2, 0, 4, 4, 12, ( )
 
 

A、4
B、8
C、12
D、20

参考答案

参考解析
解析:本题为和数列。该数列每两项之和分别是1、2、4、8、16,成公比为2的等比数列,此第六项和第七项的和应该是32,因此第七项应该是32-12=20,选择D选项。
更多 “-1, 2, 0, 4, 4, 12, ( )    A、4 B、8 C、12 D、20 ” 相关考题
考题 有以下程序#include stdio.hmain(){ int s[12]={1,2,3,4,4,3,2,1,1,1,2,3},c[5]={0},i;for(i=0;i12;i++) c[s[i]]++;for(i=1;i5;i++) printf("%d",c[i]);printf("\n");}程序的运行结果是A)1 2 3 4B)2 3 4 4C)4 3 3 2D )1 1 2 3

考题 有以下程序includemain(){ints[12]={1,2,3,4,4,3,2,1,1,1,2,3},c[5]={0},i;for(i=0;i 有以下程序 #include <stdio.h> main() { int s[12]={1,2,3,4,4,3,2,1,1,1,2,3},c[5]={0},i; for(i=0;i<12;i++) c[s[i]]++; for(i=1;i<5;i++) printf("%d",c[i]); printf("\n"); } 程序的运行结果是A.1 2 3 4B.2 3 4 4C.4 3 3 2D.1 1 2 3

考题 计算:(1) (-3)-(-7);(2)(-10)-3;(3)33-(-27);(4)0 -12;(5)(-11)-0;(6)(-4)-16。

考题 有以下程序:int f(int b[][4]){int i,j,s=0;for(j=0;i2)i=3-j;s+=b[i][j];}ret 有以下程序: int f(int b[][4]) { int i,j,s=0; for(j=0;i<4;i++) { i=j; if(i>2) i=3-j; s+=b[i][j]; } return s; } main() { int a[4][4]={{1,2,3,4,},{0,2,4,6},{3,6,9,12},{3,2,1,0}}; printf("%d\n",f(a)); } 执行后的输出结果是( )。A.12B.11C.18D.16

考题 有下列程序: include main() { int s[12]={1,2,3,4,4,3,2,1,1, 有下列程序: #include <stdio.h> main() { int s[12]={1,2,3,4,4,3,2,1,1,1,2,3},c[5]={0},i; for(i=0;i<12;i++)c[s[i]]++; for(i=1;i<5;i++)printf("%d",c[i]); printf("\n"); 程序的运行结果是( )。A.1 2 3 4B.2 3 4 4C.4 3 3 2D.1 1 2 3

考题 3,4,4,8,( ),12,24,27 A.0 B.1 C.2 D.

考题 已知程序段inta[3][4],*p[3]={a[0],a[1],a[2]},**pp=p,i;for(i=0;i12;i++)a[i/4][i%4]i;则pp[1][2]的值是()。 A.6B.5C.4D.3

考题 Whichtwoarepossibleresults?() A.0,2,4,4,6,8,10,6B.0,2,4,6,8,10,2,4C.0,2,4,6,8,10,12,14D.0,0,2,2,4,4,6,6,8,8,10,10,12,12,14,14E.0,2,4,6,8,10,12,14,0,2,4,6,8,10,12,14

考题 publicclassThreads1{intx=0;publicclassRunnerimplementsRunnable{publicvoidrun(){intcurrent=0;for(int=i=0;i4;i++){current=x;System.out.print(current+,);x=current+2;}}}publicstaticvoidmain(String[]args){newThreads1().go();}publicvoidgo(){Runnabler1=newRunner();newThread(r1).start();newThread(r1).start();}}Whichtwoarepossibleresults?()A.0,2,4,4,6,8,10,6,B.0,2,4,6,8,10,2,4,C.0,2,4,6,8,10,12,14,D.0,0,2,2,4,4,6,6,8,8,10,10,12,12,14,14,E.0,2,4,6,8,10,12,14,0,2,4,6,8,10,12,14,

考题 以下程序的运行结果是( ) #define MAX 10 int a[MAX],i; main() { printf("\n");sub1();sub3(A) ,sub2(),sub3(A) ; } sub2() { int a[MAX],i,max; max=5; for(i=0;i<max;i++)a[i]=i; } sub1() {for(i=0;i<MAX;i++)a[i]=i+i; } sub3(int a[]) { int i; for(i=0;i<MAX,i++)printf("%d",a[i]); printf("\n"); }A.0 2 4 6 8 10 12 14 16 18 0 1 2 3 4B.0 1 2 3 4 0 2 4 6 8 10 12 14 16 18C.0 1 2 3 4 5 6 7 8 9 0 1 2 3 4D.0 2 4 6 8 10 12 14 16 18 0 2 4 6 8 10 12 14 16 18

考题 下面程序的执行结果是______。 #define MAX 10 nt a[MAX],i; main() { printf("\n"); sub1();sub3(A) ; sub2();sub3(A) ; } sub1() {for(i=0;i<1MAX;i++) a[i]-i+i; } sub2() {int a[MAX],i,max; max=5; for(i=0;i<max;i++) a[i]=i; } sub3(int a[]) { int i; for(i=0;i<MAX;i++) printf("%d",a[i]); printf("\n"); }A.0 2 4 6 8 10 12 14 16 18 0 1 2 3 4B.0 1 2 3 4 0 2 4 6 8 10 12 14 16 18C.0 1 2 3 4 5 6 7 8 9 0 1 2 3 4D.0 2 4 6 8 10 12 14 16 18 0 2 4 6 8 10 12 14 16 18

考题 有以下程序:include int f(int b[] [4]){int i,j,s=0; for(j=0;j2) 有以下程序: #include <stdio.h> int f(int b[] [4]) { int i,j,s=0; for(j=0;j<4;j++) { i=j; if(i>2) i=3-j; s+=b[i][j]; } return s; } main() { int a[4][4]={{1,2,3,4},{0,2,4,6},{3,6,9,12},{3,2,1,0}}; printf("%d\n",f(a)); } 执行后的输出结果是( )。A.12B.11C.18D.16

考题 有以下程序的输出结果是 int f(int b[ ][4]) { int i,j,s=0; for(j=0;j4;j++) { i=j; if(i2) i=3-j; s+=b[i][j]; } return s; } main( ) { int a[4][4]={{1,2,3,4},{0,2,4,5},{3,6,9,12},{3,2,1,0}}; printf(“%d\n”,f(a)); }A.12B.11C.18D.16

考题 若定义static int a[2][2]={1,2,3,4},则a数组的各数组元素分别为______。A.a[0][0]=1、a[0][1]=2、at[1][0]=3、a[1][1]=4B.a[0][0]=1、a[0][1]=3、a[1][0]=2、a[1][1]=4C.a[0][0]=4、a[0][1]=3、a[1][0]=2、s[1][1]=1D.a[0][0]=4、a[0][1]=2、a[1][0]=3、a[1][1]=1

考题 0 , 1 , 1 , 2 , 4 , 8 , ( )A . 16B . 8C . 6D . 12

考题 有以下程序includemain(){ints[12]={1,2,3,4,4,3,2,1,1,1,2,3},c[5]={0},i; for(i=0;i 有以下程序 #include <stdio.h> main() { int s[12]={1,2,3,4,4,3,2,1,1,1,2,3},c[5]={0},i; for(i=0;i<12;i++) c[s[i]++; for(i=l;i<5;i++) printf("%d",c[i]); printf("\n"); } 程序的运行结果是A.1 2 3 4B.2 3 44C.4 3 3 2D.1 1 2 3

考题 0, 1, 1, 2, 4, 8, ( )A.16B.8C.6D.12

考题 -1,2,0,4,4,12,( ) A.4 B.8 C.12 D.20

考题 -1,2,0,4,4,( )A.8 B.12 C.16 D.20

考题 -1,1,0,2,4,12,________ A.30 B.31 C.32 D.33

考题 -2,1,1,-2,-2,(),16。 A.0 B.4 C.8 D.12

考题 表达式 (4  2) - !-1 + 4  6 ^ 2  1的值是()A、0B、1C、7D、12

考题 分量视频的采样有如下四种结构()A、4:2:2、4:1:1、4:2:0、4:4:4B、4:2:1、4:1:1、4:2:0、4:4:4C、4:2:1、4:1:1、4:2:0、4:4:3D、4:2:1、4:1:1、4:2:0、4:4:1

考题 假设在跳频集中有12个频率(f1-f12),在小区中分配给前7个TRX的缺省MAIO值是多少()。A、0、1、2、3、4、5和6B、1、2、3、4、5、6和7C、0、2、4、6、8、10和1D、1、3、5、7、9、11和0E、0、3、6、9、1、4和7

考题 若有以下说明,int?a[12]={1,2,3,4,5,6,7,8,9,10,11,12};?则数值为4的表达式是()A、a[4]B、a(3)C、a[3+1]D、a[4]-a[0]

考题 public class Threads 1 {  intx=0;  public class Runner implements Runnable {  public void run() {  int current = 0;  for(int=i=0;i4;i++){  current = x;  System.out.print(current + “, “);  x = current + 2;  }  }  }  public static void main(String[] args) {  new Threads1().go();  }  public void go() {  Runnable r1 = new Runner();  new Thread(r1).start();  new Thread(r1 ).start();  }  }  Which two are possible results?()A、 0, 2, 4, 4, 6, 8, 10, 6,B、 0, 2, 4, 6, 8, 10, 2, 4,C、 0, 2, 4, 6, 8, 10, 12, 14,D、 0, 0, 2, 2, 4, 4, 6, 6, 8, 8, 10, 10, 12, 12, 14, 14,E、 0, 2, 4, 6, 8, 10, 12, 14, 0, 2, 4, 6, 8, 10, 12, 14,

考题 多选题public class Threads 1 {  intx=0;  public class Runner implements Runnable {  public void run() {  int current = 0;  for(int=i=0;i4;i++){  current = x;  System.out.print(current + “, “);  x = current + 2;  }  }  }  public static void main(String[] args) {  new Threads1().go();  }  public void go() {  Runnable r1 = new Runner();  new Thread(r1).start();  new Thread(r1 ).start();  }  }  Which two are possible results?()A0, 2, 4, 4, 6, 8, 10, 6,B0, 2, 4, 6, 8, 10, 2, 4,C0, 2, 4, 6, 8, 10, 12, 14,D0, 0, 2, 2, 4, 4, 6, 6, 8, 8, 10, 10, 12, 12, 14, 14,E0, 2, 4, 6, 8, 10, 12, 14, 0, 2, 4, 6, 8, 10, 12, 14,